Closed Nicholas-Schaub closed 2 years ago
Thanks a lot for this! It's a great tutorial for me to understand how we can manage versions. I found several formatting disagreements with the pre-commit
config. Can you try pre-commit run --all
to fix those lines? @Nicholas-Schaub
I was trying to check how it works in my local environment, but found something a bit funny:
bump2version patch
, for example, it brings [bumpversion]
section in setup.cfg
to the top of setup.cfg
pre-commit
complains about that and raises an error.One quick fix may be using .bumpversion.cfg
instead of setup.cfg
...
This PR adds:
The way this should generally work is this:
bump2version
to change the version and auto-tag the commit. Then push the tag to github.This will trigger the CI pipeline to build the package and push to PyPi.
I included additional information on creating development versus main releases in the README.