feat: add --with option to "pipx run" command
- [x] I have added a news fragment under
changelog.d/(if the patch affects the end users)
Summary of changes
Added the option in argparse for pipx run, and used inject_dep
Test plan
I've used test-driven development, and there is a test for a simple case that should prove this feature is working
TODOs:
- [x] If this approach is considered acceptable, refactor
_download_and_runto just download, so that we can inject the dependency also in the cases where theif venv.has_app == Truebranch inrun_package - [x] Given this approach is considered acceptable, add parametrized tests
Closes https://github.com/pypa/pipx/issues/1607
Thanks a lot for running the tests! I'm a bit confused about the macos failure though (https://github.com/pypa/pipx/actions/runs/17588256767/job/50365801078?pr=1666). It seems related to the code here, but I fail to see why it fails there. Any tips you might be able to have?
It seems related to the code here
It's not related to your code here, it also failed in every other PRs. Don't worry! :D
CI green :partying_face: