From 997fe05143aa57d0cf3b2a3884ff3ca36ccfd587 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 4 Nov 2020 23:36:35 +0100 Subject: [PATCH] chore(tox): add pypi-publish --- tox.ini | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tox.ini b/tox.ini index 3afa9b6..6577604 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/* -- GitLab