tox: Remove pecan-devNN tox targets, centralize deps
Change-Id: Ie8498b6a21143091f7514b56b059b3207945fd4f Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
7092903ba1
commit
a54cdfb6c7
@ -1,5 +0,0 @@
|
|||||||
six>=1.9.0
|
|
||||||
WebOb>=1.8.0
|
|
||||||
simplegeneric
|
|
||||||
pytz
|
|
||||||
netaddr>=0.7.12
|
|
9
test-requirements.txt
Normal file
9
test-requirements.txt
Normal 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
91
tox.ini
@ -1,50 +1,19 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py27,py35,py36,pypy,coverage,pep8,pecan-dev27,pecan-dev35,pecan-dev36
|
minversion = 3.1
|
||||||
|
envlist = py27,py35,py36,pypy,coverage,pep8
|
||||||
[common]
|
ignore_basepython_conflict = True
|
||||||
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
|
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
basepython = python3
|
||||||
setenv =
|
setenv =
|
||||||
COVERAGE_FILE=.coverage.{envname}
|
COVERAGE_FILE=.coverage.{envname}
|
||||||
|
|
||||||
[testenv:pecan-dev-base]
|
|
||||||
deps =
|
deps =
|
||||||
{[common]testtools}
|
-r test-requirements.txt
|
||||||
transaction
|
|
||||||
https://github.com/pecan/pecan/zipball/master
|
|
||||||
|
|
||||||
[testenv:pecan-dev27]
|
|
||||||
basepython = python2.7
|
|
||||||
deps = {[testenv:pecan-dev-base]deps}
|
|
||||||
commands =
|
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: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}
|
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
basepython = python3
|
|
||||||
deps =
|
deps =
|
||||||
coverage < 3.99
|
coverage < 3.99
|
||||||
setenv =
|
setenv =
|
||||||
@ -56,7 +25,6 @@ commands =
|
|||||||
{envbindir}/coverage report --show-missing wsme/*.py wsme/protocols/*.py wsmeext/*.py
|
{envbindir}/coverage report --show-missing wsme/*.py wsme/protocols/*.py wsmeext/*.py
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
rm
|
rm
|
||||||
deps =
|
deps =
|
||||||
@ -66,49 +34,10 @@ commands =
|
|||||||
sphinx-build -W -b html doc/source doc/build/html
|
sphinx-build -W -b html doc/source doc/build/html
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3
|
|
||||||
deps = flake8
|
deps = flake8
|
||||||
commands = flake8 wsme wsmeext setup.py
|
commands =
|
||||||
|
flake8 wsme wsmeext setup.py
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
deps =
|
commands = {posargs}
|
||||||
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}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user