diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 115ee21..8bb8371 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,7 +23,7 @@ A great way to start contributing to Camelot is to pick an issue tagged with the To install the dependencies needed for development, you can use pip:
-$ pip install camelot-py[dev] +$ pip install "camelot-py[dev]"Alternatively, you can clone the project repository, and install using pip: diff --git a/HISTORY.md b/HISTORY.md index 879b77b..46367ce 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -4,6 +4,13 @@ Release History master ------ +0.8.1 (2020-07-21) +------------------ + +**Bugfixes** + +* [#169](https://github.com/camelot-dev/camelot/issues/169) Fix import error caused by `pdfminer.six==20200720`. [#171](https://github.com/camelot-dev/camelot/pull/171) by Vinayak Mehta. + 0.8.0 (2020-05-24) ------------------ diff --git a/README.md b/README.md index 1fa8be4..74cef27 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ $ conda install -c conda-forge camelot-py After [installing the dependencies](https://camelot-py.readthedocs.io/en/master/user/install-deps.html) ([tk](https://packages.ubuntu.com/bionic/python/python-tk) and [ghostscript](https://www.ghostscript.com/)), you can simply use pip to install Camelot:
-$ pip install camelot-py[cv] +$ pip install "camelot-py[cv]"### From the source code @@ -113,7 +113,7 @@ $ git clone https://www.github.com/camelot-dev/camelot You can install the development dependencies easily, using pip:
-$ pip install camelot-py[dev] +$ pip install "camelot-py[dev]"### Testing diff --git a/camelot/__version__.py b/camelot/__version__.py index 1eb9ce8..ce1b231 100644 --- a/camelot/__version__.py +++ b/camelot/__version__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -VERSION = (0, 8, 0) +VERSION = (0, 8, 1) PRERELEASE = None # alpha, beta or rc REVISION = None diff --git a/camelot/utils.py b/camelot/utils.py index 1f54485..442c807 100644 --- a/camelot/utils.py +++ b/camelot/utils.py @@ -14,7 +14,7 @@ import numpy as np from pdfminer.pdfparser import PDFParser from pdfminer.pdfdocument import PDFDocument from pdfminer.pdfpage import PDFPage -from pdfminer.pdfpage import PDFTextExtractionNotAllowed +from pdfminer.pdfpage import PDFTextExtractionNotAllowedError from pdfminer.pdfinterp import PDFResourceManager from pdfminer.pdfinterp import PDFPageInterpreter from pdfminer.converter import PDFPageAggregator @@ -780,7 +780,7 @@ def get_page_layout( parser = PDFParser(f) document = PDFDocument(parser) if not document.is_extractable: - raise PDFTextExtractionNotAllowed + raise PDFTextExtractionNotAllowedError(f"Text extraction is not allowed: {filename}") laparams = LAParams( char_margin=char_margin, line_margin=line_margin, diff --git a/docs/dev/contributing.rst b/docs/dev/contributing.rst index 2fe37c9..473741f 100644 --- a/docs/dev/contributing.rst +++ b/docs/dev/contributing.rst @@ -37,7 +37,7 @@ Setting up a development environment To install the dependencies needed for development, you can use pip:: - $ pip install camelot-py[dev] + $ pip install "camelot-py[dev]" Alternatively, you can clone the project repository, and install using pip:: diff --git a/docs/user/install.rst b/docs/user/install.rst index b3d4813..422f118 100644 --- a/docs/user/install.rst +++ b/docs/user/install.rst @@ -25,7 +25,7 @@ Using pip After :ref:`installing the dependencies