Skip to content

Commit 9dc8c18

Browse files
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

File tree

hf_xet/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ Repository = "https://github.com/huggingface/xet-core.git"
5252

5353
[tool.maturin]
5454
features = ["pyo3/extension-module"]
55+
include = [{ path = "LICENSE", format = "sdist" }]

0 commit comments

Comments
 (0)