tox: Remove pecan-devNN tox targets, centralize deps

Change-Id: Ie8498b6a21143091f7514b56b059b3207945fd4f
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane 2019-05-02 11:05:31 -06:00 committed by Michael Johnson
parent 7092903ba1
commit a54cdfb6c7
3 changed files with 19 additions and 86 deletions

View File

@ -1,5 +0,0 @@
six>=1.9.0
WebOb>=1.8.0
simplegeneric
pytz
netaddr>=0.7.12

9
test-requirements.txt Normal file
View File

@ -0,0 +1,9 @@
transaction
pecan
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD
Flask
flask-restful
nose
coverage < 3.99
webtest

91
tox.ini
View File

@ -1,50 +1,19 @@
[tox]
envlist = py27,py35,py36,pypy,coverage,pep8,pecan-dev27,pecan-dev35,pecan-dev36
[common]
testtools =
nose
coverage < 3.99
pbr
webtest
basedeps =
transaction
pecan
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7'
sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4'
Flask
flask-restful
minversion = 3.1
envlist = py27,py35,py36,pypy,coverage,pep8
ignore_basepython_conflict = True
[testenv]
basepython = python3
setenv =
COVERAGE_FILE=.coverage.{envname}
[testenv:pecan-dev-base]
deps =
{[common]testtools}
transaction
https://github.com/pecan/pecan/zipball/master
[testenv:pecan-dev27]
basepython = python2.7
deps = {[testenv:pecan-dev-base]deps}
-r test-requirements.txt
commands =
{envbindir}/nosetests tests/pecantest --with-xunit --xunit-file nosetests-{envname}.xml --verbose {posargs}
[testenv:pecan-dev35]
basepython = python3.5
deps = {[testenv:pecan-dev-base]deps}
commands =
{envbindir}/nosetests tests/pecantest --with-xunit --xunit-file nosetests-{envname}.xml --verbose {posargs}
[testenv:pecan-dev36]
basepython = python3.6
deps = {[testenv:pecan-dev-base]deps}
commands =
{envbindir}/nosetests tests/pecantest --with-xunit --xunit-file nosetests-{envname}.xml --verbose {posargs}
{envbindir}/coverage run {envbindir}/nosetests --nologcapture --with-xunit --xunit-file nosetests-{envname}.xml wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose {posargs}
{envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py
[testenv:coverage]
basepython = python3
deps =
coverage < 3.99
setenv =
@ -56,7 +25,6 @@ commands =
{envbindir}/coverage report --show-missing wsme/*.py wsme/protocols/*.py wsmeext/*.py
[testenv:docs]
basepython = python3
whitelist_externals =
rm
deps =
@ -66,49 +34,10 @@ commands =
sphinx-build -W -b html doc/source doc/build/html
[testenv:pep8]
basepython = python3
deps = flake8
commands = flake8 wsme wsmeext setup.py
commands =
flake8 wsme wsmeext setup.py
[testenv:venv]
commands = {posargs}
usedevelop = True
deps =
pbr
oslo.config
oslotest
[testenv:py27]
commands =
{envbindir}/coverage run {envbindir}/nosetests --nologcapture --with-xunit --xunit-file nosetests-{envname}.xml wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose {posargs}
{envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py
deps =
{[common]testtools}
{[common]basedeps}
basepython = python2.7
[testenv:py35]
commands =
{envbindir}/coverage run {envbindir}/nosetests --nologcapture --with-xunit --xunit-file nosetests-{envname}.xml wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose {posargs}
{envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py
deps =
{[common]testtools}
{[common]basedeps}
basepython = python3.5
[testenv:py36]
commands =
{envbindir}/coverage run {envbindir}/nosetests --nologcapture --with-xunit --xunit-file nosetests-{envname}.xml wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose {posargs}
{envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py
deps =
{[common]testtools}
{[common]basedeps}
basepython = python3.6
[testenv:pypy]
commands =
{envbindir}/coverage run {envbindir}/nosetests --nologcapture --with-xunit --xunit-file nosetests-{envname}.xml wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose {posargs}
{envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py
deps =
{[common]testtools}
{[common]basedeps}
commands = {posargs}