Commit 4754954d authored by Reimar Stier's avatar Reimar Stier

Lookup latest conda version and checksum

parent 70b00ddb
......@@ -11,7 +11,7 @@ URL_ANACONDA = "https://repo.anaconda.com/archive/"
URL_MINICONDA = "https://repo.continuum.io/miniconda/"
PATTERN_PYTHON = re.compile(
r"Miniconda(?P<python>\d+)-(?P<version>[0-9]+.[0-9]+.[0-9]+|latest)-(?P<os>\w+)-(?P<arch>\w+).\w+")
RELEASE_MAX_AGE_DAYS = 180
RELEASE_MAX_AGE_DAYS = 365
def main():
......@@ -47,7 +47,12 @@ def main():
latest_item = [item for item in data if item["version"] == "latest"]
latest_version = [item for item in data if item["MD5"] == latest_item[0]["MD5"]]
pprint(data)
download_url = "{base}{filename}".format(base=URL_MINICONDA, filename=latest_version[0]["Filename"])
checksum_md5 = latest_version[0]["MD5"]
print(latest_version[0]["version"])
print(download_url)
print(checksum_md5)
if __name__ == '__main__':
......
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