You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My company organizes its python code in a monorepo, and the recent addition of relative paths in lockfiles (#6490) convinced me to switch to uv! I was wondering if it would also be possible to use relative paths in the pyproject.toml file when uv add-ing path dependencies? Here is the repo structure for reference:
I want to add libb as a dependency to projecta, so I run the following command: uv add ..\..\libs\libb --editable from projecta. This gives me the following [tool.uv.sources] section in projecta's pyproject.toml:
Since all of my team members have the monorepo checked out to different locations on their machine, I would like to have the dependency added as a relative path for consistency:
My company organizes its python code in a monorepo, and the recent addition of relative paths in lockfiles (#6490) convinced me to switch to uv! I was wondering if it would also be possible to use relative paths in the pyproject.toml file when
uv add
-ing path dependencies? Here is the repo structure for reference:I want to add
libb
as a dependency to projecta, so I run the following command:uv add ..\..\libs\libb --editable
from projecta. This gives me the following[tool.uv.sources]
section in projecta's pyproject.toml:Since all of my team members have the monorepo checked out to different locations on their machine, I would like to have the dependency added as a relative path for consistency:
Please let me know if you have any questions on this use case!
Relevant info:
The text was updated successfully, but these errors were encountered: