PyO3 / PyO3/pyo3

sdist release of `pyo3-introspection` 0.29.2 failed

Open
#6,303 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
16.2k
Forks
1k
Avg merge
2d 6h
Merged PRs (30d)
66

Description

See https://github.com/PyO3/pyo3/actions/runs/31040797061/job/92427238643

   Uploading pyo3_introspection-0.29.2.tar.gz
  INFO     Response from https://upload.pypi.org/legacy/:                         
           400 Bad Request                                                        
  INFO     <html>                                                                 
            <head>                                                                
             <title>400 License-File LICENSE-APACHE does not exist in distribution
           file pyo3_introspection-0.29.2.tar.gz at                               
           pyo3_introspection-0.29.2/LICENSE-APACHE</title>                       
            </head>                                                               
            <body>                                                                
             <h1>400 License-File LICENSE-APACHE does not exist in distribution   
           file pyo3_introspection-0.29.2.tar.gz at                               
           pyo3_introspection-0.29.2/LICENSE-APACHE</h1>                          
             The server could not comply with the request since it is either      
           malformed or otherwise incorrect.<br/><br/>                            
           License-File LICENSE-APACHE does not exist in distribution file        
           pyo3_introspection-0.29.2.tar.gz at                                    
           pyo3_introspection-0.29.2/LICENSE-APACHE                               
                                                                                  
                                                                                  
            </body>                                                               
           </html>                                                                
  ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/        
           Bad Request                                                            

... it's probably the licence files being a problem again, maybe we should go back to the symlink solution and figure out the root cause in maturin.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked GitHub Actions run and inspect the generated pyo3_introspection-0.29.2.tar.gz, especially whether LICENSE-APACHE is included. Then investigate how maturin handles the license files and compare that with the proposed symlink solution. Done means the sdist contains the declared license files and the PyPI upload succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, python, rust
Domain
build-system, release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.