disallow --release=dev

dev releases don't work like other kinds of releases, they would
have to be implemented as a different kind of part.
This commit is contained in:
Manuel Barkhau 2020-10-03 17:57:58 +00:00
parent e2b274a7bf
commit 4c8c9b128a
3 changed files with 2 additions and 3 deletions

View file

@ -13,6 +13,7 @@
- Fix gitlab #8: Push tags only pushed tags, not actual commit.
- Fix gitlab #9: Make commit message configurable.
- Fix gitlab #11: Show regexp when `--verbose` is used.
- Fix: Disallow `--release=dev` which has different semantics than other release tags.
- Switch main repo from gitlab to github.

View file

@ -69,7 +69,7 @@ def _configure_logging(verbose: int = 0) -> None:
logger.debug("Logging configured.")
VALID_RELEASE_VALUES = ("alpha", "beta", "dev", "rc", "post", "final")
VALID_RELEASE_VALUES = ("alpha", "beta", "rc", "post", "final")
_current_date = dt.date.today().isoformat()

View file

@ -130,14 +130,12 @@ V2_PART_PATTERN_CASES = [
(['RELEASE'], "alpha" , "alpha"),
(['RELEASE'], "alfa" , None),
(['RELEASE'], "beta" , "beta"),
(['RELEASE'], "dev" , "dev"),
(['RELEASE'], "rc" , "rc"),
(['RELEASE'], "post" , "post"),
(['RELEASE'], "final" , "final"),
(['RELEASE'], "latest", None),
(['PYTAG' ], "a" , "a"),
(['PYTAG' ], "b" , "b"),
(['PYTAG' ], "dev" , "dev"),
(['PYTAG' ], "rc" , "rc"),
(['PYTAG' ], "post" , "post"),
(['PYTAG' ], "post" , "post"),