pypa / setuptools-scm

the blessed package to manage your versions by scm tags
https://setuptools-scm.readthedocs.io/en/latest/
MIT License
851 stars 213 forks source link

add a bump version command #124

Open RonnyPfannschmidt opened 7 years ago

RonnyPfannschmidt commented 7 years ago

there should be a builtin command that enables to create actual tags it should solve the simple use-case, and perhaps provide connected tooling for a more complex use-case

jaraco commented 7 years ago

How would you imagine this command would work? Something like how bumpversion works, except under setup.py but presumably without re-writing any files (only handling tags)?

RonnyPfannschmidt commented 7 years ago

@jaraco the idea is to provide a command that only creates a tag and maybe pushes it

the main idea is to ease creating signed/annotated tags

nolar commented 6 years ago

At least, the next major/minor/micro/rc/dev version should be calculated and printed to stdout.

Some CI/CD tools do not have the permissions to push to the git repos from the build environments, but they can provide the workarounds on how to create the tags/releases: e.g. on GitHub[Enterprise] via the API calls. For this, we have to call these tools with the "next release version" to be created. Calculating it in the shell can be painful.

If at least this is available, people can put the tags themselves: e.g. git tag $(./setup.py --next-minor-version), and push them as needed.

webknjaz commented 1 year ago

Linking related issues: