add [test] extra so test deps can be installed before running tests

This commit is contained in:
codl 2017-11-28 06:03:13 +01:00
pare d47f915bfb
commit 95777fe58e
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: 6CD7C8891ED1233A
S'han modificat 2 arxius amb 8 adicions i 2 eliminacions

Veure arxiu

@ -4,7 +4,7 @@ python:
- "2.7"
install:
- pip install .
- pip install .[test]
- pip install codecov
script: python setup.py pytest
after_script: codecov

Veure arxiu

@ -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',