summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2022-05-15 20:24:52 -0500
committerMichael Merickel <michael@merickel.org>2022-05-15 20:41:32 -0500
commit617bc4c2eba62701de64196e1199c93cc7277ce4 (patch)
tree435aa3d6456da966a81cac6febeace7021c3ec89 /tox.ini
parentee1d364dabd544fe4bf355b2c6578e4237b03992 (diff)
downloadpastedeploy-git-617bc4c2eba62701de64196e1199c93cc7277ce4.tar.gz
refactor to a src folder
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini57
1 files changed, 50 insertions, 7 deletions
diff --git a/tox.ini b/tox.ini
index 4046d48..8df803b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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