This was already possible with `pipx run`, I love having deps inline for simple scripts.
I don't see examples of using this with a shebang script, though I suspect it's possible.
I don't see examples of using this with a shebang script, though I suspect it's possible.
#!/usr/bin/env -S pipx run
# /// script
# dependencies = [
# "click==8.*",
# "Jinja2==3.*",
# "tomli==2.*",
# ]
# requires-python = ">=3.8"
# ///
And it does manage temporary environments.