pyenv.pyenv/plugins/python-build/scripts
anupamme 4e2d2cdabd refactor: extract _fetch helper for requests calls in add_cpython.py
Replaces the two repeated requests.get(url, timeout=30) call sites with a
small _fetch() helper that centralises timeout and raise_for_status() logic.
Also adds raise_for_status() to the shasum download call which previously
had none, so HTTP errors surface clearly rather than failing downstream.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-04 15:08:08 +05:30
..
.gitignore CI: automatically check for CPython releases (#3388) 2026-01-09 09:52:09 +03:00
add_cpython.py refactor: extract _fetch helper for requests calls in add_cpython.py 2026-08-04 15:08:08 +05:30
add_miniconda.py Fix verify_py prefix in anaconda3-2025.06 2026-01-08 11:20:20 +03:00
add_miniforge.py miniconda 26, CI: switch check to 3.13 (#3447) 2026-05-12 01:32:56 +03:00
README.md Miniconda script review comments 2020-03-09 10:47:26 +00:00
requirements.txt CI: add_version enhancements (#3480) 2026-06-25 09:48:57 +03: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