
This was allegedly included back when simplejson was more performant that the 'json' library in Python's library. It's additional complexity that we simple don't need. Remove it. This also allows us to clean up the tox file significantly. Note that we must also rename the 'json' module to 'json_utils', as this was shadowing a built-in library. This is a latent issue that was highlighted by removing of 'simplejson' imports. Change-Id: Id9faa9859993e598e2fd08133de576b740790bf3 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
115 lines
3.1 KiB
INI
115 lines
3.1 KiB
INI
[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
|
|
cloud_sptheme
|
|
Sphinx < 1.2.99
|
|
Flask
|
|
flask-restful
|
|
|
|
[testenv]
|
|
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}
|
|
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}
|
|
|
|
[testenv:coverage]
|
|
basepython = python3
|
|
deps =
|
|
coverage < 3.99
|
|
setenv =
|
|
COVERAGE_FILE=.coverage
|
|
commands =
|
|
{envbindir}/coverage erase
|
|
{envbindir}/coverage combine
|
|
{envbindir}/coverage xml wsme/*.py wsme/rest/*.py wsmeext/*.py
|
|
{envbindir}/coverage report --show-missing wsme/*.py wsme/protocols/*.py wsmeext/*.py
|
|
|
|
[testenv:doc]
|
|
basepython = python3
|
|
deps =
|
|
cloud_sptheme
|
|
Sphinx < 1.2.99
|
|
changedir =
|
|
doc
|
|
commands =
|
|
make clean ziphtml
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps = flake8
|
|
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}
|