setuptools_scm icon indicating copy to clipboard operation
setuptools_scm copied to clipboard

add a bump version command

Open RonnyPfannschmidt opened this issue 9 years ago • 4 comments
trafficstars

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

RonnyPfannschmidt avatar Oct 24 '16 09:10 RonnyPfannschmidt

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)?

jaraco avatar Oct 24 '16 14:10 jaraco

@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

RonnyPfannschmidt avatar Oct 24 '16 15:10 RonnyPfannschmidt

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.

nolar avatar Mar 14 '18 09:03 nolar

Linking related issues:

  • https://github.com/pypa/setuptools_scm/issues/455
  • https://github.com/pypa/setuptools_scm/issues/773

webknjaz avatar Mar 27 '23 14:03 webknjaz