-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Should my team's project structure work as a uv workspace? #11344
Comments
Your root pyproject.toml doesn't belong to a package, so In your example, are you looking for the dev group instead of the dev extra?
You can do that with |
When running `uv pip install .` in a directory with a pyproject.toml that does not configure a build, we currently invoke setuptools and get a wheel we can't parse (#11344). Instead, we reject such builds altogether and require that there is at least a metadata source if no build backend has been defined. As a special case, we hint when the build failed on a workspace root, which easily happens when running `uv pip install .` in a workspace root, assuming it would be a `uv sync --all-packages`.
Thanks @konstin! I'm pretty sure I want the dev group, since I want development dependencies there. According to the documentation:
Those are global to the workspace, where would you put those instead of that workspace-level pyproject.toml (which cannot be installed)? Also, about that
As you can see, no editable (or otherwise) installations |
Placing dependency groups in the root is also what I'd recommend here. Dependency groups are subtly different from the other dependency kinds, as you can have
That's somewhat unintuitive: The packages aren't synced since they don't declare a
(You can of course use any build backend, not just hatchling) |
Question
My team uses a certain project structure:
Currently, we have a PowerShell installation script that installs all those packages in editable mode, and that's the way we work.
I created an example of the same structure, and added my attempt at converting it into a uv workspace.
I encountered two problems:
uv pip install .[dev]
fails with "Failed to parse metadata from built wheel".Any help would be much appreciated. uv is awesome and incredibly fast, and I would love to use it!
Platform
Windows 11 x86_64
Version
uv 0.5.29 (ca73c47 2025-02-05)
The text was updated successfully, but these errors were encountered: