-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Enable package overrides for 'tool install' #9517
Comments
Hmm yeah, we probably need to accept |
Great. 'uv pip install" appears to work with project metadata, i.e. if I build with
in the 'pyproject.toml' file, I don't seem to need to specify overrides at install time. That would be the ideal solution. |
|
ah. i thought the project metadata (including the override-dependencies) might be getting baked into the package at build time, and available to 'uv' at install time. i guess that's not what's happening here? I'm not very familiar with python packaging so I'm ignorant of the details. That would seem to indicate that there would be no way to do |
Ah yeah, that metadata isn't available at |
I'm confused though, how / why does your package work if it has this problem? Why does |
I'm afraid I don't know enough about python installation to answer that question. I don't get any warnings from pipx install, and the package functionality works fine. |
My guess is that you're using different Python versions -- |
Yup. That worked. Thanks! 🙏🏾 I had already set ".python-version" to 3.12 to see if that was the issue, but I guess tool install doesn't look at the project settings. Now if there were a way to run 'uvx' directly with the CLI scripts within the package, that would be my ideal scenario. But this is already really good. Once again, thanks. Keep up the amazing work! UPDATE: I tried
To see if 'uv tool install' would solve correctly with the modified python version constraint, but it didn't work. |
I have a CLI app that is currently being built by poetry (https://pypi.org/project/llm-context/). 'pipx' is used to install it. There are no dependency issues at either build or resolution times. And the package runs fine.
I want to be able to do a 'uv tool install' for this package.
There are no problems when I build using 'uv'. When I try to install, I get
Since I know it is currently running without apparent problems with the pipx install, I would like to force the override. Ideally I would do this at build time, rather than at install time.
I found this #631 which seems to do what I want (although it's at install time), but this is for pip-install. Apparently the equivalent is not set up for tool install?
I'm wondering if there are plans to enable this for tools as well. As I said it's ideally something that goes into the metadata at build time, so that uv knows to override the dependency at install time.
Great project! Thanks for all the work.
The text was updated successfully, but these errors were encountered: