-
Notifications
You must be signed in to change notification settings - Fork 9
Making a ctaplot release
Thomas Vuillaume edited this page Jul 20, 2023
·
2 revisions
- Make a PR to bump version number in
ctaplot/__init__.py
and merge - Prepare a release in GitHub
The GitHub release should publish also the PyPi package.
If not, here is the legacy method:
- Prepare PyPi
git checkout vx.y.z
-
python setup.py sdist
- note: Do not use
python setup.py bdist_wheel
, it does not create a .tar package and does not include data files
- note: Do not use
-
twine upload dist/mon_package-2.0.0.tar.gz -r pypitest
- Test if all ok
twine upload dist/mon_package-2.0.0.tar.gz -r pypi
Note: configuration in file ~/.pypirc
:
[distutils]
index-servers =
pypi
pypitest
[pypi]
repository: https://upload.pypi.org/legacy/
username: MON_LOGIN
[pypitest]
repository: https://test.pypi.org/legacy/
username: MON_LOGIN