raulcd commented on issue #47932:
URL: https://github.com/apache/arrow/issues/47932#issuecomment-3442844902
Given we are in agreement I went ahead an tried to submit the new tar.gz,
and I get the same failure. PyPI seems to be enforcing a `LICENSE.txt` file
even if the license metadata isn't present?
```
$ twine upload -u ${PYPI_USER}
/tmp/arrow-post-python.43ifp/pyarrow-22.0.0.tar.gz
Uploading distributions to https://upload.pypi.org/legacy/
WARNING This environment is not supported for trusted publishing
Enter your API token:
Uploading pyarrow-22.0.0.tar.gz
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB • 00:02 • 558.0 kB/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
```
I've double checked the `pyarrow-22.0.0.tar.gz` I tried to upload is the new
one by copying to a different location, untaring and validating the `setup.cfg`
file is the updated one.
At this point, I want to copy the `LICENSE.txt` and `NOTICE.txt` files and
regenerate the tar.gz:
```
cp ~/code/arrow/NOTICE.txt pyarrow-22.0.0/
cp ~/code/arrow/LICENSE.txt pyarrow-22.0.0/
```
and the diffoscope:
```
$ diffoscope pyarrow-22.0.0 old/pyarrow-22.0.0/0/
--- pyarrow-22.0.0
+++ old/pyarrow-22.0.0/
├── file list
│ @@ -1,11 +1,9 @@
│ CMakeLists.txt
│ -LICENSE.txt
│ MANIFEST.in
│ -NOTICE.txt
│ PKG-INFO
│ README.md
│ cmake_modules
│ pyarrow
│ pyarrow.egg-info
│ pyproject.toml
│ setup.cfg
├── stat {}
│ @@ -1,8 +1,8 @@
│
│ Size: 4096 Blocks: 8 IO Block: 4096 directory
│ Device: 259,3 Links: 5
│ Access: (0755/drwxr-xr-x) Uid: ( 1000/ raulcd) Gid: ( 1000/ raulcd)
│
│ -Modify: 2025-10-24 12:15:17.143138994 +0000
│ +Modify: 2025-10-20 14:57:00.784929500 +0000
│ --- pyarrow-22.0.0/setup.cfg
├── +++ old/pyarrow-22.0.0/setup.cfg
│ @@ -1,7 +1,12 @@
│ +[metadata]
│ +license_files =
│ + ../LICENSE.txt
│ + ../NOTICE.txt
│ +
│ [build_sphinx]
│ source-dir = doc/
│ build-dir = doc/_build
│
│ [tool:pytest]
│ addopts = --ignore=scripts
│ filterwarnings =
│ ├── stat {}
│ │ @@ -1,8 +1,8 @@
│ │
│ │ - Size: 383 Blocks: 8 IO Block: 4096 regular file
│ │ + Size: 443 Blocks: 8 IO Block: 4096 regular file
│ │ Device: 259,3 Links: 1
│ │ Access: (0644/-rw-r--r--) Uid: ( 1000/ raulcd) Gid: ( 1000/ raulcd)
│ │
│ │ -Modify: 2025-10-24 11:33:19.249439549 +0000
│ │ +Modify: 2025-10-20 14:57:00.785329800 +0000
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]