diff options
author | codl <[email protected]> | 2017-11-28 06:03:13 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-28 06:03:13 +0100 |
commit | 95777fe58e2c61640e377f447594b9c4f4f91542 (patch) | |
tree | 57231a5f979ac4abee7ca9a29d15131475b36da4 | |
parent | d47f915bfb81b5be1d980bf0258bbdd7fe75e16d (diff) | |
download | mastodon.py-95777fe58e2c61640e377f447594b9c4f4f91542.tar.gz |
add [test] extra so test deps can be installed before running tests
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | setup.py | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index e88fe2c..b21a4b3 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -4,7 +4,7 @@ python: | |||
4 | - "2.7" | 4 | - "2.7" |
5 | 5 | ||
6 | install: | 6 | install: |
7 | - pip install . | 7 | - pip install .[test] |
8 | - pip install codecov | 8 | - pip install codecov |
9 | script: python setup.py pytest | 9 | script: python setup.py pytest |
10 | after_script: codecov | 10 | after_script: codecov |
@@ -1,12 +1,18 @@ | |||
1 | from setuptools import setup | 1 | from setuptools import setup |
2 | 2 | ||
3 | test_deps = ['pytest', 'pytest-cov', 'vcrpy', 'pytest-vcr', 'pytest-mock'] | ||
4 | extras = { | ||
5 | "test": test_deps | ||
6 | } | ||
7 | |||
3 | setup(name='Mastodon.py', | 8 | setup(name='Mastodon.py', |
4 | version='1.1.2', | 9 | version='1.1.2', |
5 | description='Python wrapper for the Mastodon API', | 10 | description='Python wrapper for the Mastodon API', |
6 | packages=['mastodon'], | 11 | packages=['mastodon'], |
7 | setup_requires=['pytest-runner'], | 12 | setup_requires=['pytest-runner'], |
8 | tests_require=['pytest', 'pytest-cov', 'vcrpy', 'pytest-vcr', 'pytest-mock'], | ||
9 | install_requires=['requests', 'python-dateutil', 'six', 'pytz'], | 13 | install_requires=['requests', 'python-dateutil', 'six', 'pytz'], |
14 | tests_require=test_deps, | ||
15 | extras_require=extras, | ||
10 | url='https://github.com/halcy/Mastodon.py', | 16 | url='https://github.com/halcy/Mastodon.py', |
11 | author='Lorenz Diener', | 17 | author='Lorenz Diener', |
12 | author_email='[email protected]', | 18 | author_email='[email protected]', |