From 2436245b02c435e1259ced5dd6523cb2aacdb1fd Mon Sep 17 00:00:00 2001 From: Mikael Koli Date: Wed, 24 Nov 2021 23:18:15 +0200 Subject: [PATCH] pkg: updated Pypi releasing to tox --- tox.ini | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index b8b74837..7791bada 100644 --- a/tox.ini +++ b/tox.ini @@ -35,4 +35,22 @@ commands = sphinx-build docs "{toxinidir}/docs/_build/html" --color -W -bhtml {p description = build the package. skip_install = true # install_command = pip install --upgrade build -commands = python setup.py bdist_wheel \ No newline at end of file +commands = python setup.py bdist_wheel sdist + +[testenv:release] +description = build and release the package. +skip_install = true +deps = + twine +# install_command = pip install --upgrade build +commands = python setup.py bdist_wheel sdist + twine upload dist/* + +[testenv:release-test] +description = build and release the package. +skip_install = true +deps = + twine +# install_command = pip install --upgrade build +commands = python setup.py bdist_wheel sdist + twine upload -r testpypi dist/* \ No newline at end of file