pyenv/plugins/python-build/scripts
Alex Hedges 8316450887 Fix KeyError when running add_miniforge.py
I was attempting to run the script to generate build files for new
versions, but it failed because version `23.1.0-4`[^1] contained a
malformed `.sha256` file.[^2] I looked at the miniforge repo's script
`releases.py`[^3] and copied the logic about which release artifacts
should be skipped when generating a list of downloads.

[^1]: https://github.com/conda-forge/miniforge/releases/tag/23.1.0-4
[^2]: https://github.com/conda-forge/miniforge/releases/download/23.1.0-4/Miniforge3-uninstaller-patch-Windows-x86_64.exe.sha256
[^3]: a15762906b/docs/releases.py (L35-L36)
2024-02-26 18:39:48 -05:00
..
add_miniconda.py Determine Python versions properly for Anaconda 2023-10-21 19:05:48 -04:00
add_miniforge.py Fix KeyError when running add_miniforge.py 2024-02-26 18:39:48 -05:00
README.md Miniconda script review comments 2020-03-09 10:47:26 +00:00
requirements.txt Script for new miniconda builds 2020-03-05 06:09:53 -05:00

Scripts for updating python-build

Install dependencies with pip install -r requirements.txt.

add_miniconda.py

usage: add_miniconda.py [-h] [-d] [-v]

Script to add non-"latest" miniconda releases. Written for python 3.7. Checks
the miniconda download archives for new versions, then writes a build script
for any which do not exist locally, saving it to plugins/python-
build/share/python-build. Ignores releases below 4.3.30. Also ignores sub-
patch releases if that major.minor.patch already exists, but otherwise, takes
the latest sub-patch release for given OS/arch. Assumes all miniconda3
releases < 4.7 default to python 3.6, and anything else 3.7.

optional arguments:
  -h, --help     show this help message and exit
  -d, --dry-run  Do not write scripts, just report them to stdout
  -v, --verbose  Increase verbosity of logging