Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vagrantsetup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
devbox
vagrantsetup
Commits
4754954d
Commit
4754954d
authored
Sep 03, 2019
by
Reimar Stier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lookup latest conda version and checksum
parent
70b00ddb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
conda_version.py
lookup_plugins/conda_version.py
+6
-1
No files found.
lookup_plugins/conda_version.py
View file @
4754954d
...
...
@@ -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__'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment