You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... a separator character ('-', '_', or '.') is allowed between the word dev and the optional number:
(?P<dev> # dev release
[-_\.]?
(?P<dev_l>dev)
[-_\.]?
(?P<dev_n>[0-9]+)?
)?
However, parver will error if one is present:
>>> import parver; parver.Version.parse("0dev.0")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/src/_external/parver/src/parver/_version.py", line 460, in parse
segments = parse(version, strict=strict)
File "/src/_external/parver/src/parver/_parse.py", line 242, in parse
raise ParseError(str(exc)) from None
parver.ParseError: Expected int or '+' or EOF at position (1, 5) => '0dev*.0'.
The text was updated successfully, but these errors were encountered:
pmolodo
added a commit
to pmolodo/parver
that referenced
this issue
Jan 4, 2025
According to the regular expression in Appendix B of the specification for Version Specifiers:
https://packaging.python.org/en/latest/specifications/version-specifiers/#appendix-parsing-version-strings-with-regular-expressionsversion-specifiers/
... a separator character ('-', '_', or '.') is allowed between the word
dev
and the optional number:However, parver will error if one is present:
The text was updated successfully, but these errors were encountered: