Azure Artifacts allows posting a module to an Artifactory that can then be installed by using pip by setting extra-index-url in pip.ini
(Windows) or pip.conf
(Mac/Linux)
However, when using pip install, the system is asking for a user/password
Is it possible to setup this inside pip.conf
and / or even better use .ssh signatures?
Is it possible to setup this inside pip.conf and / or even better use .ssh signatures?
What you met is expected behavior if it's the first time that you try to connect to the Azure Devops feed.
It will ask your credentials and keep it in local cache, and it won't ask for user and password again if everything is ok. Check my log:
We should note:
1.The Python Credential Provider is an artifacts-keyring
package. It's used to keep the credentials instead of other options like pip.conf
or .ssh
.
2.What it asks for is a PAT. For me, I enter the pat in both User
and Password
inputs.
3.If you still need to enter the password every time when connecting to the feed, there must be something wrong with your Python Credential Provider
(artifacts-keyring) package. Make sure you install this package successfully before running the pip install
command.
4.There're two options(It seems you're using option2) to connect to the feed, they both need the artifacts keyring
package to save the credentials. For me in windows environemnt, it's easy to install that package. But if you're in Linux environment, you should check the step4 in Get Tools button carefully:
Here's the link of prerequisites above.
Hope all above helps :)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments