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
Fail to authenticate for Azure Artifacts #2760
Comments
There seems to be some issue with the keyring that can't be fixed on PDM side, you can check it by running keyring directly: import keyring
keyring.get_credential(url, username)
keyring.get_password(url, username)
You can also set it in config:
|
Hmm, using this
Sure, good point. Can indeed use this as a workaround. |
I have manage to get all authentication to work with azure artifacts by running the following:
And then simply add |
Steps to reproduce
To add a private pypi from Azure Artifacts, I added a section in the
pyproject.toml
as follows:I try to add a package to the pyproject.toml that is available in the private repo by:
pdm add datahub-cli==0.2.0a6 -v
Actual behavior
When I run the above command, I get the message below:
However, when I pass personal login information via the
pyproject.toml
in thetool.pdm.source
section (which I don't want), it does work.The same error also appears, when I want to install a package from a public pypi, which is very inconvenient.
Expected behavior
Package from private pypi is added to
pyproject.toml
and installed.Environment Information
pdm info; pdm info --env
:The text was updated successfully, but these errors were encountered: