summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini15
1 files changed, 15 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 4121a91..853d7de 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,3 +17,18 @@ extras =
changedir = docs
commands =
python -m sphinx . {toxinidir}/build/html
+
+[testenv:release]
+skip_install = True
+# workaround for pep517 build support
+install_command = python install-pip-master.py {opts} {packages}
+deps =
+ # pull from feature branch for feature
+ git+https://github.com/pypa/pep517@feature/build-command
+ # workaround for https://github.com/pypa/twine/issues/423
+ git+https://github.com/pypa/twine
+ path.py
+commands =
+ python -c "import path; path.Path('dist').rmtree_p()"
+ python -m pep517.build .
+ python -m twine upload dist/*