diff --git a/README.md b/README.md index fed27f8e..e5f1d319 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ OCRmyPDF -[![Travis build status][travis]](https://travis-ci.org/jbarlow83/OCRmyPDF) [![PyPI version][pypi]](https://pypi.org/project/ocrmypdf/) ![Homebrew version][homebrew] ![ReadTheDocs][docs] +[![Travis build status][travis]](https://travis-ci.org/jbarlow83/OCRmyPDF) [![PyPI version][pypi]](https://pypi.org/project/ocrmypdf/) ![Homebrew version][homebrew] ![ReadTheDocs][docs] ![Python versions][pyversions] [travis]: https://travis-ci.org/jbarlow83/OCRmyPDF.svg?branch=master "Travis build status" @@ -10,6 +10,8 @@ [docs]: https://readthedocs.org/projects/ocrmypdf/badge/?version=latest "RTD" +[pyversions]: https://img.shields.io/pypi/pyversions/ocrmypdf "Supported Python versions" + OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched or copy-pasted. ```bash @@ -120,7 +122,7 @@ If you detect an issue, please: Requirements ------------ -Runs on CPython 3.5, 3.6 and 3.7. Requires external program installations of Ghostscript, Tesseract OCR, QPDF, and Leptonica. ocrmypdf is pure Python, but uses CFFI to portably generate library bindings. +In addition to the required Python version (3.6+), OCRmyPDF requires external program installations of Ghostscript, Tesseract OCR, QPDF, and Leptonica. ocrmypdf is pure Python, but uses CFFI to portably generate library bindings. Press & Media ------------- diff --git a/docs/installation.rst b/docs/installation.rst index 27e27671..77702791 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -517,7 +517,7 @@ manager. ``pip`` cannot provide them. As of ocrmypdf 7.2.1, the following versions are recommended: -- Python 3.7 +- Python 3.7 or 3.8 - Ghostscript 9.23 or newer - qpdf 8.2.1 - Tesseract 4.0.0 or newer diff --git a/docs/release_notes.rst b/docs/release_notes.rst index f90f096d..fbc7c06f 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -13,6 +13,13 @@ Note that it is licensed under GPLv3, so scripts that ``import ocrmypdf`` and are released publicly should probably also be licensed under GPLv3. +v9.0.4 +====== + +- Fixed compatibility with Python 3.8. +- Fixed Tesseract settings for ``--user-words`` and ``--user-patterns``. +- We now require pikepdf 1.6.5. + v9.0.3 ====== diff --git a/requirements/main.txt b/requirements/main.txt index 24087d27..5fac1105 100644 --- a/requirements/main.txt +++ b/requirements/main.txt @@ -5,7 +5,7 @@ chardet == 3.0.4 cffi == 1.12.2 img2pdf == 0.3.3 pdfminer.six == 20181108 -pikepdf == 1.6.1 +pikepdf == 1.6.5 Pillow >= 5.0.0, != 5.1.0 ; sys_platform == "darwin" pycparser == 2.19 python-xmp-toolkit == 2.0.1 diff --git a/setup.py b/setup.py index 6b2b7d11..e9d167f2 100644 --- a/setup.py +++ b/setup.py @@ -68,6 +68,7 @@ setup( classifiers=[ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", @@ -96,7 +97,7 @@ setup( 'cffi >= 1.9.1', # must be a setup and install requirement 'img2pdf >= 0.3.0, < 0.4', # pure Python, so track HEAD closely 'pdfminer.six == 20181108', - 'pikepdf >= 1.6.0, < 2', + 'pikepdf >= 1.6.5, < 2', 'Pillow >= 4.0.0, != 5.1.0 ; sys_platform == "darwin"', # Pillow < 4 has BytesIO/TIFF bug w/img2pdf 0.2.3 # block 5.1.0, broken wheels