Move opencv-python to extra_requires (#134)
parent
9b2fc53e58
commit
fe68328ef2
|
|
@ -59,7 +59,7 @@ See [comparison with other PDF table extraction libraries and tools](https://git
|
|||
After [installing the dependencies](https://camelot-py.readthedocs.io/en/latest/user/install.html) ([tk](https://packages.ubuntu.com/trusty/python-tk) and [ghostscript](https://www.ghostscript.com/)), you can simply use pip to install Camelot:
|
||||
|
||||
<pre>
|
||||
$ pip install camelot-py
|
||||
$ pip install camelot-py[all]
|
||||
</pre>
|
||||
|
||||
### Alternatively
|
||||
|
|
@ -74,7 +74,7 @@ and install Camelot using pip:
|
|||
|
||||
<pre>
|
||||
$ cd camelot
|
||||
$ pip install .
|
||||
$ pip install ".[all]"
|
||||
</pre>
|
||||
|
||||
**Note:** Use a [virtualenv](https://virtualenv.pypa.io/en/stable/) if you don't want to affect your global Python installation.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
VERSION = (0, 2, 1)
|
||||
VERSION = (0, 2, 2)
|
||||
|
||||
__title__ = 'camelot-py'
|
||||
__description__ = 'PDF Table Extraction for Humans.'
|
||||
|
|
|
|||
|
|
@ -76,12 +76,12 @@ Or for Windows 32-bit::
|
|||
|
||||
If you have ghostscript, you should see the ghostscript version and copyright information.
|
||||
|
||||
$ pip install camelot-py
|
||||
------------------------
|
||||
$ pip install camelot-py[all]
|
||||
-----------------------------
|
||||
|
||||
After installing the dependencies, you can simply use pip to install Camelot::
|
||||
|
||||
$ pip install camelot-py
|
||||
$ pip install camelot-py[all]
|
||||
|
||||
Get the source code
|
||||
-------------------
|
||||
|
|
@ -97,4 +97,4 @@ Alternatively, you can install from the source by:
|
|||
::
|
||||
|
||||
$ cd camelot
|
||||
$ pip install .
|
||||
$ pip install ".[all]"
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
codecov==2.0.15
|
||||
pytest==3.8.0
|
||||
pytest-cov==2.6.0
|
||||
pytest-runner==4.2
|
||||
Sphinx==1.7.9
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
click==6.7
|
||||
matplotlib==2.2.3
|
||||
numpy==1.15.2
|
||||
opencv-python==3.4.2.17
|
||||
openpyxl==2.5.8
|
||||
pandas==0.23.4
|
||||
pdfminer.six==20170720
|
||||
PyPDF2==1.26.0
|
||||
39
setup.py
39
setup.py
|
|
@ -13,17 +13,31 @@ with open('README.md', 'r') as f:
|
|||
readme = f.read()
|
||||
|
||||
|
||||
requires = [
|
||||
'click==6.7',
|
||||
'matplotlib==2.2.3',
|
||||
'numpy==1.15.2',
|
||||
'openpyxl==2.5.8',
|
||||
'pandas==0.23.4',
|
||||
'pdfminer.six==20170720',
|
||||
'PyPDF2==1.26.0'
|
||||
]
|
||||
|
||||
all_requires = [
|
||||
'opencv-python==3.4.2.17'
|
||||
]
|
||||
|
||||
dev_requires = [
|
||||
'codecov==2.0.15',
|
||||
'pytest==3.8.0',
|
||||
'pytest-cov==2.6.0',
|
||||
'pytest-runner==4.2',
|
||||
'Sphinx==1.7.9'
|
||||
]
|
||||
dev_requires = dev_requires + all_requires
|
||||
|
||||
|
||||
def setup_package():
|
||||
reqs = []
|
||||
with open('requirements.txt', 'r') as f:
|
||||
for line in f:
|
||||
reqs.append(line.strip())
|
||||
|
||||
dev_reqs = []
|
||||
with open('requirements-dev.txt', 'r') as f:
|
||||
for line in f:
|
||||
dev_reqs.append(line.strip())
|
||||
|
||||
metadata = dict(name=about['__title__'],
|
||||
version=about['__version__'],
|
||||
description=about['__description__'],
|
||||
|
|
@ -34,9 +48,10 @@ def setup_package():
|
|||
author_email=about['__author_email__'],
|
||||
license=about['__license__'],
|
||||
packages=find_packages(exclude=('tests',)),
|
||||
install_requires=reqs,
|
||||
install_requires=requires,
|
||||
extras_require={
|
||||
'dev': dev_reqs
|
||||
'all': all_requires,
|
||||
'dev': dev_requires
|
||||
},
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
|
|
|
|||
Loading…
Reference in New Issue