Skip to content

[Release][Python] PyPI rejects our source distribution due to missing LICENSE.txt #47932

@raulcd

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

When releasing Arrow 22.0.0 and uploading to PyPI, I have been able to release the wheels but PyPI is rejecting our source distribution due to the following error:

Uploading pyarrow-22.0.0.tar.gz
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB • 00:00 • 140.0 MB/s
WARNING  Error during upload. Retry with the --verbose option for more details.                                                              
ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/                                                                     
         License-File LICENSE.txt does not exist in distribution file pyarrow-22.0.0.tar.gz at pyarrow-22.0.0/LICENSE.txt        

The LICENSE.txt file is indeed not there but I've checked pyarrow-21.0.0 and is also not there: https://pypi.org/project/pyarrow/21.0.0/#pyarrow-21.0.0.tar.gz

PyPI seems to have implemented some changes to include those checks.

Component(s)

Release, Python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions