Skip to content

Issue with Travis CI and twine upload  #1113

@lemoustachiste

Description

@lemoustachiste

Is there an existing issue for this?

  • I have searched the existing issues (open and closed), and could not find an existing issue

What keywords did you use to search existing issues?

twine travis keyring (backend)

What operating system(s) are you using?

Linux

If you selected 'Other', describe your Operating System here

No response

What version of Python are you running?

3.10.14

How did you install twine? Did you use your operating system's package manager or pip or something else?

pip install semantic-release twine 

and subsequently trying to fix twine version to 5.0.0, no change so I assume the issue is not directly with twine.

What version of twine do you have installed (include the complete output)

5.1.0

It's in Travis CI so not too straighforward to gather more information (but doable).

Which package repository are you using?

https://upload.pypi.org/legacy/

Please describe the issue that you are experiencing

When getting to twine upload step, my CI build stalls because of the following error:

Enter your API token: [33mWARNING  Error getting password from keyring                                    

         Traceback (most recent call last):                                     

           File                                                                 

         "/home/travis/virtualenv/python3.10.14/lib/python3.10/site-packages/twi

         ne/auth.py", line 81, in get_password_from_keyring                     

             return cast(str, keyring.get_password(system, username))           

           File                                                                 

         "/home/travis/virtualenv/python3.10.14/lib/python3.10/site-packages/key

         ring/core.py", line 56, in get_password                                

             return get_keyring().get_password(service_name, username)          

           File                                                                 

         "/home/travis/virtualenv/python3.10.14/lib/python3.10/site-packages/key

         ring/backends/fail.py", line 28, in get_password                       

             raise NoKeyringError(msg)                                          

         keyring.errors.NoKeyringError: No recommended backend was available.   

         Install a recommended 3rd party backend package; or, install the       

         keyrings.alt package if you want to use the non-recommended backends.  

         See https://pypi.org/project/keyring for details.  

Until now my twine username and password were set as ENV variables, but I guess there has been a change in configuration but I don't know how to address the change. Could you point me to any sort of documentation or the right direction?

Thanks

Please list the steps required to reproduce this behaviour

This is what's being run: https://github.com/blockchain-certificates/cert-schema/blob/master/release_package.sh

Please include the PKG-INFO file contents from the artifact you're attempting to upload

https://pypi.org/project/cert-schema/

A redacted version of your .pypirc file

no pypirc in the project

Anything else you'd like to mention?

I'm sorry my main strength is not Python world

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportUsers asking for help using twine

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions