rossant / pipo

CLI helper for setuptools
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

More flexible version bump handling #3

Open pombredanne opened 8 years ago

pombredanne commented 8 years ago

As mentioned here: https://github.com/pombredanne/pipo-2/commit/e48b1bb97a62a378f43949b7176e5634f9de981c#commitcomment-16849402 bumpversion could provide some enhanced mechanics or inspiration for bumps, including bumping in multiple files at once and bumping selectively version segments. Not all projects have a __version__ in an __init__.py

rossant commented 8 years ago

Initially I did this as a slightly more advanced bashrc script, so it would work for me and (selfishly) not necessarily others :)

Also I wanted a config-free solution that would "just work" as long as you decide to have __version__ in __init__.py (which happens to be the case in my projects)

bumpversion looks nice and flexible. Maybe what we could do is detect the presence of .bumpversion.cfg, in which case pipo bump would just call bumpversion, or something like that?

pombredanne commented 8 years ago

detecting bumpversion can make sense. I guess I will be in for a PR after all. And getting no option and "just work" is a good thing for sure