From e1f51c23ee89c119299c934aa14542f3682b742b Mon Sep 17 00:00:00 2001 From: bosd Date: Wed, 21 Sep 2022 09:35:09 +0200 Subject: [PATCH 1/2] shift ci tests from python 3.6-3.9 to 3.8-3.10 (#396) --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9e773c45..757c2c92 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: [3.7, 3.8, 3.9, 3.10.6] os: [ubuntu-latest] steps: From 07463676cfbb1c85ddb071466bc5feba45b713ba Mon Sep 17 00:00:00 2001 From: bosd Date: Wed, 21 Sep 2022 10:06:37 +0200 Subject: [PATCH 2/2] move pdfminer -> pdfminer.six (#395) --- README.md | 2 +- setup.cfg | 2 +- src/invoice2data/input/pdfminer_wrapper.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fd2fcda9..bede5e18 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Choose any of the following input readers: - pdftotext `invoice2data --input-reader pdftotext invoice.pdf` - tesseract `invoice2data --input-reader tesseract invoice.pdf` -- pdf miner `invoice2data --input-reader pdfminer invoice.pdf` +- pdfminer.six `invoice2data --input-reader pdfminer invoice.pdf` - tesseract4 `invoice2data --input-reader tesseract4 invoice.pdf` - gvision `invoice2data --input-reader gvision invoice.pdf` (needs `GOOGLE_APPLICATION_CREDENTIALS` env var) diff --git a/setup.cfg b/setup.cfg index 24c16d5b..05ceab3f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -41,7 +41,7 @@ install_requires = unidecode [options.extras_require] -test = pytest; pytest-cov; flake8; pdfminer; tox +test = pytest; pytest-cov; flake8; pdfminer.six; tox [options.entry_points] console_scripts = diff --git a/src/invoice2data/input/pdfminer_wrapper.py b/src/invoice2data/input/pdfminer_wrapper.py index 162f0618..db30cf13 100644 --- a/src/invoice2data/input/pdfminer_wrapper.py +++ b/src/invoice2data/input/pdfminer_wrapper.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- def to_text(path): - """Wrapper around `pdfminer`. + """Wrapper around `pdfminer.six`. Parameters ----------