Skip to content

Making a ctaplot release

Thomas Vuillaume edited this page Jul 20, 2023 · 2 revisions
  1. Make a PR to bump version number in ctaplot/__init__.py and merge
  2. Prepare a release in GitHub

The GitHub release should publish also the PyPi package.

If not, here is the legacy method:

  1. 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
    • 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
Clone this wiki locally