add [test] extra so test deps can be installed before running tests
This commit is contained in:
pare
d47f915bfb
commit
95777fe58e
S'han modificat 2 arxius amb 8 adicions i 2 eliminacions
|
@ -4,7 +4,7 @@ python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install .
|
- pip install .[test]
|
||||||
- pip install codecov
|
- pip install codecov
|
||||||
script: python setup.py pytest
|
script: python setup.py pytest
|
||||||
after_script: codecov
|
after_script: codecov
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -1,12 +1,18 @@
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
test_deps = ['pytest', 'pytest-cov', 'vcrpy', 'pytest-vcr', 'pytest-mock']
|
||||||
|
extras = {
|
||||||
|
"test": test_deps
|
||||||
|
}
|
||||||
|
|
||||||
setup(name='Mastodon.py',
|
setup(name='Mastodon.py',
|
||||||
version='1.1.2',
|
version='1.1.2',
|
||||||
description='Python wrapper for the Mastodon API',
|
description='Python wrapper for the Mastodon API',
|
||||||
packages=['mastodon'],
|
packages=['mastodon'],
|
||||||
setup_requires=['pytest-runner'],
|
setup_requires=['pytest-runner'],
|
||||||
tests_require=['pytest', 'pytest-cov', 'vcrpy', 'pytest-vcr', 'pytest-mock'],
|
|
||||||
install_requires=['requests', 'python-dateutil', 'six', 'pytz'],
|
install_requires=['requests', 'python-dateutil', 'six', 'pytz'],
|
||||||
|
tests_require=test_deps,
|
||||||
|
extras_require=extras,
|
||||||
url='https://github.com/halcy/Mastodon.py',
|
url='https://github.com/halcy/Mastodon.py',
|
||||||
author='Lorenz Diener',
|
author='Lorenz Diener',
|
||||||
author_email='lorenzd+mastodonpypypi@gmail.com',
|
author_email='lorenzd+mastodonpypypi@gmail.com',
|
||||||
|
|
Loading…
Referencia en una nova incidència