Skip to content

Commit 6c1499c

Browse files
feat(uv): Switch to uv_build build backend. (#1290)
This has become the `uv` default in `0.8.0`. See https://github.com/astral-sh/uv/releases/tag/0.8.0
1 parent f4ac5ea commit 6c1499c

File tree

2 files changed

+12
-26
lines changed

2 files changed

+12
-26
lines changed

end_to_end_tests/metadata_snapshots/uv.pyproject.toml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,16 @@ dependencies = [
1111
"python-dateutil>=2.8.0,<3",
1212
]
1313

14-
[tool.hatch.build.targets.sdist]
15-
include = [
16-
"test_3_1_features_client",
14+
[tool.uv.build-backend]
15+
module-name = "test_3_1_features_client"
16+
module-root = ""
17+
data = [
1718
"CHANGELOG.md",
18-
"test_3_1_features_client/py.typed",
19-
]
20-
21-
[tool.hatch.build.targets.wheel]
22-
include = [
23-
"test_3_1_features_client",
24-
"CHANGELOG.md",
25-
"test_3_1_features_client/py.typed",
2619
]
2720

2821
[build-system]
29-
requires = ["hatchling"]
30-
build-backend = "hatchling.build"
22+
requires = ["uv_build>=0.8.0,<0.9.0"]
23+
build-backend = "uv_build"
3124

3225
[tool.ruff]
3326
line-length = 120

openapi_python_client/templates/pyproject_uv.toml.jinja

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,13 @@ dependencies = [
1111
"python-dateutil>=2.8.0,<3",
1212
]
1313
14-
[tool.hatch.build.targets.sdist]
15-
include = [
16-
"{{ package_name }}",
14+
[tool.uv.build-backend]
15+
module-name = "{{ package_name }}"
16+
module-root = ""
17+
data = [
1718
"CHANGELOG.md",
18-
"{{ package_name }}/py.typed",
19-
]
20-
21-
[tool.hatch.build.targets.wheel]
22-
include = [
23-
"{{ package_name }}",
24-
"CHANGELOG.md",
25-
"{{ package_name }}/py.typed",
2619
]
2720
2821
[build-system]
29-
requires = ["hatchling"]
30-
build-backend = "hatchling.build"
22+
requires = ["uv_build>=0.8.0,<0.9.0"]
23+
build-backend = "uv_build"

0 commit comments

Comments
 (0)