Skip to content

Stop publishing wheels older Python versions and specific architectures/platforms#306

Open
jo-sm wants to merge 2 commits into
developfrom
minimize-published-wheels
Open

Stop publishing wheels older Python versions and specific architectures/platforms#306
jo-sm wants to merge 2 commits into
developfrom
minimize-published-wheels

Conversation

@jo-sm

@jo-sm jo-sm commented Jun 19, 2026

Copy link
Copy Markdown
Member

This PR updates the build workflow to stop publishing wheels for the following:

  • Python 3.10
  • Python 3.11
  • Windows arm64
  • Linux i686

Summary by CodeRabbit

  • Chores
    • Updated binary build configuration to support Python 3.12, 3.13, and 3.14 across all platforms.
    • Removed 32-bit Linux builds; 64-bit architectures (x86_64, aarch64) remain supported.

@jo-sm jo-sm changed the base branch from main to develop June 19, 2026 13:21
@tower tower deleted a comment from github-actions Bot Jun 19, 2026
@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5278c165-f0f3-4e7b-abbb-20a90bfa6f4e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The build-binaries.yml workflow narrows its Python version matrix to 3.12, 3.13, and 3.14 across all platform jobs (macOS x86_64, macOS aarch64, Windows, Linux glibc, Linux-cross, musllinux, and musllinux-cross). The i686-unknown-linux-gnu and i686-unknown-linux-musl targets are removed from the Linux and musllinux job matrices, along with the associated i686-specific libatomic symlink setup logic.

Changes

Build Matrix Narrowing

Layer / File(s) Summary
macOS and Windows Python version matrix updates
.github/workflows/build-binaries.yml
Python version lists for macOS x86_64, macOS aarch64, and Windows build matrices are restricted to 3.12, 3.13, and 3.14, dropping 3.11 (and 3.10 on Windows).
Linux glibc target and interpreter updates
.github/workflows/build-binaries.yml
Linux job matrix drops i686-unknown-linux-gnu, retaining only x86_64-unknown-linux-gnu; wheel build interpreter list updated to python3.12 python3.13 python3.14; i686-specific libatomic symlink logic removed from before-script-linux; Linux-cross aarch64 interpreter list narrowed to the same three versions.
musllinux target and interpreter updates
.github/workflows/build-binaries.yml
musllinux matrix removes i686-unknown-linux-musl; musllinux and musllinux-cross aarch64 wheel builds updated to use python3.12, python3.13, and python3.14 only.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Hop, hop, hooray, we trim the old away,
No more i686 slowing down the day!
Python ten and eleven, we bid you adieu,
Twelve, thirteen, fourteen — a fresh morning dew.
The build matrix shrinks, the pipeline runs bright,
A leaner CI 🌟 dancing into the night!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: stopping publication of wheels for older Python versions and specific unsupported architectures/platforms.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch minimize-published-wheels

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/build-binaries.yml:
- Line 70: There is a mismatch between the Python versions declared as supported
in pyproject.toml (requires-python = ">=3.10" with classifiers for 3.10, 3.11,
3.12, 3.13, 3.14) and the versions actually being built and tested in the CI
workflows. The build-binaries.yml python-version matrix only includes 3.12,
3.13, and 3.14 (at lines 70, 115, 168 and maturin invocations at lines 216, 265,
316, 355), and test-python.yml only uses 3.12. Either update pyproject.toml to
change requires-python to ">=3.12" and remove the 3.10/3.11 classifiers if
support for those versions is intentionally dropped, or add Python 3.10 and 3.11
to the python-version matrix in build-binaries.yml and test-python.yml workflows
and update the .python-version file to match the minimum supported version if
those versions should remain supported.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 045e0899-0503-49c3-9560-6b54e0fb47e0

📥 Commits

Reviewing files that changed from the base of the PR and between 83cbf20 and 3f33716.

📒 Files selected for processing (1)
  • .github/workflows/build-binaries.yml

