mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 06:20:08 +01:00
chore: add nightly as valid tag
This commit is contained in:
parent
277d893de3
commit
0650d80b0c
3 changed files with 10 additions and 8 deletions
|
|
@ -68,7 +68,7 @@ def _configure_logging(verbose: int = 0) -> None:
|
||||||
logger.debug("Logging configured.")
|
logger.debug("Logging configured.")
|
||||||
|
|
||||||
|
|
||||||
VALID_RELEASE_TAG_VALUES = ("alpha", "beta", "dev", "rc", "post", "final")
|
VALID_RELEASE_TAG_VALUES = ("alpha", "beta", "nightly", "dev", "rc", "post", "final")
|
||||||
|
|
||||||
|
|
||||||
_current_date = dt.date.today().isoformat()
|
_current_date = dt.date.today().isoformat()
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ PART_PATTERNS = collections.OrderedDict(
|
||||||
('PATCH' , r"[0-9]+"),
|
('PATCH' , r"[0-9]+"),
|
||||||
('BUILD' , r"[0-9]+"),
|
('BUILD' , r"[0-9]+"),
|
||||||
('BLD' , r"[1-9][0-9]*"),
|
('BLD' , r"[1-9][0-9]*"),
|
||||||
('TAG' , r"preview|final|dev|alpha|beta|post|rc"),
|
('TAG' , r"preview|final|nightly|dev|alpha|beta|post|rc"),
|
||||||
('PYTAG' , r"dev|post|rc|a|b"),
|
('PYTAG' , r"dev|post|rc|a|b"),
|
||||||
('GITHASH', r"\.[0-9]+\+.*"),
|
('GITHASH', r"\.[0-9]+\+.*"),
|
||||||
('NUM' , r"[0-9]+"),
|
('NUM' , r"[0-9]+"),
|
||||||
|
|
|
||||||
|
|
@ -94,12 +94,13 @@ TODAY = dt.datetime.utcnow().date()
|
||||||
|
|
||||||
|
|
||||||
TAG_BY_PEP440_TAG = {
|
TAG_BY_PEP440_TAG = {
|
||||||
'a' : 'alpha',
|
'a' : 'alpha',
|
||||||
'b' : 'beta',
|
'b' : 'beta',
|
||||||
'' : 'final',
|
'' : 'final',
|
||||||
'rc' : 'rc',
|
'nightly': 'nightly',
|
||||||
'dev' : 'dev',
|
'rc' : 'rc',
|
||||||
'post': 'post',
|
'dev' : 'dev',
|
||||||
|
'post' : 'post',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -114,6 +115,7 @@ PEP440_TAG_BY_TAG = {
|
||||||
'rc' : 'rc',
|
'rc' : 'rc',
|
||||||
'c' : 'rc',
|
'c' : 'rc',
|
||||||
'final' : '',
|
'final' : '',
|
||||||
|
'nightly': 'nightly',
|
||||||
'post' : 'post',
|
'post' : 'post',
|
||||||
'r' : 'post',
|
'r' : 'post',
|
||||||
'rev' : 'post',
|
'rev' : 'post',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue