Versioning of the projects #3444
-
Description
By running setup.cfg
RationaleA struggle of my is to keep the version number consistent and keep track of the different places where I need to reference to the version number. This project adds a How do you manage this problem? Is bump2version the way to go? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think this is a subjective topic and not one that is very clear in the context of an application that is continually deployed. When do you bump the major/minor/patch version? Who cares about this version? Users visiting my site won't usually see the version anywhere... What we do at work is create a tag based on the date, which looks like this For a library, it's obviously different, and on some projects which are distributed to PyPI, I use I don't think the consensus is clear enough to make it part of the template, but I guess it's worth keeping as discussion. |
Beta Was this translation helpful? Give feedback.
I think this is a subjective topic and not one that is very clear in the context of an application that is continually deployed. When do you bump the major/minor/patch version? Who cares about this version? Users visiting my site won't usually see the version anywhere...
What we do at work is create a tag based on the date, which looks like this
v20211202.1
. We bump the final digit each time a PR is merged, and it goes back to 1 every day. Looks likebump2version
can be configured to support it, but it doesn't seem like the main use case.For a library, it's obviously different, and on some projects which are distributed to PyPI, I use
python-semantic-release
which provides an all-in-one …