Skip to content

Commit 52128a8

Browse files
authored
Switch to uv_build build system & cleanup (#2848)
* Switched `hatchling` -> `uv_build` * Removed useless `twine check` from `build-and-check` CI job
1 parent 4f39885 commit 52128a8

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,3 @@ jobs:
182182
run: |
183183
uv build .
184184
uv build ext/
185-
- name: Check package metadata
186-
run: |
187-
uvx twine check --strict dist/*
188-
uvx twine check --strict ext/dist/*

ext/pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
[build-system]
2-
build-backend = "hatchling.build"
3-
requires = ["hatchling"]
4-
51
[project]
62
name = "django-stubs-ext"
73
# NB! For clarity, keep version major.minor.patch in sync with django-stubs.
@@ -43,5 +39,10 @@ Homepage = "https://github.com/typeddjango/django-stubs"
4339
Funding = "https://github.com/sponsors/typeddjango"
4440
"Release notes" = "https://github.com/typeddjango/django-stubs/releases"
4541

46-
[tool.hatch.build]
47-
packages = ["django_stubs_ext"]
42+
[build-system]
43+
requires = ["uv_build>=0.8.22,<0.9.0"]
44+
build-backend = "uv_build"
45+
46+
[tool.uv.build-backend]
47+
module-name = ["django_stubs_ext"]
48+
module-root = ""

pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
[build-system]
2-
requires = ["hatchling"]
3-
build-backend = "hatchling.build"
4-
51
[project]
62
name = "django-stubs"
73
version = "5.2.5"
@@ -80,8 +76,13 @@ Funding = "https://github.com/sponsors/typeddjango"
8076
django-stubs = { workspace = true }
8177
django-stubs-ext = { path = "ext", editable = true }
8278

83-
[tool.hatch.build]
84-
packages = ["django-stubs", "mypy_django_plugin"]
79+
[build-system]
80+
requires = ["uv_build>=0.8.22,<0.9.0"]
81+
build-backend = "uv_build"
82+
83+
[tool.uv.build-backend]
84+
module-name = ["django-stubs", "mypy_django_plugin"]
85+
module-root = ""
8586

8687
[tool.codespell]
8788
ignore-words-list = "aadd,acount,nam,asend"

0 commit comments

Comments
 (0)