Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

Commit daeb3fc

Browse files
committed
build: replace hatchling with the uv_build backend
Also migrates the license metadata to PEP 639 (`license` as an SPDX expression plus `license-files`), which is what uv_build reads to ship LICENSE inside the wheel. The resulting wheel is content-identical to the hatchling one.
1 parent 63e9f00 commit daeb3fc

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
[build-system]
2-
requires = ["hatchling"]
3-
build-backend = "hatchling.build"
2+
requires = ["uv_build"]
3+
build-backend = "uv_build"
44

55
[project]
66
name = "apify_shared"
77
version = "2.2.2"
88
description = "Tools and constants shared across Apify projects."
99
authors = [{ name = "Apify Technologies s.r.o.", email = "support@apify.com" }]
10-
license = { file = "LICENSE" }
10+
license = "Apache-2.0"
11+
license-files = ["LICENSE"]
1112
readme = "README.md"
1213
requires-python = ">=3.10"
1314
classifiers = [
1415
"Development Status :: 5 - Production/Stable",
1516
"Environment :: Console",
1617
"Intended Audience :: Developers",
17-
"License :: OSI Approved :: Apache Software License",
1818
"Operating System :: OS Independent",
1919
"Programming Language :: Python :: 3.10",
2020
"Programming Language :: Python :: 3.11",
@@ -55,15 +55,9 @@ dev = [
5555
"ty~=0.0.0",
5656
]
5757

58-
[tool.hatch.build.targets.sdist]
59-
only-include = [
60-
"src/apify_shared",
61-
"CHANGELOG.md",
62-
"CONTRIBUTING.md",
63-
"LICENSE",
64-
"README.md",
65-
"pyproject.toml",
66-
]
58+
# The module, pyproject.toml, README, and LICENSE are included in the sdist by default.
59+
[tool.uv.build-backend]
60+
source-include = ["CHANGELOG.md", "CONTRIBUTING.md"]
6761

6862
[tool.ruff]
6963
line-length = 120

0 commit comments

Comments
 (0)