Skip to content

How to use pinned metadata during uv build? #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
b4ird opened this issue Mar 13, 2025 · 2 comments
Closed

How to use pinned metadata during uv build? #10

b4ird opened this issue Mar 13, 2025 · 2 comments

Comments

@b4ird
Copy link

b4ird commented Mar 13, 2025

I'm trying to use this plugin to work round the issue described in this thread. I've added the following to my pyproject.toml:

[build-system]
requires = [
    "hatchling",
    "hatch-pinned-extra",
]
build-backend = "hatchling.build"

[tool.hatch.metadata.hooks.pinned_extra]
name = "pinned"

How do I tell uv to use this metadata when building my wheel? I've run uv build as is and looking at the whl it doesn't look like the deps are pinned.

Cheers!

@edgarrmondragon
Copy link
Owner

I've run uv build as is and looking at the whl it doesn't look like the deps are pinned.

Hi @b4ird! Where are you checking for pinned dependencies? The generated METADATA file in the wheel should have pinned dependencies for a pinned extra.

@b4ird
Copy link
Author

b4ird commented Apr 16, 2025

Hey @edgarrmondragon apologies for the delay. It ended up being me not adding the dynamic optional deps config. Thanks!

@b4ird b4ird closed this as completed Apr 16, 2025
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

No branches or pull requests

2 participants