Use extras_require for tox deps

This commit is contained in:
Hugo 2019-12-17 22:48:05 +02:00
parent 3673c07994
commit ec43b92c27
3 changed files with 4 additions and 11 deletions

View file

@ -4,6 +4,3 @@ universal = 1
[flake8]
ignore = W503
max_line_length = 88
[pycodestyle]
max_line_length = 88

View file

@ -20,7 +20,9 @@ setup(
author="Amr Hassan <amr.hassan@gmail.com> and Contributors",
author_email="amr.hassan@gmail.com",
url="https://github.com/pylast/pylast",
tests_require=["coverage", "flaky", "pycodestyle", "pyflakes", "pytest", "pyyaml"],
extras_require={
"tests": ["flaky", "pytest", "pytest-cov", "pytest-random-order", "pyyaml"]
},
python_requires=">=3.5",
classifiers=[
"Development Status :: 5 - Production/Stable",

View file

@ -3,18 +3,12 @@ envlist = py38, py37, py36, py35, pypy3
recreate = False
[testenv]
extras = tests
setenv =
PYLAST_USERNAME={env:PYLAST_USERNAME:}
PYLAST_PASSWORD_HASH={env:PYLAST_PASSWORD_HASH:}
PYLAST_API_KEY={env:PYLAST_API_KEY:}
PYLAST_API_SECRET={env:PYLAST_API_SECRET:}
deps =
pyyaml
pytest
ipdb
pytest-cov
pytest-random-order
flaky
commands = pytest -v -s -W all --cov pylast --cov-report term-missing --random-order {posargs}
[testenv:venv]