-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Development Dependency Overrides #9258
Comments
I believe this is possible today with: [tool.uv]
override-dependencies = ["dependency @ file:///path/to/dependency"] |
I think you can also run code with the |
This is awesome. Will try this out and report back. Thanks for all of the help. |
This does not work:
And results in the following error:
But an absolute path does work. Am I missing some obvious configuration option here? Also, it looks like the package is not installed as editable. What's the best way to do that? It looks like this syntax should work, but it doesn't: |
Hi! I will let the experts say why it didn't work because I don't know. Relative paths with [tool.uv]
override-dependencies = ["activemodel @ file:///${PROJECT_ROOT}/pypi/activemodel"] As for the editable install, there is no current way for specifying editable installs in an Here's how you can use your local package as editable:
Sources in As for why I hope someone more knowledgeable can read this and correct it if I'm wrong. |
There's discussion about this same problem over in #8148 (comment) that may provide some more context. |
Oh thanks! I'll read through the thread! |
This works for local development, but doesn't solve my problem:
Ruby does this with:
Which does not involve mutating your Gemfile but enables you to easily debug a package with a local development override. |
We want to build a dedicated "patch" workflow, but we haven't designed that yet. Does using |
You can run with |
I wasn't aware of |
Can you specify either of these options with an ENV var? I'm using nixpacks to build my containers and I'd rather not have to customize the install scripts and instead specify ENV configuration which uv can pick up. |
@zanieb is there an issue tracking this, or is it too early? |
It's sort of tracked in #7454 I'm doing some roadmap work and will post here / there if I create a dedicated issue. |
I've been iterating on a script which is working well for me: https://github.com/iloveitaly/uv-development-toggle |
I'd like to keep as much as possible compatible with [dependency-groups]
dev = [
"ts_utils @ file:lib", # pip compatible
]
[tool.uv]
override-dependencies = [
"ts_utils @ file:${PROJECT_ROOT}/lib", # uv won't accept relative paths
]
|
One of the things I've always missed from ruby is development dependency overrides. Here's the situation:
pyproject.toml
Ruby allows you to do this with:
It would be great if uv provided similar sort of functionality.
The text was updated successfully, but these errors were encountered: