Add dependencies to python script using uv
up add —-script example.py cowsay
Make script executable without using uv run
Add the following as the shebang and make the script executable.
#!/usr/bin/env -S uv run —-script
up add —-script example.py cowsay
Add the following as the shebang and make the script executable.
#!/usr/bin/env -S uv run —-script