Skip to content

feat(uv): Support [tool.uv] no-binary-package#831

Merged
arrdem merged 1 commit intomainfrom
arrdem/uv-no-binary-package
Mar 6, 2026
Merged

feat(uv): Support [tool.uv] no-binary-package#831
arrdem merged 1 commit intomainfrom
arrdem/uv-no-binary-package

Conversation

@arrdem
Copy link
Copy Markdown
Contributor

@arrdem arrdem commented Mar 6, 2026

Summary

  • Reads [tool.uv] no-binary-package from pyproject.toml to identify packages that must be built from source
  • For listed packages: forces sdist build (even for -none-any wheels), excludes all pre-built wheels from the install config
  • Adds a safety fail() if a no-binary package has no sdist in the lockfile

This mirrors uv's own no-binary-package behavior, enabling use cases like building C extensions with custom/debug interpreters.

Test plan

🤖 Generated with Claude Code

Read the `no-binary-package` list from pyproject.toml's `[tool.uv]`
section. For listed packages:
- Force sdist build even when a -none-any wheel exists
- Exclude all pre-built wheels from the install configuration
- Fail if no sdist is available in the lockfile

This mirrors uv's own `no-binary-package` behavior, enabling use cases
like building C extensions with custom interpreters (e.g. debug builds).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@arrdem arrdem merged commit 43aa5bd into main Mar 6, 2026
3 of 4 checks passed
@arrdem arrdem deleted the arrdem/uv-no-binary-package branch March 6, 2026 23:14
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.

3 participants