|
| 1 | +From: Ludovic Henry <git@ludovic.dev> |
| 2 | +Subject: [PATCH] ship the bundled llhttp licence in the wheel |
| 3 | + |
| 4 | +setup.py compiles llhttp/src/{api,http,llhttp}.c straight into |
| 5 | +geventhttpclient._parser, so every wheel redistributes llhttp (MIT, |
| 6 | +Copyright Fedor Indutny) in binary form. The MIT licence requires that |
| 7 | +notice to travel with the binary, but only the project's own root |
| 8 | +LICENSE-MIT is picked up by the default license-files globs, so |
| 9 | +llhttp/LICENSE-MIT never reaches dist-info/licenses/. |
| 10 | + |
| 11 | +Declaring license-files explicitly ships both. PEP 639 preserves each |
| 12 | +entry's path relative to the project root, so llhttp's copy lands at |
| 13 | +dist-info/licenses/llhttp/LICENSE-MIT next to the project's own. |
| 14 | + |
| 15 | +Upstream-Status: To upstream [not yet submitted; no fork of geventhttpclient/geventhttpclient to push from] |
| 16 | +--- |
| 17 | + pyproject.toml | 1 + |
| 18 | + 1 file changed, 1 insertion(+) |
| 19 | + |
| 20 | +diff --git a/pyproject.toml b/pyproject.toml |
| 21 | +index 1111111..2222222 100644 |
| 22 | +--- a/pyproject.toml |
| 23 | ++++ b/pyproject.toml |
| 24 | +@@ -10,6 +10,7 @@ description = "HTTP client library for gevent" |
| 25 | + readme = "README.md" |
| 26 | + requires-python = ">=3.11" |
| 27 | + license = "MIT" |
| 28 | ++license-files = ["LICENSE-MIT", "llhttp/LICENSE-MIT"] |
| 29 | + keywords = ["http", "gevent", "client"] |
| 30 | + authors = [{name = "Antonin Amand", email = "antonin.amand@gmail.com"}] |
| 31 | + classifiers = [ |
0 commit comments