-
Notifications
You must be signed in to change notification settings - Fork 476
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
#1100 implemented PEP 723 wrong:
Line 351 in 5b18ddf
for requirement in pyproject.get("run", {}).get("requirements", []): |
this should be "dependencies"
, not "requirements"
.
How to reproduce
Create a PEP 723 compliant script:
#!/usr/bin/env -S pipx run
# /// pyproject
# run.dependencies = ["httpx"]
# ///
import httpx
and run it using pipx run ./script.py
. You’ll see
Traceback (most recent call last):
File "<string>", line 11, in <module>
ModuleNotFoundError: No module named 'requests'
Expected behavior
pipx
should run it in a temporary environment.
Also the traceback should contain the file name, not <string>
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working