Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#75858 - [python-poetry] make python-keyring an optional dependency

Attached to Project: Community Packages
Opened by Sergey (versusvoid) - Friday, 09 September 2022, 08:01 GMT
Last edited by Caleb Maclennan (alerque) - Tuesday, 28 February 2023, 09:36 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Caleb Maclennan (alerque)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:

poetry requires `keyring` package only for private repositories:
https://github.com/python-poetry/poetry/blob/c4b2253793cd6b41a99e25e479e40b776cca0a0e/src/poetry/utils/password_manager.py#L110-L116

With python-keyring installed basic operations fails with:
```
g-dbus-error-quark: The name org.freedesktop.secrets was not provided by any .service files
```
as poetry tries to authenticate even open api like `https://pypi.org/simple` through keyring.

Additional info:
* package version: 1.2.0-5
This task depends upon

Closed by  Caleb Maclennan (alerque)
Tuesday, 28 February 2023, 09:36 GMT
Reason for closing:  Upstream
Additional comments about closing:  Problem is in upstream project, needs fixing there not here. We would create a different class of problems by changing it in packaging.
Comment by Greg F (fzdz) - Friday, 16 September 2022, 19:11 GMT
I just ran into either the same or a related issue, but following a recent update some poetry operations require me to unlock both gnome-keyring and kwallet. A bit unsettling when I'm only interacting with public repositories so there's no reason for poetry to be interacting with either.

https://github.com/python-poetry/poetry/issues/1917 appears to be related.


For anyone else running into this issue, you can create/edit the file ~/.config/python_keyring/keyringrc.cfg with the below configuration to ignore keyring.
[backend]
default-keyring=keyring.backends.null.Keyring
Comment by Felix Yan (felixonmars) - Monday, 19 September 2022, 22:24 GMT
This could not be done as long as keyring is still listed as poetry's dependency at https://github.com/python-poetry/poetry/blob/master/pyproject.toml

The dependencies listed there would be written to the METADATA and checked on runtime.
Comment by Caleb Maclennan (alerque) - Tuesday, 28 February 2023, 09:35 GMT
Closing as not actionable per Felix's comment. It is still listed as required by upstream and us marking it as optional would create other problems. I suggest filing an upstream bug report to get that moved to extras.

Loading...