From 2b0c700f29e1290e7448f401dad73de87cee25f7 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 4 May 2017 18:55:11 +0100 Subject: [PATCH] tox: Add 'release' target In case I forget how to do this in the future. Signed-off-by: Stephen Finucane --- tox.ini | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tox.ini b/tox.ini index 797eb7d..06bc552 100644 --- a/tox.ini +++ b/tox.ini @@ -32,3 +32,11 @@ branch = True [testenv:docs] commands = python setup.py build_sphinx + +[testenv:release] +deps = + {[testenv]deps} + twine +commands = + python setup.py -q bdist_wheel sdist + twine upload --skip-existing {toxinidir}/dist/*