Only define dependencies in setup.py (#306)
Fixes #299. Closes #300. Changed: define dependencies in setup.py using install_requires and extra_requires. Added: section to CONTRIBUTE.md for initial dev setup.pull/307/head
parent
9fd7172f7b
commit
12bba5b5f7
|
@ -5,9 +5,6 @@ python:
|
|||
- "3.5"
|
||||
- "3.6"
|
||||
install:
|
||||
- pip install six
|
||||
- pip install pycryptodome
|
||||
- pip install chardet
|
||||
- pip install sortedcontainers
|
||||
- pip install tox-travis
|
||||
script:
|
||||
nosetests --nologcapture
|
||||
- tox
|
||||
|
|
|
@ -29,4 +29,21 @@ Any contribution is appreciated! You might want to:
|
|||
* Code should work for Python 2.7 and Python 3.x (for now).
|
||||
* Code changes should conform to PEP8 coding style (with a line-width of 120). Existing code may stay as it is.
|
||||
* New features should be well documented using docstrings.
|
||||
* Check spelling and grammar.
|
||||
* Check spelling and grammar.
|
||||
|
||||
## Dev setup
|
||||
|
||||
```sh
|
||||
# Clone the repo
|
||||
git clone https://github.com/pdfminer/pdfminer.six
|
||||
cd pdfminer.six
|
||||
|
||||
# Install dev dependencies
|
||||
pip install -e .[dev]
|
||||
|
||||
# Run tests on all Python versions
|
||||
tox
|
||||
|
||||
# Run tests on a single version
|
||||
tox -e py36
|
||||
```
|
||||
|
|
11
setup.py
11
setup.py
|
@ -1,16 +1,19 @@
|
|||
from setuptools import setup
|
||||
import sys
|
||||
|
||||
import pdfminer as package
|
||||
|
||||
requires = ['six', 'pycryptodome', 'sortedcontainers', 'chardet ; python_version > "3.0"']
|
||||
|
||||
setup(
|
||||
name='pdfminer.six',
|
||||
version=package.__version__,
|
||||
packages=['pdfminer'],
|
||||
package_data={'pdfminer': ['cmap/*.pickle.gz']},
|
||||
install_requires=requires,
|
||||
install_requires=[
|
||||
'chardet ; python_version > "3.0"',
|
||||
'pycryptodome',
|
||||
'six',
|
||||
'sortedcontainers',
|
||||
],
|
||||
extras_require={"dev": ["nose", "tox"]},
|
||||
description='PDF parser and analyzer',
|
||||
long_description=package.__doc__,
|
||||
license='MIT/X',
|
||||
|
|
Loading…
Reference in New Issue