Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 16beb15c43 | |||
| be25e6dbdb | |||
| a13e2f6f1f | |||
| 4b08165328 | |||
| e5b143d9a8 | |||
| 8e5a8e6712 | |||
| 5efbcdcebb | |||
| 189fe58bf2 | |||
| 1575ec1bf0 |
@@ -0,0 +1,24 @@
|
|||||||
|
# .readthedocs.yml
|
||||||
|
# Read the Docs configuration file
|
||||||
|
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
||||||
|
|
||||||
|
# Required
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
# Build documentation in the docs/ directory with Sphinx
|
||||||
|
sphinx:
|
||||||
|
configuration: docs/conf.py
|
||||||
|
|
||||||
|
# Build documentation with MkDocs
|
||||||
|
#mkdocs:
|
||||||
|
# configuration: mkdocs.yml
|
||||||
|
|
||||||
|
# Optionally build your docs in additional formats such as PDF
|
||||||
|
formats:
|
||||||
|
- pdf
|
||||||
|
|
||||||
|
# Optionally set the version of Python and requirements required to build your docs
|
||||||
|
python:
|
||||||
|
version: 3.8
|
||||||
|
install:
|
||||||
|
- requirements: requirements.txt
|
||||||
+1
-1
@@ -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:
|
To install the dependencies needed for development, you can use pip:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
$ pip install camelot-py[dev]
|
$ pip install "camelot-py[dev]"
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
Alternatively, you can clone the project repository, and install using pip:
|
Alternatively, you can clone the project repository, and install using pip:
|
||||||
|
|||||||
@@ -4,6 +4,13 @@ Release History
|
|||||||
master
|
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)
|
0.8.0 (2020-05-24)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
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:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
$ pip install camelot-py[cv]
|
$ pip install "camelot-py[cv]"
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
### From the source code
|
### 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:
|
You can install the development dependencies easily, using pip:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
$ pip install camelot-py[dev]
|
$ pip install "camelot-py[dev]"
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
VERSION = (0, 8, 0)
|
VERSION = (0, 8, 1)
|
||||||
PRERELEASE = None # alpha, beta or rc
|
PRERELEASE = None # alpha, beta or rc
|
||||||
REVISION = None
|
REVISION = None
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -14,7 +14,7 @@ import numpy as np
|
|||||||
from pdfminer.pdfparser import PDFParser
|
from pdfminer.pdfparser import PDFParser
|
||||||
from pdfminer.pdfdocument import PDFDocument
|
from pdfminer.pdfdocument import PDFDocument
|
||||||
from pdfminer.pdfpage import PDFPage
|
from pdfminer.pdfpage import PDFPage
|
||||||
from pdfminer.pdfpage import PDFTextExtractionNotAllowed
|
from pdfminer.pdfpage import PDFTextExtractionNotAllowedError
|
||||||
from pdfminer.pdfinterp import PDFResourceManager
|
from pdfminer.pdfinterp import PDFResourceManager
|
||||||
from pdfminer.pdfinterp import PDFPageInterpreter
|
from pdfminer.pdfinterp import PDFPageInterpreter
|
||||||
from pdfminer.converter import PDFPageAggregator
|
from pdfminer.converter import PDFPageAggregator
|
||||||
@@ -780,7 +780,7 @@ def get_page_layout(
|
|||||||
parser = PDFParser(f)
|
parser = PDFParser(f)
|
||||||
document = PDFDocument(parser)
|
document = PDFDocument(parser)
|
||||||
if not document.is_extractable:
|
if not document.is_extractable:
|
||||||
raise PDFTextExtractionNotAllowed
|
raise PDFTextExtractionNotAllowedError(f"Text extraction is not allowed: {filename}")
|
||||||
laparams = LAParams(
|
laparams = LAParams(
|
||||||
char_margin=char_margin,
|
char_margin=char_margin,
|
||||||
line_margin=line_margin,
|
line_margin=line_margin,
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ Setting up a development environment
|
|||||||
|
|
||||||
To install the dependencies needed for development, you can use pip::
|
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::
|
Alternatively, you can clone the project repository, and install using pip::
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ Using pip
|
|||||||
|
|
||||||
After :ref:`installing the dependencies <install_deps>`, which include `Tkinter`_ and `ghostscript`_, you can simply use pip to install Camelot::
|
After :ref:`installing the dependencies <install_deps>`, which include `Tkinter`_ and `ghostscript`_, you can simply use pip to install Camelot::
|
||||||
|
|
||||||
$ pip install camelot-py[cv]
|
$ pip install "camelot-py[cv]"
|
||||||
|
|
||||||
.. _Tkinter: https://wiki.python.org/moin/TkInter
|
.. _Tkinter: https://wiki.python.org/moin/TkInter
|
||||||
.. _ghostscript: https://www.ghostscript.com
|
.. _ghostscript: https://www.ghostscript.com
|
||||||
|
|||||||
+3
-1
@@ -1,8 +1,10 @@
|
|||||||
|
chardet>=3.0.4
|
||||||
click>=6.7
|
click>=6.7
|
||||||
matplotlib>=2.2.3
|
matplotlib>=2.2.3
|
||||||
numpy>=1.13.3
|
numpy>=1.13.3
|
||||||
opencv-python>=3.4.2.17
|
opencv-python>=3.4.2.17
|
||||||
openpyxl>=2.5.8
|
openpyxl>=2.5.8
|
||||||
pandas>=0.23.4
|
pandas>=0.23.4
|
||||||
pdfminer.six>=20170720
|
pdfminer.six>=20200720
|
||||||
PyPDF2>=1.26.0
|
PyPDF2>=1.26.0
|
||||||
|
Sphinx>=1.7.9
|
||||||
|
|||||||
Reference in New Issue
Block a user