-
Notifications
You must be signed in to change notification settings - Fork 49
PyPiInstructions
Giovanni Pizzi edited this page May 19, 2023
·
14 revisions
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 and make sure themainbranch is ready to be released. - Create a new tag 'vX.X.X' from the latest commit in main (remember to push the tag as well!)
Then:
-
clear the
build/,distandseekpath.egg-infofolders -
git pull(possibly then checking out the tag to be sure of the version we are at) -
python setup.py sdist bdist_wheel --universal -
upload the package
twine upload dist/*
(to test:
pip install seekpath)