Skip to content

BUG: fix running a script with explicitly empty dependencies = []#1658

Merged
dukecat0 merged 2 commits intopypa:mainfrom
neutrinoceros:bug/fix-run-script-no-dependencies
Aug 10, 2025
Merged

BUG: fix running a script with explicitly empty dependencies = []#1658
dukecat0 merged 2 commits intopypa:mainfrom
neutrinoceros:bug/fix-run-script-no-dependencies

Conversation

@neutrinoceros
Copy link
Contributor

@neutrinoceros neutrinoceros commented Aug 9, 2025

  • I have added a news fragment under changelog.d/ (if the patch affects the end users)

Summary of changes

pipx run raised an exception for the following script

# /// script
# dependencies = []
# ///

... # any code

This patch fixes it.

Test plan

pipx run script.py

@neutrinoceros neutrinoceros force-pushed the bug/fix-run-script-no-dependencies branch from 8d1a6af to e9b91e3 Compare August 9, 2025 14:04
@neutrinoceros neutrinoceros marked this pull request as ready for review August 9, 2025 14:05
@dukecat0 dukecat0 merged commit 849d3f4 into pypa:main Aug 10, 2025
10 checks passed
@neutrinoceros neutrinoceros deleted the bug/fix-run-script-no-dependencies branch August 10, 2025 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants