diff --git a/tox.ini b/tox.ini index 980b663bf55bbbf0b9dd0f35951531fdf24e836a..e440a8a7465e6696c00658be2cb9d6882e8ae6e1 100644 --- a/tox.ini +++ b/tox.ini @@ -23,3 +23,18 @@ commands = {envpython} -m flake8 {toxinidir} {posargs} [flake8] max-line-length = 120 exclude = cubicweb_card/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/*