Skip to content

Commit

Permalink
The v does not belong in version
Browse files Browse the repository at this point in the history
  • Loading branch information
noahbroyles committed Jan 14, 2022
1 parent df1933e commit e175a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

def test_secsie_semver_syntax():
VERSION_EX = re.compile(r'^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$')
assert VERSION_EX.match(secsie.__version__.split('v')[1])
assert VERSION_EX.match(secsie.__version__)
# assert secsie.__version__ == 'v2.1.0'

0 comments on commit e175a72

Please sign in to comment.