-
Notifications
You must be signed in to change notification settings - Fork 1.5k
β¨ Allow patching third-party packages via new command uv patch <pkg_name>
#7454
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
Comments
You can patch third-party dependencies via [tool.uv.sources]
anyio = { path = "/path/to/anyio" } Assuming you make |
Hi Charlie, Glad to see you. Unfortunetly, this is not patch workflow. In our case with above solution everyone has to either go through steps you mentioned to start working on project or else we have to commit third-package along with source code with is really bad. Assume I want to do minor fix in some unmaintained library but we don't prefer forking and making a seperate package just for that minor change. So, in pnpm we run Checkout this pnpm video Usecases:
|
β¨ YES YES YES β¨ |
That is exactly what I am looking for to allow using fake-bpy-module with custom properties for Blender add-on development. |
Here's some prior art in the npm ecosystem: https://www.npmjs.com/package/patch-package that package has saved my ass too many times. Also allowed us to enforce better type safety by patching unsafe types directly in the source ! |
Hi @charliermarsh We should update the label now from question to something else |
would really appreciate ability to patch 3rd party packages as well, ideally via configuring in |
I feared there was no way to patch packages with uv becuase I can say for sure I've seen every corner of the documentation and I don't remember ever seeing any such thing as "patch package"; now I run to the internet to find out if I can patch a package and my fear wins. |
Hi ππ»
When working on node based project there's pnpm package manager that allows patching third-party packages installed in node_modules if we want to fix something for all the contributors of the project.
pnpm allows this via patch
I came across similar situation where I want to patch the package "fastapi-users" until I get response on my PR/discussion. I noticed UV don't have such feature.
Thanks for the UV it's superfast π
The text was updated successfully, but these errors were encountered: