rules_py icon indicating copy to clipboard operation
rules_py copied to clipboard

[Bug]: UV locks may contain no sdist

Open arrdem opened this issue 2 months ago • 0 comments

What happened?

It's legal to get the following lockfile state as a result of whl install urls used as requirements which can happen when users have manually created prebuilds. Also some libraries like pywin32 just don't ship sdists.

In this case the UV extension needs to just not generate the sdist build codepath.

Lack of this behavior breaks bazel build @<hub>//... with configuration errors and will also impact query.

[[package]]
name = "pywin32"
version = "311"
source = { registry = "https://pypi.org/simple" }
wheels = [
   # ...
]

Version

Development (host) and target OS/architectures:

Output of bazel --version:

Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file:

Language(s) and/or frameworks involved:

How to reproduce


Any other information?

No response

arrdem avatar Dec 15 '25 19:12 arrdem