-
Notifications
You must be signed in to change notification settings - Fork 418
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
pipx fails to run script with dependencies. #1227
Comments
This runs normally in my Debian installation. Could you post the output of |
|
In the tests the syntax for this feature is different - it's # test.py
# /// script
# dependencies = ["requests"]
# ///
import sys
import requests
project = sys.argv[1]
pipx_data = requests.get(f"https://pypi.org/pypi/{project}/json").json()
print(pipx_data["info"]["version"]) Which works - maybe it's the docs that need updating? |
Right, I forgot – When implementing support for inline script metadata, we also removed support for the old requirement specification. A pull request to update the section would be welcome. |
Describe the bug
According to the docs, the following script should run:
How to reproduce
Expected behavior
ths script should install the requirements and output the pipx version (eg.
1.4.3
)Actual Behaviour
output is
Notes
The text was updated successfully, but these errors were encountered: