We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b762b9 commit 1099bc2Copy full SHA for 1099bc2
scripts/latest_versions.py
@@ -18,7 +18,7 @@
18
version_regex = re.compile(r"-(\d+\.\d+\.\d+(a|b|rc)?\d?).+[\.whl|\.tar\.gz]")
19
versions = [x[0] for x in version_regex.findall(html_string) if x[0] not in EXCLUDE_VERSIONS]
20
else:
21
- version_regex = re.compile(r"-(\d+\.\d+\.\d+)\..+[\.whl|\.tar\.gz]")
+ version_regex = re.compile(r"-(\d+\.\d+\.\d+)[\.|-].+[\.whl|\.tar\.gz]")
22
versions = [x for x in version_regex.findall(html_string) if x not in EXCLUDE_VERSIONS]
23
24
unique_versions = list(dict.fromkeys(versions))
0 commit comments