Some Python 3.9 fixes

This commit is contained in:
James R. Barlow 2020-11-03 00:45:47 -08:00
parent dce206d3dc
commit 7f73a6ed1e
No known key found for this signature in database
GPG Key ID: E54A300D567E1260
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,9 @@ wish to use some of its features for working with PDFs.
v11.3.2 v11.3.2
======= =======
- Explicitly require pikepdf 2.0.0 or newer when running on Python 3.9. (There are
concerns about the stability of pybind11 2.5.x with Python 3.9, which is used in
pikepdf 1.x.)
- On some systems, unpaper seems to be unable to process the PNGs we offer it - On some systems, unpaper seems to be unable to process the PNGs we offer it
as input. We now convert the input to PNM format, which unpaper always accepts. as input. We now convert the input to PNM format, which unpaper always accepts.
Fixes #665 and #667. Fixes #665 and #667.

View File

@ -73,7 +73,8 @@ setup(
'coloredlogs >= 14.0', # strictly optional 'coloredlogs >= 14.0', # strictly optional
'img2pdf >= 0.3.0, < 0.5', # pure Python, so track HEAD closely 'img2pdf >= 0.3.0, < 0.5', # pure Python, so track HEAD closely
'pdfminer.six >= 20191110, != 20200720, <= 20201018', 'pdfminer.six >= 20191110, != 20200720, <= 20201018',
'pikepdf >= 1.14.0, < 3', "pikepdf >= 1.14.0, < 3 ; python_version < '3.9'",
"pikepdf >= 2.0.0 ; python_version >= '3.9'",
'Pillow >= 7.0.0', 'Pillow >= 7.0.0',
'pluggy >= 0.13.0, < 1.0', 'pluggy >= 0.13.0, < 1.0',
'reportlab >= 3.3.0', # oldest released version with sane image handling 'reportlab >= 3.3.0', # oldest released version with sane image handling