Skip to content

Allow users to pre-define dependency metadata #7393

@charliermarsh

Description

@charliermarsh

For packages that don't declare static metadata, it can be a pain to require building the package just to resolve. For example, you might have a dependency that can't be built on ARM, but doesn't declare static metadata. In that case, users can't resolve on ARM, even if the dependency is never installed on ARM (i.e., it has an environment marker).

I think it'd be neat to allow users to define static metadata for their dependencies as an escape hatch, like:

[tool.uv.dependencies]
my-dependency = ["click>0.8"]

Metadata

Metadata

Assignees

Labels

enhancementNew feature or improvement to existing functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions