Skip to content

feat(wheel_tags): add helpers for cross-version CPython wheel tags - #1483

Draft
tiran wants to merge 1 commit into
python-wheel-build:mainfrom
tiran:wheel-tags-helpers
Draft

tiran wants to merge 1 commit into
python-wheel-build:mainfrom
tiran:wheel-tags-helpers

Conversation

@tiran

@tiran tiran commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Pull Request Description

What

Add wheel_tags module with utilities for generating and working with CPython wheel tags for arbitrary Python versions and ABIs, including free-threaded builds:

  • cpython_target_tags(): yields compatible wheel tags like sys_tags() but for any target CPython version and ABI
  • parse_cpython_tag(): parses "cp314t" into version and threading flag for use with cpython_target_tags
  • current_cpython_tag(): returns the tag string for the running interpreter
  • find_cpython_binary(): locates the matching python binary on PATH for a given tag

Why

Related to #1480

…eration

Add `wheel_tags` module with utilities for generating and working
with CPython wheel tags for arbitrary Python versions and ABIs,
including free-threaded builds:

- `cpython_target_tags()`: yields compatible wheel tags like
  `sys_tags()` but for any target CPython version and ABI
- `parse_cpython_tag()`: parses `"cp314t"` into version and
  threading flag for use with `cpython_target_tags`
- `current_cpython_tag()`: returns the tag string for the running
  interpreter
- `find_cpython_binary()`: locates the matching `python` binary on
  PATH for a given tag

Co-Authored-By: Claude <claude@anthropic.com>
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@mergify mergify Bot added the ci label Nov 20, 2026

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant