Open corriander opened 4 years ago
hey @corriander ! sincere apologies for not seeing your pull request earlier. Thanks a lot for the detailed write-up! I'm curious if you actually used the changes in your PR to solve your use case. If so, did it work like expected in your workflow?
Well, this is nice! I was about to write something to increment versions automagically and I stumbled on this.
Sadly my use-case* requires dev versions and release versions only (perhaps with a release candidate option somewhere down the line) and I decided to have a stab at folding the functionality in rather than reinvent this particular wheel. Let's say I now intuitively understand both a) why you haven't implemented this yet and b) PEP440 discourages various types of dev and post releases...
That said, I've given it a shot.
0.1.1a1.dev1
) so that can never happen. I think. I suspect this needs an optionaldev
parameter everywhere and I felt I'd changed enough.next_dev()
increments the pre-release everywhere, so...a1.next_dev()
jumps to...a2.dev1
.postN
releases can be handled similarly but I fear theif
s involved.Anyway, hope this is useful. I'll try not to submit and run but I'm fairly snowed under at the moment so please bear with me :)