mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-12-05 03:19:45 +00:00
Some Python 3.9 fixes
This commit is contained in:
parent
dce206d3dc
commit
7f73a6ed1e
@ -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.
|
||||||
|
|||||||
3
setup.py
3
setup.py
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user