-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a script to add the latest miniforge and mambaforge versions #2560
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good! This brings us one step further to automating adding new versions (one of the most requested features)!
This takes inspiration from the similar script for miniconda, but it simplifies in a couple of ways: 1. Use the GitHub Releases API instead of scraping HTML. 2. Don't perform a diff, simply add the latest release. Lots of intermediate miniconda releases have been skipped in the past, and it doesn't seem particularly valuable to backfill those.
c7364ef
to
c7f2c4d
Compare
@native-api sorry for the delay, I've updated this now to fill in all of the last 20 releases (if missing). Local output$ python add_miniforge.py
INFO:__main__:Looking for 22.9.0-3 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Looking for 22.9.0-2 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Looking for 22.9.0-1 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Looking for 22.9.0-0 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Looking for 4.14.0-2 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Looking for 4.14.0-1 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Looking for 4.14.0-0 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Looking for 4.13.0-1 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Looking for 4.13.0-0 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Looking for 4.12.0-3 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.12.0-3
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.12.0-3
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.12.0-3
INFO:__main__:Looking for 4.12.0-1 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.12.0-1
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.12.0-1
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.12.0-1
INFO:__main__:Looking for 4.12.0-2 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.12.0-2
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.12.0-2
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.12.0-2
INFO:__main__:Looking for 4.12.0-0 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.12.0-0
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.12.0-0
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.12.0-0
INFO:__main__:Looking for 4.11.0-4 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.11.0-4
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.11.0-4
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.11.0-4
INFO:__main__:Looking for 4.11.0-3 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.11.0-3
INFO:__main__:Writing 2 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.11.0-3
INFO:__main__:Writing 2 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.11.0-3
INFO:__main__:Looking for 4.11.0-2 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.11.0-2
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.11.0-2
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.11.0-2
INFO:__main__:Looking for 4.11.0-1 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.11.0-1
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.11.0-1
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.11.0-1
INFO:__main__:Looking for 4.11.0-0 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.11.0-0
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.11.0-0
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.11.0-0
INFO:__main__:Looking for 4.10.3-10 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Looking for 4.10.3-9 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.10.3-9
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.10.3-9
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.10.3-9
INFO:__main__:Looking for 4.10.3-8 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.10.3-8
INFO:__main__:Writing 2 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.10.3-8
INFO:__main__:Writing 2 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.10.3-8
INFO:__main__:Looking for 4.10.3-7 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.10.3-7
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.10.3-7
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.10.3-7
INFO:__main__:Looking for 4.10.3-6 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.10.3-6
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.10.3-6
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.10.3-6
INFO:__main__:Looking for 4.10.3-5 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.10.3-5
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.10.3-5
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.10.3-5
INFO:__main__:Looking for 4.10.3-4 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.10.3-4
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.10.3-4
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.10.3-4
INFO:__main__:Looking for 4.10.3-3 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.10.3-3
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.10.3-3
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.10.3-3
INFO:__main__:Looking for 4.10.3-2 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.10.3-2
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.10.3-2
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.10.3-2
INFO:__main__:Looking for 4.10.3-1 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.10.3-1
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.10.3-1
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.10.3-1
INFO:__main__:Looking for 4.10.3-0 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.10.3-0
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.10.3-0
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.10.3-0
INFO:__main__:Looking for 4.10.2-0 in /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build
INFO:__main__:Downloading 4.10.2-0
INFO:__main__:Writing 5 specs for miniforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/miniforge3-4.10.2-0
INFO:__main__:Writing 5 specs for mambaforge to /home/smcgivern/forks/pyenv/plugins/python-build/share/python-build/mambaforge-4.10.2-0 That is, I add these files:
Do you want me to create a separate PR for those? |
@smcgivern hi, did you test every new version you added? |
@smcgivern Yes, I think you can add all of these files in one new PR. |
@anton-petrov yep, I put the details in the PR that adds those versions. This is a very basic test 😃 |
Used in #2559.
This takes inspiration from the similar script for miniconda, but it simplifies by using the GitHub Releases API instead of scraping HTML.
It only backfills releases from the first page of the GitHub API results, which I think is reasonable.
Make sure you have checked all steps below.
Prerequisite
Description
Tests