fix gitlab #4: make {release} tag optional

This commit is contained in:
Manuel Barkhau 2019-07-09 08:21:57 +02:00
parent e17165827f
commit b893995cbc
3 changed files with 31 additions and 3 deletions

View file

@ -78,7 +78,7 @@ COMPOSITE_PART_PATTERNS = {
'semver' : r"{MAJOR}\.{MINOR}\.{PATCH}",
'release_tag' : r"{tag}",
'build' : r"\.{bid}",
'release' : r"-{tag}",
'release' : r"(?:-{tag})?",
# depricated
'pep440_version': r"{year}{month}\.{BID}(?:{pep440_tag})?",
}