# Python 3.9/3.10 macOS builds require libintl from Homebrew gettext,
# which is not available on macos-15 runners
python-version: ["3.11", "3.12", "3.13", "3.14"]
python-version: ["3.12", "3.13", "3.14"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify whether Python 3.10/3.11 are still covered anywhere in CI and metadata.
set -euo pipefail

echo "== Declared Python support in pyproject =="
fd -a pyproject.toml | xargs -I{} sh -c 'echo "--- {} ---"; sed -n "1,140p" "{}" | rg -n "requires-python|Programming Language :: Python :: 3\.(10|11|12|13|14)"'

echo
echo "== Workflow coverage for 3.10/3.11 =="
fd -a --glob ".github/workflows/*.yml" --glob ".github/workflows/*.yaml" | while read -r f; do
  echo "--- $f ---"
  rg -n "3\.10|3\.11|python-version|maturin|tox|nox|cibuildwheel" "$f" || true
done

Repository: tower/tower-cli

Length of output: 1064


🏁 Script executed:

# Find and inspect the workflow file
find .github/workflows -name "*.yml" -o -name "*.yaml" | head -20

Repository: tower/tower-cli

Length of output: 514


🏁 Script executed:

# Read the build-binaries.yml workflow file to confirm the matrix versions
cat -n .github/workflows/build-binaries.yml | sed -n '65,75p; 110,120p; 163,173p; 211,221p; 260,270p; 311,321p; 350,360p'

Repository: tower/tower-cli

Length of output: 3400


🏁 Script executed:

# Search for any other workflow files that may test Python 3.10/3.11
rg -l "python.*3\.10|python.*3\.11" .github/workflows/

Repository: tower/tower-cli

Length of output: 41


🏁 Script executed:

# Check for tox, nox, or other test configuration files
find . -maxdepth 2 -type f \( -name "tox.ini" -o -name "noxfile.py" -o -name ".python-version" -o -name "setup.py" -o -name "setup.cfg" \) | head -20

Repository: tower/tower-cli

Length of output: 77


🏁 Script executed:

cat -n .github/workflows/test-python.yml | head -100

Repository: tower/tower-cli

Length of output: 1501


🏁 Script executed:

cat .python-version

Repository: tower/tower-cli

Length of output: 64


Declared Python support in packaging metadata does not match CI/build matrix.

pyproject.toml declares requires-python = ">=3.10" with classifiers for Python 3.10, 3.11, 3.12, 3.13, and 3.14. However, build-binaries.yml (lines 70, 115, 168) and all maturin invocations (lines 216, 265, 316, 355) only build and test wheels for 3.12–3.14. Additionally, .python-version is pinned to 3.12, and test-python.yml uses only that version. This means no Python 3.10/3.11 testing or wheel building occurs anywhere in CI.

Either update pyproject.toml to reflect requires-python = ">=3.12" (and remove 3.10/3.11 classifiers) if support is intentionally dropped, or add 3.10/3.11 to the test matrix in both build-binaries.yml and test-python.yml if those versions remain supported.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/build-binaries.yml at line 70, There is a mismatch between
the Python versions declared as supported in pyproject.toml (requires-python =
">=3.10" with classifiers for 3.10, 3.11, 3.12, 3.13, 3.14) and the versions
actually being built and tested in the CI workflows. The build-binaries.yml
python-version matrix only includes 3.12, 3.13, and 3.14 (at lines 70, 115, 168
and maturin invocations at lines 216, 265, 316, 355), and test-python.yml only
uses 3.12. Either update pyproject.toml to change requires-python to ">=3.12"
and remove the 3.10/3.11 classifiers if support for those versions is
intentionally dropped, or add Python 3.10 and 3.11 to the python-version matrix
in build-binaries.yml and test-python.yml workflows and update the
.python-version file to match the minimum supported version if those versions
should remain supported.

@jo-sm jo-sm force-pushed the minimize-published-wheels branch 2 times, most recently from 2f52efb to 57f4159 Compare June 19, 2026 14:05
Stop publishing wheels for Windows arm64 and Linux i686
@jo-sm jo-sm force-pushed the minimize-published-wheels branch 6 times, most recently from e04c741 to 7398711 Compare June 19, 2026 15:13
Update pyproject.toml and uv.lock
@jo-sm jo-sm force-pushed the minimize-published-wheels branch from 7398711 to 1d864d9 Compare June 19, 2026 15:24
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.

2 participants