Skip to content

Latest commit

 

History

History
68 lines (47 loc) · 1.78 KB

File metadata and controls

68 lines (47 loc) · 1.78 KB

Release

How to release podpac

Updating main

  1. Ensure your local main / main-3.X branch is synced to upstream:
$ git pull upstream main  # or just git pull
  1. Create a release branch: release/4.x.y

  2. Update version.py MAJOR, MINOR, and HOTFIX to the right semantic version

  3. Run unit tests

$ # Activate Python environment
$ pytest podpac             
  1. Review the CHANGELOG and update
- <prefix>: <short description> ([<github issue>](https://github.com/creare-com/podpac/issues/<issue#>))
  1. Merge changes into main

  2. On the main branch, Tag the release:

$ git tag -a X.Y.Z -m 'X.Y.Z'
  1. Push your changes to main:
$ git push upstream main
$ git push upstream --tags
  1. Build source and binary wheels for pypi (you have to have the wheels package installed):
$ git clean -xdf  # this deletes all uncommited changes!
$ python setup.py bdist_wheel sdist
  1. Upload package to TestPypi. You will need to be listed as a package owner at https://pypi.python.org/pypi/podpac for this to work. You now need to use a pypi generated token, can no longer use your password.
$ twine upload --repository-url https://test.pypi.org/legacy/ dist/podpac-X.Y.Z*
  1. Use twine to register and upload the release on pypi. Be careful, you can't take this back! You will need to be listed as a package owner at https://pypi.python.org/pypi/podpac for this to work.
$ twine upload dist/podpac-X.Y.Z*
  1. Issue the release announcement (via github)