-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
I have a workspace with:
- a package at top level
- a sub-package under
./testing
When building is run at top level:
uv build
builds the top-level package, output in./dist
, akarepo/dist
uv build testing
builds the sub-package, output in./dist
, akarepo/dist
uv build testing/
builds the sub-package, output in./testing/dist
, akarepo/testing/dist
The difference between the last two is kinda weird.
Likewise, when building in the subdirectory:
uv build
builds the sub-package, output in../dist
, akarepo/dist
uv build .
builds the sub-package, output in../dist
, akarepo/dist
uv build ./
builds the sub-package, output in./dist
, akarepo/testing/dist
Could it be that uv
treats an arg
as a name and arg/
as a location?
(note that in my case, the subdirectory name doesn't match the package name, so that's probably not the case).
For the subdirectory case, I'm not even sure what the correct behaviour should be.
../dist
suggests that uv groks that this is a workspace... or maybe it's a bug?
./dist
is backwards-compatible... though one may argue that it's against workspace ethos?
Finally:
uv build --all
at top-level builds all packages with output in./dist
akarepo/dist
Platform
macos
Version
uv 0.7.12 (Homebrew 2025-06-06)
Python version
any
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working