You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
implementation_name filter doesn't work in environment #23270
Apparently implementation_name filter in tool.uv.environment is either doesn't work or it still allows filtered out wheels to be written to lockfile.
Steps to reproduce:
uv init --python 3.11 . (3.11 is important since it has pypy wheels).
uv add numpy
git add . && git commit -m "update"
In pyproject.toml add this to limit environments to 3 platforms and use cpython only.
[tool.uv]
environments = [
# macOS on Apple Silicon (ARM)"implementation_name == 'cpython' and sys_platform == 'darwin' and platform_machine == 'arm64'",
# Linux on x86_64 (Intel/AMD)"implementation_name == 'cpython' and sys_platform == 'linux' and platform_machine == 'x86_64'",
# Windows on x86_64 (Intel/AMD)"implementation_name == 'cpython' and sys_platform == 'win32' and platform_machine == 'AMD64'",
]
uv lock
git diff -- uv.lock
Expected: platform and implementation filters to work - intel macos and pypy wheels to get removed from lockfile.
Result: only intel macos wheels are filtered, pypy wheels stay (e.g. numpy-2.4.6-pp311-pypy311_pp73-macosx_11_0_arm64.whl).
Activity
ZYZ666-RGB commentedon Nov 18, 2026