Skip to content

Some commands fails but reports success #21

Description

@MarcSkovMadsen

Some pn commands will report success even when they fail.

  • [] pn build package
  • [] pn release package

Reproducible Example

Try to upload a package twice to test pypi

$ pn release package 0.1.0 --test
[09:33:31] INFO     running: python -m twine upload dist/*0.1.0* --repository testpypi                                                                                                                  shared.py:33
Uploading distributions to https://test.pypi.org/legacy/
Enter your username: MarcSkovMadsen
WARNING  Error getting password from keyring                                                                                                                                                                        
         Traceback (most recent call last):                                                                                                                                                                         
           File "/home/jovyan/repos/private/awesome-panel/awesome-panel-cli/.venv/lib/python3.9/site-packages/twine/auth.py", line 74, in get_password_from_keyring                                                 
             return cast(str, keyring.get_password(system, username))                                                                                                                                               
           File "/home/jovyan/repos/private/awesome-panel/awesome-panel-cli/.venv/lib/python3.9/site-packages/keyring/core.py", line 55, in get_password                                                            
             return get_keyring().get_password(service_name, username)                                                                                                                                              
           File "/home/jovyan/repos/private/awesome-panel/awesome-panel-cli/.venv/lib/python3.9/site-packages/keyring/backends/fail.py", line 25, 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.                                                                                                                                                          
Enter your password: 
Uploading awesome_panel_cli-0.1.0-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 37.8/37.8 kB • 00:00 • 50.9 MB/s
WARNING  Error during upload. Retry with the --verbose option for more details.                                                                                                                                     
ERROR    HTTPError: 400 Bad Request from https://test.pypi.org/legacy/                                                                                                                                              
         File already exists. See https://test.pypi.org/help/#file-name-reuse for more information.                                                                                                                 
[09:33:42] ERROR    failed: python -m twine upload dist/*0.1.0* --repository testpypi                                                                                                                   shared.py:37
           INFO     Package build finished with success 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions