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
{{ message }}
Repository navigation
Use git tags to automatically generate version numbers. #26
Hardcoded version number in setup.py for now. But, would like to use git tags with the use_scm_version available to setup.py. How are version numbers generated in other python projects in our repositories as I would like to follow this pattern? Are we using pyproject.toml in addition to setup.py? @KLMatlock, @mlathara, @webberlh, any ideas? Thanks.
For the Python projects I interact with, we're standardizing on having a version number in the setup.py and using bump2version to take care of updating versions as part of our release pipeline. bump2version configuration is done via the setup.cfg file.
Activity
oliviawebber commentedon Dec 27, 2022
For the Python projects I interact with, we're standardizing on having a version number in the
setup.pyand usingbump2versionto take care of updating versions as part of our release pipeline.bump2versionconfiguration is done via thesetup.cfgfile.KLMatlock commentedon Dec 27, 2022
The
bump2versionsolution proposed by @webberlh should work. Since this project already has apyproject.yamlthat can be used in place ofsetup.cfg.