-
Notifications
You must be signed in to change notification settings - Fork 6
PyPiInstructions
Giovanni Pizzi edited this page May 17, 2020
·
1 revision
Since I always forget, here are some instructions.
-
pip install twine(only once) - create
~/.pypirc:[distutils] index-servers = pypi pypitest [pypi] username=gio.piz [pypitest] repository=https://testpypi.python.org/pypi username=gio.piz
- First, update
__version__in the code (subfolder tools-barebone) - merge also into
master(via a PR!) - commit and create a new tag
vX.X.Xfrom the commit in master (remember to push the tag as well!) - make sure that a new tag has been successfully built on DockerHub.
Then:
-
clear the
build/,distandtools_barebone.egg-infofolders -
git pull -
git checkout vX.X.X -
python setup.py sdist bdist_wheel --universal -
upload the package
twine upload dist/*