diff --git a/tox.ini b/tox.ini index 3afa9b67c93e459df11f69fce3a029c56f448c5b..6577604f68d13cf5e7acd40c35ed216f774fad06 100644 --- a/tox.ini +++ b/tox.ini @@ -23,3 +23,18 @@ commands = flake8 [flake8] max-line-length = 120 exclude = cubicweb_addressbook/migration/*,.tox/*, + +[testenv:pypi-publish] +basepython = python3 +skip_install = true +whitelist_externals = rm +deps = + twine +passenv = + TWINE_USERNAME + TWINE_PASSWORD +commands = + rm -rf build dist .egg .egg-info + python3 setup.py sdist bdist_wheel + twine check dist/* + twine upload --skip-existing dist/*