Skip to content
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

How to add extra to a dependency of a tool? #8279

Open
grejioh opened this issue Oct 17, 2024 · 1 comment
Open

How to add extra to a dependency of a tool? #8279

grejioh opened this issue Oct 17, 2024 · 1 comment
Labels
question Asking for clarification or support

Comments

@grejioh
Copy link

grejioh commented Oct 17, 2024

I installed a tool use requests.
I want to use requests[socks] instead of the default requests package. I have tried the following commands:

uv tool install open-webui --with requests[socks]
uv tool install open-webui --with requests --optional socks
uv tool upgrade open-webui --reinstall-package requests[socks]
....

Finally, could you please confirm whether it's necessary for uv tool to support adding extras to dependencies?

@zanieb
Copy link
Member

zanieb commented Oct 17, 2024

uv tool install open-webui --with 'requests[socks]' should work — did it not?

e.g.

❯ uv tool install black --with 'requests[socks]'
Resolved 12 packages in 4ms
Installed 12 packages in 10ms
 + black==24.10.0
 + certifi==2024.8.30
 + charset-normalizer==3.4.0
 + click==8.1.7
 + idna==3.10
 + mypy-extensions==1.0.0
 + packaging==24.1
 + pathspec==0.12.1
 + platformdirs==4.3.6
 + pysocks==1.7.1
 + requests==2.32.3
 + urllib3==2.2.3
Installed 2 executables: black, blackd

@zanieb zanieb added the question Asking for clarification or support label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

2 participants