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

Add documentation for [pipx.run] entry point #1371

Open
matthewfeickert opened this issue Apr 24, 2024 · 3 comments
Open

Add documentation for [pipx.run] entry point #1371

matthewfeickert opened this issue Apr 24, 2024 · 3 comments
Labels

Comments

@matthewfeickert
Copy link

matthewfeickert commented Apr 24, 2024

TODO: Write documentation on this.

Originally posted by @uranusjr in #615 (comment)

I only learned about the pipx.run entry point earlier today by asking about it and getting shown how build uses it, but it would be quite useful to have some docs on this.

@chrysle
Copy link
Contributor

chrysle commented Apr 25, 2024

I must admit I also wasn't aware of that entry point. Thanks for raising this issue!

@chrysle chrysle added the docs label Apr 25, 2024
@jaraco
Copy link
Member

jaraco commented Jun 15, 2024

Looks like the implementation is here:

pipx/src/pipx/venv.py

Lines 405 to 407 in dc9f9a8

if ep.group == "pipx.run":
if ep.name == app:
return ep

It also looks like it doesn't play well with local installs. (edit: wasn't correct on latest code)

@chrysle
Copy link
Contributor

chrysle commented Jun 19, 2024

It also looks like it doesn't play well with local installs. (edit: wasn't correct on latest code)

Yes, I encountered this issue myself when trying out the entry point. The fix was included in version 1.6.0.

FYI mentioned this in my proposal for a new PyPUG guide on packaging command-line applications at pypa/packaging.python.org#1553; if anyone would care to take a look, that would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants