This repository was archived by the owner on Aug 3, 2026. It is now read-only.
Repository navigation
Commit 831e7a3
authored
build: replace hatchling with the uv_build backend (#77)
Switches the build backend from `hatchling` to `uv_build`, replacing
`[tool.hatch.build.targets.sdist]` with `[tool.uv.build-backend]`. Only
`CHANGELOG.md` and `CONTRIBUTING.md` need an explicit `source-include` -
the module, `pyproject.toml`, README, and LICENSE are in the sdist by
default.
License metadata moves to PEP 639: `license = "Apache-2.0"` plus
`license-files = ["LICENSE"]`. That part is required, not cosmetic:
`uv_build` ships `LICENSE` inside the wheel only when it is declared via
`license-files`, and uv rejects `license-files` combined with the legacy
`license = { file = ... }` table.
The `License :: OSI Approved :: Apache Software License` classifier is
dropped because [PEP 639 deprecates license
classifiers](https://peps.python.org/pep-0639/#deprecate-license-classifiers)
in favor of `License-Expression`, which now carries the same information
("Using license classifier in the `Classifier` Core Metadata field is
deprecated and replaced by the more precise `License-Expression`
field"). See also the [core metadata
spec](https://packaging.python.org/en/latest/specifications/core-metadata/#license-expression).
uv warns about the classifier on every build.
Verified by building sdist + wheel before and after: the wheel contents
are identical, and the metadata differs only in `License-Expression:
Apache-2.0` replacing the inlined license text. The sdist drops
`.gitignore` and gains `pyproject.toml.orig` (uv 0.12 writes a TOML
1.0-compatible `pyproject.toml` into the sdist and keeps the original
alongside it). `uv.lock` is unchanged.
Part of the same sweep as apify/crawlee-python#2098,
apify/apify-sdk-python#1067, and apify/apify-client-python#980.
*✍️ Drafted by Claude Code*1 parent 63e9f00 commit 831e7a3
1 file changed
Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
67 | 61 | | |
68 | 62 | | |
69 | 63 | | |
| |||
0 commit comments