Open pombredanne opened 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?
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
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