Skip to content

feat: rc support#231

Open
flying-sheep wants to merge 3 commits into
ofek:masterfrom
flying-sheep:pa/rcs
Open

feat: rc support#231
flying-sheep wants to merge 3 commits into
ofek:masterfrom
flying-sheep:pa/rcs

Conversation

@flying-sheep

@flying-sheep flying-sheep commented Jun 11, 2026

Copy link
Copy Markdown

Doesn’t in any way discriminate the RCs, they just pop up in the list.

Testing by changing != 'rc' to not in {'rc', 'b'}, I noticed that only for 3.15, betas popped up. Do they delete beta assets from old releases?

Fixes #232

@ofek ofek left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Let's try running it to see the generated output.

Comment thread scripts/update_distributions.py Outdated
@flying-sheep

flying-sheep commented Jun 12, 2026

Copy link
Copy Markdown
Author

Thanks! Let's try running it to see the generated output.

The generated output is exactly the same as running it without my change, as there are currently no rcs active.

I ran it with betas and rcs though to demonstrate, which

  1. updated all URLs to refer to the newest release (20260610), and

  2. added all 3.15 betas as expected:

    Details
    ("3.15", "linux", "aarch64", "gnu", "", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz"),
    ("3.15", "linux", "aarch64", "gnu", "", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-aarch64-unknown-linux-gnu-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "aarch64", "musl", "", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-aarch64-unknown-linux-musl-install_only_stripped.tar.gz"),
    ("3.15", "linux", "aarch64", "musl", "", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-aarch64-unknown-linux-musl-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "armv7", "gnueabi", "", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-armv7-unknown-linux-gnueabi-install_only_stripped.tar.gz"),
    ("3.15", "linux", "armv7", "gnueabi", "", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-armv7-unknown-linux-gnueabi-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "armv7", "gnueabihf", "", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-armv7-unknown-linux-gnueabihf-install_only_stripped.tar.gz"),
    ("3.15", "linux", "armv7", "gnueabihf", "", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-armv7-unknown-linux-gnueabihf-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "powerpc64", "gnu", "", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-ppc64le-unknown-linux-gnu-install_only_stripped.tar.gz"),
    ("3.15", "linux", "powerpc64", "gnu", "", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-ppc64le-unknown-linux-gnu-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "riscv64", "gnu", "", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-riscv64-unknown-linux-gnu-install_only_stripped.tar.gz"),
    ("3.15", "linux", "riscv64", "gnu", "", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-riscv64-unknown-linux-gnu-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "s390x", "gnu", "", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-s390x-unknown-linux-gnu-install_only_stripped.tar.gz"),
    ("3.15", "linux", "s390x", "gnu", "", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-s390x-unknown-linux-gnu-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "gnu", "v1", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "gnu", "v1", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64-unknown-linux-gnu-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "gnu", "v2", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64_v2-unknown-linux-gnu-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "gnu", "v2", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64_v2-unknown-linux-gnu-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "gnu", "v3", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64_v3-unknown-linux-gnu-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "gnu", "v3", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64_v3-unknown-linux-gnu-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "gnu", "v4", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64_v4-unknown-linux-gnu-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "gnu", "v4", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64_v4-unknown-linux-gnu-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "musl", "v1", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64-unknown-linux-musl-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "musl", "v1", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64-unknown-linux-musl-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "musl", "v2", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64_v2-unknown-linux-musl-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "musl", "v2", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64_v2-unknown-linux-musl-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "musl", "v3", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64_v3-unknown-linux-musl-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "musl", "v3", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64_v3-unknown-linux-musl-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "musl", "v4", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64_v4-unknown-linux-musl-install_only_stripped.tar.gz"),
    ("3.15", "linux", "x86_64", "musl", "v4", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64_v4-unknown-linux-musl-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "windows", "aarch64", "msvc", "", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-aarch64-pc-windows-msvc-install_only_stripped.tar.gz"),
    ("3.15", "windows", "aarch64", "msvc", "", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-aarch64-pc-windows-msvc-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "windows", "x86", "msvc", "", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-i686-pc-windows-msvc-install_only_stripped.tar.gz"),
    ("3.15", "windows", "x86", "msvc", "", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-i686-pc-windows-msvc-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "windows", "x86_64", "msvc", "", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64-pc-windows-msvc-install_only_stripped.tar.gz"),
    ("3.15", "windows", "x86_64", "msvc", "", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64-pc-windows-msvc-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "macos", "aarch64", "", "", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-aarch64-apple-darwin-install_only_stripped.tar.gz"),
    ("3.15", "macos", "aarch64", "", "", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-aarch64-apple-darwin-freethreaded-install_only_stripped.tar.gz"),
    ("3.15", "macos", "x86_64", "", "", "",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64-apple-darwin-install_only_stripped.tar.gz"),
    ("3.15", "macos", "x86_64", "", "", "freethreaded",
        "https://github.com/astral-sh/python-build-standalone/releases/download/20260610/cpython-3.15.0b2%2B20260610-x86_64-apple-darwin-freethreaded-install_only_stripped.tar.gz"),
    

@ofek

ofek commented Jun 12, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b1b6aa21a9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

response = httpx.get(RELEASES_URL, headers=headers, timeout=60, params={'page': page, 'per_page': 5})
progress = Progress()
task = progress.add_task("Updating distributions...")
progress.start()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Stop the manually started progress display

Starting Progress manually without a matching stop() leaves Rich's live display active when the generator finishes or raises, so running this script in an interactive terminal can leave the cursor hidden and terminal rendering state unrestored. Wrap the pagination loop in a with Progress() as progress: block or stop it in a finally clause.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RC support

2 participants