diff options
author | Bert JW Regeer <bertjw@regeer.org> | 2020-02-02 22:54:26 -0800 |
---|---|---|
committer | Bert JW Regeer <bertjw@regeer.org> | 2020-04-16 22:54:29 -0700 |
commit | cb42892839e2bc8f86cfeb68bf9334f508578cbd (patch) | |
tree | 344813faaca3ef53213e54e4e3d7dcf4976a9be1 /tox.ini | |
parent | e2facc893269d8a7492ae23ed047fb50b71ccd6b (diff) | |
download | waitress-cb42892839e2bc8f86cfeb68bf9334f508578cbd.tar.gz |
Update tox.ini to new world order
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 101 |
1 files changed, 67 insertions, 34 deletions
@@ -1,56 +1,89 @@ [tox] envlist = - py27,py35,py36,py37,py38,pypy,pypy3, + lint, + py27,pypy, + py35,py36,py37,py38,pypy3, docs, - {py27,py35}-cover,coverage + coverage +isolated_build = True [testenv] commands = python --version - nosetests --with-xunit --xunit-file=nosetests-{envname}.xml {posargs:waitress} - + nosetests {posargs:} extras = testing +setenv = + COVERAGE_FILE=.coverage.{envname} -[testenv:docs] -basepython = python3.5 -whitelist_externals = make +[testenv:coverage] +basepython = python3.8 commands = - make -C docs clean html epub BUILDDIR={envdir} "SPHINXOPTS=-W -E" -extras = - docs + coverage combine + coverage xml + coverage report --show-missing +deps = + coverage +setenv = + COVERAGE_FILE=.coverage +depends = py27, py35 -[py-cover] +[testenv:lint] +skip_install = True +basepython = python3.8 commands = - coverage run {envbindir}/nosetests waitress - coverage combine - coverage xml -o {envname}.xml + black --check --diff . + check-manifest + # build sdist/wheel + python -m pep517.build . + twine check dist/* +deps = + black + readme_renderer + check-manifest + pep517 + twine +[testenv:docs] +whitelist_externals = + make +commands = + make -C docs html BUILDDIR={envdir} SPHINXOPTS="-W -E" extras = - testing + docs -[testenv:py27-cover] +[testenv:run-flake8] +skip_install = True +basepython = python3.8 commands = - {[py-cover]commands} - -setenv = - COVERAGE_FILE=.coverage.py2 + flake8 src/waitress/ tests +deps = + flake8 + flake8-bugbear -[testenv:py35-cover] +[testenv:run-black] +skip_install = True +basepython = python3.8 commands = - {[py-cover]commands} - -setenv = - COVERAGE_FILE=.coverage.py3 + black . +deps = + black -[testenv:coverage] -basepython = python3.5 +[testenv:build] +skip_install = true +basepython = python3.8 commands = - coverage combine - coverage xml - coverage report --show-missing --fail-under=100 -deps = - coverage -setenv = - COVERAGE_FILE=.coverage + # clean up build/ and dist/ folders + python -c 'import shutil; shutil.rmtree("build", ignore_errors=True)' + # Make sure we aren't forgetting anything + check-manifest + # build sdist/wheel + python -m pep517.build . + # Verify all is well + twine check dist/* +deps = + readme_renderer + check-manifest + pep517 + twine |