summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tox.ini15
1 files changed, 15 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 5d439cb3..faccffdc 100644
--- a/tox.ini
+++ b/tox.ini
@@ -55,3 +55,18 @@ source=
setuptools
omit=
*/_vendor/*
+
+[testenv:release]
+skip_install = True
+deps =
+ pep517>=0.5
+ twine[keyring]>=1.13
+ path
+passenv =
+ TWINE_PASSWORD
+setenv =
+ TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
+commands =
+ python -c "import path; path.Path('dist').rmtree_p()"
+ python -m pep517.build .
+ python -m twine upload dist/*