We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b762b9 + 1099bc2 commit a7266b3Copy full SHA for a7266b3
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