Skip to content

feat: add extra_dependencies package annotation - #295

Merged
jvolkman merged 3 commits into
jvolkman:mainfrom
eloisekp:eloise-runtime-deps
Jul 23, 2026
Merged

feat: add extra_dependencies package annotation#295
jvolkman merged 3 commits into
jvolkman:mainfrom
eloisekp:eloise-runtime-deps

Conversation

@eloisekp

@eloisekp eloisekp commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

The additive counterpart to ignore_dependencies: injects extra runtime deps
into a resolved package for when published metadata under-declares them.
Added with an empty marker so it applies to all environments, and pulled into
the resolved closure even if nothing else requires it.

Example

# some-pkg needs another-pkg at runtime but doesn't declare it
uv.package(
    name = "some-pkg",
    extra_dependencies = ["[email protected]"],
    workspace = "pypi",
)

@jvolkman

Copy link
Copy Markdown
Owner

Thanks! I'll try to figure out the pull request check issues.

@jvolkman
jvolkman merged commit e503655 into jvolkman:main Jul 23, 2026
4 of 7 checks passed
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.

2 participants