Skip to content

Creating a new release (GitHub and PyPi)

Kent Inverarity edited this page Apr 14, 2021 · 11 revisions
  1. Ensure you are on master: $ git checkout master
  2. Ensure you are using the latest copy of master: $ git pull origin master
  3. Check for any local changes to master: $ git status - test locally and push if necessary.
  4. Check that GitHub Actions Python CI for master is passing.
  5. Find changes since last version release: see list of commits.
  6. Summarise these changes in docs/source/changelog.rst
  7. Commit with a message e.g. Release v1.3
  8. Tag with the same message e.g. git tag v1.3
  9. Push to github - first the commit: git push origin master
  10. ..and then push the new tag: git push origin tag v1.3
  11. Create a universal wheel: python setup.py bdist_wheel --universal
  12. This will put a new wheel file in dist/
  13. Also create a source distribution: python setup.py sdist
  14. This will put a source distribution archive in dist/
  15. Upload all the new distribution release files (wheel and archive) to PyPI: twine upload -u USERNAME -p PASSWORD dist/file
  16. Create a new GitHub release - https://github.com/kinverarity1/lasio/releases/new - select the tag, and copy the CHANGELOG text in.
  17. Copy the wheel and source distribution archive files into the release page.
  18. Publish the release.

That's it.

Clone this wiki locally