navdeep-G/setup.py

Version bump as part of setup.py?

kootenpv opened this issue · 3 comments

How can we do a nice version bump for major/minor/micro changes?

It might be nice as an extra possible command in setup.py? Would this be possible?

Or do you think it more fits in pipenv?

I'm waiting with creating a project in order to use the recommendation concerning "how to do version bumps" :) I think using the setup.py like this without version bump might be worse than a Pipfile?

If you don't mind managing your versions in Git, there's a setuptools SCM plugin that simplifies this integration, and allows you to avoid version bump commits entirely.

Another alternative is using bump2version. It's being used in the wild, see for example https://github.com/PyCQA/pydocstyle/blob/master/.bumpversion.cfg .

I don't think tagging and version bumping should be configured in setup.py -- it should just describe your package and allow it to be built.