Skip to content

Commit

Permalink
put various dependencies into setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
squeaky-pl committed Jan 14, 2014
1 parent 8b2a93b commit a3b0cf7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ matrix:
- python: 2.7
- env: LINT="pylama -l pylint"
install:
- if [[ `python -c "import sys; print(int(sys.version_info < (2, 7)))"` == "1" ]]; then pip install --use-mirrors unittest2; fi
- pip install -v --use-mirrors .
- if [[ $TEST ]]; then pip install --use-mirrors coverage coveralls; fi
- if [[ "$LINT" ]]; then pip install --use-mirrors pylama py3kwarn clonedigger html2rest; fi
- if [[ $TEST ]]; then pip install --use-mirrors .[travis]; fi
- if [[ "$LINT" ]]; then pip install --use-mirrors .[lint]; fi
before_script:
- python symlinkcdll.py
- PYSTACIA_LOG=1 python -c "from pystacia.api import get_dll; get_dll(False)"
Expand Down
21 changes: 21 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from setuptools.command.install import install
from distutils.command.build import build
from setuptools import setup
from sys import version_info

environ['PYSTACIA_SETUP'] = '1'
import pystacia
Expand Down Expand Up @@ -207,6 +208,18 @@ def run(self):
long_description = readme.read()
readme.close()

test_require = ['nose', 'coverage']
if version_info < (2, 7):
test_require.append('unittest2')

travis_require = test_require + ['coveralls']

docs_require = ['sphinx']

dev_require = test_require + docs_require + ['ipython']

lint_require = ['pylama', 'py3kwarn', 'clonedigger', 'html2rest']

setup(
name='pystacia',
description='Python raster imaging library',
Expand All @@ -218,6 +231,14 @@ def run(self):
license='MIT License',
long_description=long_description,
install_requires=install_requires,
extras_require={
'test': test_require,
'travis': travis_require,
'lint': lint_require,
'docs': docs_require,
'dev': dev_require,
'lint': lint_require
},
cmdclass=cmdclass,
classifiers=[
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit a3b0cf7

Please sign in to comment.