You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd recommend to setup a Github action (CI) to publish a release to PyPI automatically.
Goal: More frequent releases
Motivation: The current master contains many valuable enhancements (the latest being the CInstrumenter but there have been others before I started) which are not in any release hence it is harder than it should to get a "good" version
Solution: On each pushed tag a new release on PyPI is automatically created. Hence this process becomes much easier: Change version in __version__.py, git tag <tag> and git push origin <tag>
https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ describes how to do this. I could create the workflow file (~5min work) if the tokens are registered in the project. Just need to know if the shown 2nd workflow uploading every commit to testpypi is wanted.
I'd also add a check that the tag and the version.py match. Question is what should be done if they don't: Don't upload the release (need to retag)? Change it then upload (github tag contains different files to PyPI)?
The text was updated successfully, but these errors were encountered:
I'd recommend to setup a Github action (CI) to publish a release to PyPI automatically.
Goal: More frequent releases
Motivation: The current master contains many valuable enhancements (the latest being the CInstrumenter but there have been others before I started) which are not in any release hence it is harder than it should to get a "good" version
Solution: On each pushed tag a new release on PyPI is automatically created. Hence this process becomes much easier: Change version in
__version__.py
,git tag <tag>
andgit push origin <tag>
https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ describes how to do this. I could create the workflow file (~5min work) if the tokens are registered in the project. Just need to know if the shown 2nd workflow uploading every commit to testpypi is wanted.
I'd also add a check that the tag and the version.py match. Question is what should be done if they don't: Don't upload the release (need to retag)? Change it then upload (github tag contains different files to PyPI)?
The text was updated successfully, but these errors were encountered: