Skip to content
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

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

Open
brettcannon opened this issue Nov 23, 2022 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@brettcannon
Copy link
Member

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.

@uranusjr
Copy link
Member

The main question would be which pyproject.toml

@brettcannon
Copy link
Member Author

The main question would be which pyproject.toml

Probably start in the cwd, and work your way up until you find a pyproject.toml file (if any).

@dukecat0 dukecat0 added the enhancement New feature or request label Jan 16, 2023
@gaborbernat
Copy link
Contributor

PR welcome.

@gaborbernat gaborbernat added the help wanted Extra attention is needed label Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants