We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I have CLI scripts that depended on third-party packages, I will:
python -m pip install $PKG --user
$PATH
With that, I can call the scripts globally.
I'm trying to move one of these scripts to uv:
uv add --script qing 'send2trash'
#!/usr/bin/env python # /// script # requires-python = ">=3.13" # dependencies = [ # "send2trash", # ] # /// import sys from send2trash import send2trash for i in sys.argv[1:]: try: send2trash(i) except OSError: print("could not find file/dir to remove")
I can run it with uv if it's in the same directory
$ uv run qing
But it seems like there's no way to run it globally without adding an alias to my .zprofile like alias qing="uv run path/to/qing"
.zprofile
alias qing="uv run path/to/qing"
Any way to avoid adding this alias?
No response
The text was updated successfully, but these errors were encountered:
I think this is roughly a duplicate of #7242
Sorry, something went wrong.
Dang it, searched through tickets before opening but didn't spot that one. That ticket is indeed more or less what I'm looking for.
No branches or pull requests
Question
If I have CLI scripts that depended on third-party packages, I will:
python -m pip install $PKG --user
)$PATH
With that, I can call the scripts globally.
I'm trying to move one of these scripts to uv:
uv add --script qing 'send2trash'
I can run it with uv if it's in the same directory
But it seems like there's no way to run it globally without adding an alias to my
.zprofile
likealias qing="uv run path/to/qing"
Any way to avoid adding this alias?
Platform
No response
Version
No response
The text was updated successfully, but these errors were encountered: