twisted / incremental

A library for versioning your Python projects.
Other
136 stars 22 forks source link

--rc not honoring existing version number #51

Open tinjaw opened 4 years ago

tinjaw commented 4 years ago
(BurdenOfCommand) W:\BurdenOfCommand>python -m incremental.update --newversion=0.6.0 --path hex_game burdenofcommand
Updating codebase to 0.6.0
Updating W:\BurdenOfCommand\hex_game/_version.py

(BurdenOfCommand) W:\BurdenOfCommand>python -m incremental.update --rc --path hex_game burdenofcommand
Updating codebase to 20.1.0rc1
Updating W:\BurdenOfCommand\hex_game/_version.py

(BurdenOfCommand) W:\BurdenOfCommand>python -m incremental.update --newversion=0.6.0 --path hex_game burdenofcommand
Updating codebase to 0.6.0
Updating W:\BurdenOfCommand\hex_game\_version.py
Updating W:\BurdenOfCommand\hex_game/_version.py

(BurdenOfCommand) W:\BurdenOfCommand>python -m incremental.update --dev --path hex_game burdenofcommand
Updating codebase to 0.6.0dev0
Updating W:\BurdenOfCommand\hex_game/_version.py

(BurdenOfCommand) W:\BurdenOfCommand>python -m incremental.update --dev --path hex_game burdenofcommand
Updating codebase to 0.6.0dev1
Updating W:\BurdenOfCommand\hex_game/_version.py

(BurdenOfCommand) W:\BurdenOfCommand>python -m incremental.update --rc --path hex_game burdenofcommand
Updating codebase to 20.1.0rc1
Updating W:\BurdenOfCommand\hex_game/_version.py

Using Python 3.7.6 and incremental 17.5.0

tinjaw commented 4 years ago

I want it to honor the existing version number. And I think that should be the default behavior. There should be a flag to change to year.month.

This is also the behavior demonstrated in the documentation.

Additionally, this doesn't work properly if there is more than one release per month.