Commit 9dc8c18
authored
Try to fix sdist release due to LICENSE missing from tarball root directory (#867)
The last hf-xet Python
[release](https://github.com/huggingface/xet-core/actions/runs/27167029243/job/80199014671)
failed on sdist upload step due to the below reason:
```
Uploading hf_xet-1.5.1rc0.tar.gz
INFO Response from https://upload.pypi.org/legacy/:
400 Bad Request
INFO <html>
<head>
<title>400 License-File LICENSE does not exist in distribution file
hf_xet-1.5.1rc0.tar.gz at hf_xet-1.5.1rc0/LICENSE</title>
</head>
<body>
<h1>400 License-File LICENSE does not exist in distribution file
hf_xet-1.5.1rc0.tar.gz at hf_xet-1.5.1rc0/LICENSE</h1>
The server could not comply with the request since it is either
malformed or otherwise incorrect.<br/><br/>
License-File LICENSE does not exist in distribution file
hf_xet-1.5.1rc0.tar.gz at hf_xet-1.5.1rc0/LICENSE
```
As suggested by Cursor, adding this line will add a LICENSE to the root.
- [x] Tested locally with `maturin sdist` to confirm there's a LICENSE
under the root.1 parent 1c96264 commit 9dc8c18
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
0 commit comments