Commit 8d708b2
chore: fix wheel license packaging issues (#1932)
<!-- .github/pull_request_template.md -->
## π Description
setuptools can't properly handle license files under `license/`
directory:
https://github.com/flashinfer-ai/flashinfer/actions/runs/18483737518/job/52670722434
```
400 License-File licenses/LICENSE.cutlass.txt does not exist in
distribution file flashinfer_python-0.4.1-py3-none-any.whl at
flashinfer_python-0.4.1.dist-info/licenses/licenses/LICENSE.cutlass.txt
INFO <html>
<head>
<title>400 License-File licenses/LICENSE.cutlass.txt does not exist
in distribution file flashinfer_python-0.4.1-py3-none-any.whl at
flashinfer_python-0.4.1.dist-info/licenses/licenses/LICENSE.cutlass.txt
</title>
</head>
<body>
<h1>400 License-File licenses/LICENSE.cutlass.txt does not exist in
distribution file flashinfer_python-0.4.1-py3-none-any.whl at
flashinfer_python-0.4.1.dist-info/licenses/licenses/LICENSE.cutlass.txt
</h1>
The server could not comply with the request since it is either
malformed or otherwise incorrect.<br/><br/>
License-File licenses/LICENSE.cutlass.txt does not exist in
distribution file flashinfer_python-0.4.1-py3-none-any.whl at
flashinfer_python-0.4.1.dist-info/licenses/licenses/LICENSE.cutlass.txt
</body>
</html>
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
License-File licenses/LICENSE.cutlass.txt does not exist in
distribution file flashinfer_python-0.4.1-py3-none-any.whl at
flashinfer_python-0.4.1.dist-info/licenses/licenses/LICENSE.cutlass.txt
```
This PR fixes the issue by first copying license files to root.
Note: we didn't run into this issue because we only upload sdist instead
of wheel to pypi.
## π Related Issues
<!-- Link any related issues here -->
## π Pull Request Checklist
Thank you for contributing to FlashInfer! Before we review your pull
request, please make sure the following items are complete.
### β
Pre-commit Checks
- [x] I have installed `pre-commit` by running `pip install pre-commit`
(or used your preferred method).
- [x] I have installed the hooks with `pre-commit install`.
- [x] I have run the hooks manually with `pre-commit run --all-files`
and fixed any reported issues.
> If you are unsure about how to set up `pre-commit`, see [the
pre-commit documentation](https://pre-commit.com/).
## π§ͺ Tests
- [x] Tests have been added or updated as needed.
- [ ] All tests are passing (`unittest`, etc.).
## Reviewer Notes
<!-- Optional: anything you'd like reviewers to focus on, concerns, etc.
-->
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent b01715b commit 8d708b2
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
118 | 127 | | |
119 | 128 | | |
120 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments