Move opencv-python to extra_requires (#134)

pull/2/head
Vinayak Mehta 2018-10-08 01:10:48 +05:30 committed by GitHub
parent 9b2fc53e58
commit fe68328ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 34 additions and 32 deletions

View File

@ -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: 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> <pre>
$ pip install camelot-py $ pip install camelot-py[all]
</pre> </pre>
### Alternatively ### Alternatively
@ -74,7 +74,7 @@ and install Camelot using pip:
<pre> <pre>
$ cd camelot $ cd camelot
$ pip install . $ pip install ".[all]"
</pre> </pre>
**Note:** Use a [virtualenv](https://virtualenv.pypa.io/en/stable/) if you don't want to affect your global Python installation. **Note:** Use a [virtualenv](https://virtualenv.pypa.io/en/stable/) if you don't want to affect your global Python installation.

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
VERSION = (0, 2, 1) VERSION = (0, 2, 2)
__title__ = 'camelot-py' __title__ = 'camelot-py'
__description__ = 'PDF Table Extraction for Humans.' __description__ = 'PDF Table Extraction for Humans.'

View File

@ -76,12 +76,12 @@ Or for Windows 32-bit::
If you have ghostscript, you should see the ghostscript version and copyright information. 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:: 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 Get the source code
------------------- -------------------
@ -97,4 +97,4 @@ Alternatively, you can install from the source by:
:: ::
$ cd camelot $ cd camelot
$ pip install . $ pip install ".[all]"

View File

@ -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

View File

@ -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

View File

@ -13,17 +13,31 @@ with open('README.md', 'r') as f:
readme = f.read() 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(): 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__'], metadata = dict(name=about['__title__'],
version=about['__version__'], version=about['__version__'],
description=about['__description__'], description=about['__description__'],
@ -34,9 +48,10 @@ def setup_package():
author_email=about['__author_email__'], author_email=about['__author_email__'],
license=about['__license__'], license=about['__license__'],
packages=find_packages(exclude=('tests',)), packages=find_packages(exclude=('tests',)),
install_requires=reqs, install_requires=requires,
extras_require={ extras_require={
'dev': dev_reqs 'all': all_requires,
'dev': dev_requires
}, },
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [