-
Notifications
You must be signed in to change notification settings - Fork 446
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
PEP 723 support is faulty: uses wrong TOML field name #1187
Comments
Fixed in #1180. |
Ah, indeed. I searched the issues, but apparently not the PRs |
However, I think this issue still exists. |
The example in the issue report is unfortunately also out of date the most recent change to PEP 723 was to change: -# /// pyproject
+# /// script I don't want to write an example and risk getting it wrong myself, instead I will point to the example in the PEP For the background on this change please see https://discuss.python.org/t/how-would-you-like-to-declare-runtime-dependencies-and-python-requirements-for-pep-723/40418/70 |
@maxwell-k this is also fixed in #1180. |
Describe the bug
#1100 implemented PEP 723 wrong:
pipx/src/pipx/commands/run.py
Line 351 in 5b18ddf
this should be
"dependencies"
, not"requirements"
.How to reproduce
Create a PEP 723 compliant script:
and run it using
pipx run ./script.py
. You’ll seeExpected behavior
pipx
should run it in a temporary environment.Also the traceback should contain the file name, not
<string>
The text was updated successfully, but these errors were encountered: