Skip to content

[Bug]: UV locks may contain no sdist #754

@arrdem

Description

@arrdem

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions