Compare commits

...
5 Commits
Author SHA1 Message Date
James R. Barlow 657445fbb6 Fix travis.yml 2018-10-28 18:14:18 -07:00
James R. Barlow 0ff489c755 v6.2.5 notes 2018-10-28 16:21:45 -07:00
James R. Barlow e50721d561 Drop support for PyMuPDF 2018-10-28 16:21:45 -07:00
James R. Barlow 87326cc15e Remove macOS from testing entirely 2018-10-28 16:21:41 -07:00
James R. Barlow d6d2f196d5 Disable failing test for tess 4.0rc1 2018-10-28 15:16:54 -07:00
4 changed files with 22 additions and 31 deletions
+2 -17
View File
@@ -31,29 +31,14 @@ matrix:
sudo: required
language: python
python: "3.5"
env: EXTRAS=
- os: linux
sudo: required
language: python
python: "3.6"
env: EXTRAS=
- os: linux
sudo: required
language: python
python: "3.6"
env: EXTRAS=[fitz]
- os: linux
sudo: required
language: python
python: "3.7-dev"
- os: osx
osx_image: xcode8
language: generic
env: EXTRAS=
- os: osx
osx_image: xcode8
language: generic
env: EXTRAS=[fitz]
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
@@ -72,7 +57,7 @@ before_install: |
install:
- pip3 install pycparser # py3.7 workaround for https://github.com/eliben/pycparser/issues/251
- pip3 install ".$EXTRAS"
- pip3 install .
- pip3 install -r test_requirements.txt
script:
@@ -94,5 +79,5 @@ deploy:
on:
branch: master
tags: true
condition: $TRAVIS_PYTHON_VERSION == "3.6" && $TRAVIS_OS_NAME == "linux" && $EXTRAS == ""
condition: $TRAVIS_PYTHON_VERSION == "3.6" && $TRAVIS_OS_NAME == "linux"
skip_upload_docs: true
+7 -14
View File
@@ -192,15 +192,13 @@ You can then install OCRmyPDF from PyPI, for the current user:
.. code-block:: bash
pip3 install --user ocrmypdf[fitz]
pip3 install --user ocrmypdf
or system-wide:
.. code-block:: bash
pip3 install ocrmypdf[fitz]
``[fitz]`` includes the optional dependency on PyMuPDF, which improves OCRmyPDF's output in many cases.
pip3 install ocrmypdf
The command line program should now be available:
@@ -226,7 +224,7 @@ Then install ocrmypdf 6.1.5 for the local user and set the user's ``PATH`` to ch
.. code-block:: bash
export PATH=$HOME/.local/bin:$PATH
pip3 install --user ocrmypdf[fitz]
pip3 install --user ocrmypdf
Installing on Ubuntu 16.04 LTS
@@ -249,13 +247,13 @@ If you wish install OCRmyPDF for the current user:
.. code-block:: bash
pip3 install --user ocrmypdf[fitz]
pip3 install --user ocrmypdf
Alternately, system-wide. Note that this may modify the system Python environment:
.. code-block:: bash
sudo pip3 install ocrmypdf[fitz]
sudo pip3 install ocrmypdf
If you wish to install OCRmyPDF to a virtual environment to isolate the system Python, you can follow these steps.
@@ -263,9 +261,7 @@ If you wish to install OCRmyPDF to a virtual environment to isolate the system P
python3 -m venv venv-ocrmypdf
source venv-ocrmypdf/bin/activate
pip3 install ocrmypdf[fitz]
``[fitz]`` includes the optional dependency on PyMuPDF, which improves OCRmyPDF's output in many cases.
pip3 install ocrmypdf
Installing on Ubuntu 14.04 LTS
@@ -316,7 +312,7 @@ Now we need to install ``pip`` and let it install ocrmypdf:
.. code-block:: bash
curl https://bootstrap.pypa.io/ez_setup.py -o - | python3.6 && python3.6 -m easy_install pip
pip3.6 install ocrmypdf[fitz]
pip3.6 install ocrmypdf
The ``wget`` command will download a program and run it.
@@ -396,14 +392,11 @@ The following dependencies are recommended:
- Ghostscript 9.22 or newer
- qpdf 8.0.2 or newer
- unpaper 6.1
- PyMuPDF 1.12.5 or newer
These are in addition to the Python packaging dependencies, meaning that unfortunately, the ``pip install`` command cannot satisfy all of them.
Python 3.6 and Tesseract 4.0.0-beta.1 are recommended for best OCR results and best performance.
The library PyMuPDF is not widely available in platform distributions, and it improves OCRmyPDF in certain conditions. Consider installing OCRmyPDF from the Python binary wheels, which include a precompiled version of this library.
Installing HEAD revision from sources
-------------------------------------
+10
View File
@@ -10,6 +10,16 @@ The OCRmyPDF package itself does not contain a public API, although it is fairly
replace: `#$1 <https://github.com/jbarlow83/OCRmyPDF/issues/$1>`_
v6.2.5
------
- Disable a failing test due to Tesseract 4.0rc1 behavior change. Previously, Tesseract would exit with an error message if its configuration was invalid, and OCRmyPDF would intercept this message. Now Tesseract issues a warning, which OCRmyPDF v6.2.5 may relay or ignore. (In v7.x, OCRmyPDF will respond to the warning.)
- This release branch no longer supports using the optional PyMuPDF installation, since it was removed in v7.x.
- This release branch no longer supports macOS. macOS users should upgrade to v7.x.
v6.2.4
------
+3
View File
@@ -723,6 +723,9 @@ def test_tesseract_config_notfound(renderer, resources, outdir):
@pytest.mark.parametrize('renderer', RENDERERS)
@pytest.mark.skipif(
tesseract.v4(),
reason='not valid due to behavior change in Tesseract >= 4.0-rc1')
def test_tesseract_config_invalid(renderer, resources, outdir):
cfg_file = outdir / 'test.cfg'
with cfg_file.open('w') as f: