diff options
author | Michael Merickel <michael@merickel.org> | 2022-05-15 20:24:52 -0500 |
---|---|---|
committer | Michael Merickel <michael@merickel.org> | 2022-05-15 20:41:32 -0500 |
commit | 617bc4c2eba62701de64196e1199c93cc7277ce4 (patch) | |
tree | 435aa3d6456da966a81cac6febeace7021c3ec89 /tox.ini | |
parent | ee1d364dabd544fe4bf355b2c6578e4237b03992 (diff) | |
download | pastedeploy-git-617bc4c2eba62701de64196e1199c93cc7277ce4.tar.gz |
refactor to a src folder
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 57 |
1 files changed, 50 insertions, 7 deletions
@@ -1,20 +1,63 @@ [tox] envlist = py37,py38,py39,py310,pypy3, + coverage, docs +isolated_build = True [testenv] -deps = - # Paste works on Python 3 since Paste 2.0 - Paste - pytest - pytest-cov commands = - py.test --cov=paste/deploy --cov-report=xml --cov-report=html --cov-report=term-missing {posargs} + python --version + pytest {posargs:} +extras = + testing +setenv = + COVERAGE_FILE=.coverage.{envname} + +[testenv:coverage] +commands = + coverage combine + coverage xml + coverage report --fail-under=100 +deps = + coverage +setenv = + COVERAGE_FILE=.coverage [testenv:docs] whitelist_externals = make commands = - make -C docs html epub BUILDDIR={envdir} "SPHINXOPTS=-W -E" + make -C docs html epub BUILDDIR={envdir} extras = docs + +[testenv:lint] +skip_install = True +commands = + check-manifest + # build sdist/wheel + python -m build . + twine check dist/* +deps = + build + check-manifest + readme_renderer + twine + +[testenv:build] +skip_install = True +commands = + # 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 build . + # Verify all is well + twine check dist/* + +deps = + build + check-manifest + readme_renderer + twine |