Commit fbc2d68a authored by Reimar Stier's avatar Reimar Stier

conda releases role - update version pattern for miniconda to include fourth digit

parent 7432dfb9
......@@ -16,9 +16,9 @@ BASE_URL = {
}
PATTERN_FILENAME = {
MINICONDA: re.compile(
r"Miniconda(?P<python>\d+)-(?P<version>[0-9]+.[0-9]+.[0-9]+|latest)-(?P<os>\w+)-(?P<arch>\w+).\w+"),
r"Miniconda(?P<python>\d+)-(?P<version>[0-9]+.[0-9]+.[0-9]+(.[0-9]+)?|latest)-(?P<os>\w+)-(?P<arch>\w+).\w+"),
ANACONDA: re.compile(
r"Anaconda(?P<python>\d+)-(?P<version>[0-9]+.[0-9]+|latest)-(?P<os>\w+)-(?P<arch>\w+).\w+"),
r"Anaconda(?P<python>\d+)-(?P<version>[0-9]+.[0-9]+(.[0-9]+)?|latest)-(?P<os>\w+)-(?P<arch>\w+).\w+"),
}
RELEASE_MAX_AGE_DAYS = 365
......@@ -96,5 +96,5 @@ class LookupModule(LookupBase):
if __name__ == '__main__':
print(json.dumps(fetch_releases(distribution=MINICONDA, python_version="3"), indent=4))
print(json.dumps(fetch_releases(distribution=ANACONDA, python_version="2"), indent=4))
print(json.dumps({"Miniconda for python 3": fetch_releases(distribution=MINICONDA, python_version="3")}, indent=4))
print(json.dumps({"Anaconda for python 2": fetch_releases(distribution=ANACONDA, python_version="2")}, indent=4))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment