Skip to content

Always ensure wheels are compatible with the required Python versions#15932

Draft
zanieb wants to merge 1 commit intomainfrom
zb/python-markers-implied
Draft

Always ensure wheels are compatible with the required Python versions#15932
zanieb wants to merge 1 commit intomainfrom
zb/python-markers-implied

Conversation

@zanieb
Copy link
Member

@zanieb zanieb commented Sep 18, 2025

Following up on #14836 and #14913

❯ uv init example -p 3.8 && cd example
❯ uv add torch --exclude-newer 2025-05-01
Using CPython 3.8.20
Creating virtual environment at: .venv
Resolved 46 packages in 659ms
error: Distribution `torch==2.5.1 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform

hint: You're using CPython 3.8 (`cp38`), but `torch` (v2.5.1) only has wheels with the following Python implementation tags: `cp39`, `cp310`, `cp311`, `cp312`, `cp313`
❯ cargo run -q -- add torch --exclude-newer 2025-05-01
Resolved 45 packages in 69ms
Installed 9 packages in 247ms
 + filelock==3.16.1
 + fsspec==2025.3.0
 + jinja2==3.1.6
 + markupsafe==2.1.5
 + mpmath==1.3.0
 + networkx==3.1
 + sympy==1.13.3
 + torch==2.4.1
 + typing-extensions==4.13.2

@zanieb zanieb added the bug Something isn't working label Sep 18, 2025
@zanieb zanieb temporarily deployed to uv-test-registries September 18, 2025 14:06 — with GitHub Actions Inactive
@zanieb zanieb force-pushed the zb/python-markers-implied branch from 324dc84 to 730bad4 Compare September 18, 2025 14:09
@zanieb
Copy link
Member Author

zanieb commented Sep 18, 2025

This is a fairly naive split of the previous implementaiton.

This includes forking on Python implementation markers — we might want to just do Python versions?

@zanieb zanieb temporarily deployed to uv-test-registries September 18, 2025 14:12 — with GitHub Actions Inactive
@zanieb
Copy link
Member Author

zanieb commented Sep 18, 2025

Interesting! I broke some integration tests

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments