peritus / bumpversion

Version-bump your software with a single command
https://pypi.python.org/pypi/bumpversion
MIT License
1.5k stars 147 forks source link

ConfiguredVersionPartConfiguration enhancement #93

Open lgiordani opened 9 years ago

lgiordani commented 9 years ago

What about enhancing the configuration method by allowing the user to add a function instead of a list of values? This is easy to do, and the list of values is just a case of the more general concept, with a 'values' function (for example).

This could be useful when the version, or part of the version is, for instance, a date. The rules for bumping a date can be given only with a function.

peritus commented 8 years ago

If I understand correcly this goes in a similar direction as #106 in that this is about creating more API and more pluggable mechanisms for bumpversion, right ?

Yes, let's talk about how something like this would work and how it would look like!

lgiordani commented 8 years ago

I'm going to check #106 again as I do not remember the whole thing. The new PR #119 I just submitted is a first implementation of this "pluggable" mechanism for version parts. Just a first step towards a full featured API and componentized system.