Ignore a leading v or V in github release tags.
This fixes foosel/OctoPrint#1723 . (cherry picked from commit f1c3829)
This commit is contained in:
1 parent
c8dfe363bc
commit
6b2f28240e
2 files changed
+6
No files matched your search
@@ -150,6 +150,9 @@ def _get_comparable_version_pkg_resources(version_string, force_base=True):
|
||||
|
||||
version = pkg_resources.parse_version(version_string)
|
||||
|
||||
# A leading v is common in github release tags and old setuptools doesn't remove it.
|
||||
if version and isinstance(version, tuple) and version[0].lower() == "*v":
|
||||
version = version[1:]
|
||||
if force_base:
|
||||
if isinstance(version, tuple):
|
||||
# old setuptools
|
||||
|
||||
Reference in new issue
Block a user