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

Informative failure notification when PyPI restricts uploads #24

Open
suvayu opened this issue Apr 2, 2024 · 1 comment
Open

Informative failure notification when PyPI restricts uploads #24

suvayu opened this issue Apr 2, 2024 · 1 comment
Labels
automation enhancement New feature or request

Comments

@suvayu
Copy link
Collaborator

suvayu commented Apr 2, 2024

Context

Anyway, PyPI is again accepting new uploads and this time I managed to get the publishing step to succeed.

[...] maybe an informative error message would be useful.

Originally posted by @suvayu in #23 (comment)

Example error

@suvayu suvayu changed the title Informative failure notification from workflow when PyPI restricts uploads Informative failure notification when PyPI restricts uploads Apr 2, 2024
@suvayu suvayu added automation enhancement New feature or request labels Apr 2, 2024
@suvayu
Copy link
Collaborator Author

suvayu commented Jul 16, 2024

Other common errors:

  • duplicate release
    WARNING  Error during upload. Retry with the --verbose option for more details. 
    ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/        
             File already exists. See https://pypi.org/help/#file-name-reuse for    
             more information.
    
  • incorrect package name
    WARNING  Error during upload. Retry with the --verbose option for more details. 
    ERROR    HTTPError: 400 Bad Request from https://test.pypi.org/legacy/          
             Non-user identities cannot create new projects. This was probably      
             caused by successfully using a pending publisher but specifying the    
             project name incorrectly (either in the publisher or in your project's 
             metadata). Please ensure that both match. See:                         
             https://docs.pypi.org/trusted-publishers/troubleshooting/              
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant