pipx install doesn't prompt for credentials for private vcs url
See original GitHub issueDescribe the bug
Regular pipx install
command doesn’t work for private vcs urls that require authentication. Running pipx install --spec git+https://<some_private_repo>.git <package_name>
does not prompt the user for username and password. If the --verbose
option is provided, it works fine.
How to reproduce
Run above command using a private vcs url (e.g. github, gitlab, bitbucket) and do not use --verbose
.
Expected behavior
Should prompt user for credentials, even when --verbose
is not used.
Environment
$ python3 --version
Python 3.6.8
$ pipx --version
0.14.0.0
$ head -n 2 /etc/os-release
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
$ uname -srm
Linux 4.15.0-64-generic x86_64
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:22 (6 by maintainers)
Top Results From Across the Web
pipx install doesn't prompt for credentials for private vcs url #219
Describe the bug Regular pipx install command doesn't work for private vcs urls that require authentication. Running pipx install --spec git+https:// .git ...
Read more >Unable to install brownie using pipx - python - Stack Overflow
I used the github installation method and it worked for me, these are the commands that I used on VSCode terminal.
Read more >pipx — Install and Run Python Applications in Isolated ...
By default, pipx uses the same package index as pip, PyPI. pipx can also install from all other sources pip can, such as...
Read more >User Guide - pip documentation v21.1.dev0
Basic Authentication Credentials¶. pip supports basic authentication credentials. Basically, in the URL there is a username and password separated by : .
Read more >pipenv Documentation - Read the Docs
3.2.12 A Note about VCS Dependencies. You can install packages with pipenv from git and other version control systems using URLs formatted according...
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
This is also an issue for private package feeds requiring credentials, eg an Azure artifacts feed
It neither prompts, or works with artifacts-keyring like pip does
I’m running into a similar issue when trying to install from a private registry or
index-url
(e.g., github/gitlab/artifactory/etc) that requires authentication.In my case, I’m using
keyring
to store the credentials required, andpip
will automatically usekeyring
if available. A typicalpip
based workflow would bepython -m venv .venv && source .venv/bin/activate && pip install keyring && pip install -i https://authenticated.example.com/pypi/simple some-package-name
.In order to achieve something similar with
pipx
,pipx
should have a mechanism to (pre?) inject packages (keyring
,artifacts-keyring
, etc) into an app’s venv before the app itself is installed.