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
Hello! Thanks for the awesome work on uv. The amount of things you're getting right and the speed of your development team is inspiring!
Say I have a package foo and another package bar that I'm both developing.
bar depends on foo.
In my dev environment, I'll have a local version of both foo and bar that I'm working on.
./devel/foo
./devel/bar
Each package has its own pyproject.toml. foo itself has some optional dependencies and I want bar to depend on foo without the optional dependencies, because foo is exposing some specific set of features to bar and has its own other functionalities that depend on heavy Python libraries that I definitely don't want to have as dependencies of bar.
While I'm working on bar, I want to have the foo dependency in editable mode.
But when I'm packaging bar, I want it to fetch the foo dependency from a git repositry.
In other words, I would like the dependency in the dev dependency group to be
[tool.uv.sources]
foo = { path = "../foo" }
And in the packaging environment (in the normal dependencies part of the pyproject.toml) to be
@zanieb very much looks like so, thanks for pointing it out: it did not came up in my searches on the issue tracker. closing this in favor of the existing issue
Hello! Thanks for the awesome work on uv. The amount of things you're getting right and the speed of your development team is inspiring!
Say I have a package
foo
and another packagebar
that I'm both developing.bar
depends onfoo
.In my dev environment, I'll have a local version of both
foo
andbar
that I'm working on.Each package has its own
pyproject.toml
.foo
itself has some optional dependencies and I wantbar
to depend onfoo
without the optional dependencies, becausefoo
is exposing some specific set of features tobar
and has its own other functionalities that depend on heavy Python libraries that I definitely don't want to have as dependencies ofbar
.While I'm working on
bar
, I want to have thefoo
dependency in editable mode.But when I'm packaging
bar
, I want it to fetch thefoo
dependency from a git repositry.In other words, I would like the dependency in the
dev
dependency group to beAnd in the packaging environment (in the normal
dependencies
part of thepyproject.toml
) to beRight now, if I add
foo
as a dependency in either, it's gonna overwrite the other version.What's the right way to manage this situation with uv?
The text was updated successfully, but these errors were encountered: