pypa/pipx

Check `pyproject.toml` for any potential project limitation/requirements when using `pipx run`

Open

#914 geöffnet am 23. Nov. 2022

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (363 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (7.844 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 2h) (16 gemergte PRs in 30 T)

Beschreibung

How would this feature be useful? If I want to run e.g. pipx run pylint, it would be nice if it could be tied to any version requirements I may have specified in my pyproject.toml file for installing pylint for development.

Describe the solution you'd like If something specified by pipx run is found in pyproject.toml's optional-dependencies, use that dependency specification when installing the tool into the temporary virtual environment. Probably would want to just grab the first requirement found instead of trying to be clever about it.

Describe alternatives you've considered I've considered not caring. 😉 Honestly it probably isn't worth worrying about this idea, but I at least wanted it written down after I thought about it in case anyone else also realized that when you are running a tool for a project there may be certain installation requirements for it.

Contributor Guide