Show warning when a URL with #egg is provided to pipx
See original GitHub issueDescribe the bug
Exposing the shell commands of extra dependencies does not work when installing via git+ssh. It works when installing from a local directory.
How to reproduce
Create a git repository git+ssh://git@gitlab.com/.../my-package.git
with a package whose extra dependency exposes a shell command. Then, run
pipx install --include-deps "git+ssh://git@gitlab.com/.../my-package.git#egg=my-package[extra-dependency]"
The shell command of the extra-dependency
is not exposed, even though the extra dependency is installed in the venv.
Expected behavior
The shell command should be exposed.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why #egg=foo when pip-installing from git repo - Stack Overflow
When installing via git or other VCS urls, you will want to find the tag or hash of the version you need. For...
Read more >pipenv Documentation - Read the Docs
The pip documentation has the following warning around the --extra-index-urls option: Using this option to search for packages which are not in the...
Read more >Help testing experimental features in setuptools - Packaging
warning: check: missing required meta-data: url - This warn happens if you don't specify a Homepage in project.url (or homepage , Home-page ...
Read more >Changelog - pip documentation v22.3.1
X , pipX. ... Include Project-URLs in pip show output. ... Drop the doctype check, that presented a warning for index pages that...
Read more >cumulusci - PyPI
CumulusCI has a new command: cci service remove . This command removes a given service. A validator now checks cumulusci.yml and shows warnings...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So
package-with-extras[httpie] @ git+https://github.com/hrittich/package-with-extras.git
works correctly, while the#egg=
part is actually completely discarded by pipx. Since the#egg=
format is a legacy format that was never standardised, and thename @ url
format was a standard much before pipx was implemented, I am inclined to say the latter form should not be used with pipx.We could potentially emit a warning if the
#egg=
fragment is detected and tell the user this has no effect at all, but it’s a nice-to-have feature and not critical.A pull request on that addition would be much welcomed.
These lines might also need to be updated: https://github.com/pypa/pipx/blob/71fe102014393061fcb953609a5b5b2a763f4c0a/README.md?plain=1#L167-L171