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"
|
||||
|
||||
install:
|
||||
- pip install .
|
||||
- pip install .[test]
|
||||
- pip install codecov
|
||||
script: python setup.py pytest
|
||||
after_script: codecov
|
||||
|
|
8
setup.py
8
setup.py
|
@ -1,12 +1,18 @@
|
|||
from setuptools import setup
|
||||
|
||||
test_deps = ['pytest', 'pytest-cov', 'vcrpy', 'pytest-vcr', 'pytest-mock']
|
||||
extras = {
|
||||
"test": test_deps
|
||||
}
|
||||
|
||||
setup(name='Mastodon.py',
|
||||
version='1.1.2',
|
||||
description='Python wrapper for the Mastodon API',
|
||||
packages=['mastodon'],
|
||||
setup_requires=['pytest-runner'],
|
||||
tests_require=['pytest', 'pytest-cov', 'vcrpy', 'pytest-vcr', 'pytest-mock'],
|
||||
install_requires=['requests', 'python-dateutil', 'six', 'pytz'],
|
||||
tests_require=test_deps,
|
||||
extras_require=extras,
|
||||
url='https://github.com/halcy/Mastodon.py',
|
||||
author='Lorenz Diener',
|
||||
author_email='lorenzd+mastodonpypypi@gmail.com',
|
||||
|
|
Loading…
Referencia en una nova incidència