Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858677 - dev-python/twine-4.0.1 fails tests: Cannot autolaunch D-Bus without X11 $DISPLAY (0)
Summary: dev-python/twine-4.0.1 fails tests: Cannot autolaunch D-Bus without X11 $DISP...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-18 01:09 UTC by Jonathan Lovelace
Modified: 2022-07-18 12:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python:twine-4.0.1:20220718-010310.log (dev-python:twine-4.0.1:20220718-010310.log,38.44 KB, text/x-log)
2022-07-18 01:09 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.76 KB, text/plain)
2022-07-18 01:10 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2022-07-18 01:09:30 UTC
Created attachment 792044 [details]
dev-python:twine-4.0.1:20220718-010310.log

=dev-python/twine-4.0.1 fails its test phase for me, specifically three cases of tests/test_auth.py::test_warns_for_empty_password. The full test output of those failing tests is IMO too long for this comment box, but the "captured log call" makes me wonder if this merely needs virtualx.eclass:

------------------------------ Captured log call -------------------------------                              
WARNING  twine.auth:auth.py:66 Error getting username from keyring                                            
Traceback (most recent call last):                                                                            
  File "/usr/lib/python3.10/site-packages/keyring/backends/libsecret.py", line 143, in get_credential         
    items = Secret.password_search_sync(                                                                      
gi.repository.GLib.GError: g-io-error-quark: Cannot autolaunch D-Bus without X11 $DISPLAY (0)                 
                                                                                                              
The above exception was the direct cause of the following exception:                                                                                                                                                        
Traceback (most recent call last):                                                                              File "/var/tmp/portage/dev-python/twine-4.0.1/work/twine-4.0.1/twine/auth.py", line 59, in get_username_from
_keyring                                                                                                      
    creds = keyring.get_credential(system, None)                                                              
  File "/usr/lib/python3.10/site-packages/keyring/core.py", line 72, in get_credential                        
    return get_keyring().get_credential(service_name, username)                                               
  File "/usr/lib/python3.10/site-packages/keyring/backends/libsecret.py", line 149, in get_credential         
    raise KeyringLocked('Failed to unlock the item!') from error                                              
keyring.errors.KeyringLocked: Failed to unlock the item!                                                      
WARNING  twine.utils:utils.py:258 Your password contains control characters. Did you enter it correctly?      
WARNING  twine.utils:utils.py:259 See https://twine.readthedocs.io/#entering-credentials for more information.
Comment 1 Jonathan Lovelace 2022-07-18 01:10:12 UTC
Created attachment 792047 [details]
emerge-info.txt
Comment 2 Larry the Git Cow gentoo-dev 2022-07-18 12:25:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55544f1884ae7988169ecaf78fea0288267f6f4e

commit 55544f1884ae7988169ecaf78fea0288267f6f4e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-18 12:25:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-18 12:25:08 +0000

    dev-python/twine: skip tests needing virtx
    
    Let's avoid a relatively heavy dep for a very common test dependency (twine).
    
    Closes: https://bugs.gentoo.org/858677
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/twine/twine-4.0.1.ebuild | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)