You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running a keyring backend that prints to stderr when a password is not found (keyring_pass, specifically). When I do an operation that involves package repositories like update or install, I get a lot of messages about the keyring entries not existing. In a project I'm working on, I get ~24 such messages on pdm install, and ~244 on pdm update --outdated.
It seems to me that PDM should request these once, then cache the results for the rest of the operation. These extra queries have a presumably minor performance cost, and in my (admittedly probably uncommon) case disrupt the legibility of pdm's output.
I believe this is caused by 7304f8c, but have not verified that.
To reproduce
Use a keyring provider that logs failed lookups
Don't define a username/password for PyPi
Run pdm install
Expected Behavior
A single keyring lookup per source repository without a username or password.
Environment Information
Error: keyring/pdm-pypi-pypi is not in the password store.
Error: keyring/pdm-pypi-pypi/__token__ is not in the password store.
Error: keyring/pdm-pypi-pypi is not in the password store.
Error: keyring/pdm-pypi-pypi/__token__ is not in the password store.
PDM version:
2.22.1
Python Interpreter:
/home/adam/scratch/temp/.venv/bin/python (3.13)
Project Root:
/home/adam/scratch/temp
Local Packages:
Error: keyring/pdm-pypi-pypi is not in the password store.
Error: keyring/pdm-pypi-pypi/__token__ is not in the password store.
Error: keyring/pdm-pypi-pypi is not in the password store.
Error: keyring/pdm-pypi-pypi/__token__ is not in the password store.
{
"implementation_name": "cpython",
"implementation_version": "3.13.1",
"os_name": "posix",
"platform_machine": "x86_64",
"platform_release": "6.12.7-zen1-1-zen",
"platform_system": "Linux",
"platform_version": "#1 ZEN SMP PREEMPT_DYNAMIC Fri, 27 Dec 2024 14:24:32 +0000",
"python_full_version": "3.13.1",
"platform_python_implementation": "CPython",
"python_version": "3.13",
"sys_platform": "linux"
}
Verbose Command Output
No response
Additional Context
No response
Are you willing to submit a PR to fix this bug?
Yes, I would like to submit a PR.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am running a
keyring
backend that prints to stderr when a password is not found (keyring_pass, specifically). When I do an operation that involves package repositories likeupdate
orinstall
, I get a lot of messages about the keyring entries not existing. In a project I'm working on, I get ~24 such messages onpdm install
, and ~244 onpdm update --outdated
.It seems to me that PDM should request these once, then cache the results for the rest of the operation. These extra queries have a presumably minor performance cost, and in my (admittedly probably uncommon) case disrupt the legibility of pdm's output.
I believe this is caused by 7304f8c, but have not verified that.
To reproduce
pdm install
Expected Behavior
A single keyring lookup per source repository without a username or password.
Environment Information
Verbose Command Output
No response
Additional Context
No response
Are you willing to submit a PR to fix this bug?
The text was updated successfully, but these errors were encountered: