Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some commands fails but reports success #21

Open
MarcSkovMadsen opened this issue Oct 9, 2022 · 0 comments
Open

Some commands fails but reports success #21

MarcSkovMadsen opened this issue Oct 9, 2022 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@MarcSkovMadsen
Copy link
Contributor

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 
@MarcSkovMadsen MarcSkovMadsen added bug Something isn't working good first issue Good for newcomers labels Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant