summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Roelli <charles@aurox.ch>2026-06-15 08:48:51 +0000
committerCharles Roelli <charles@aurox.ch>2026-06-18 13:05:45 +0200
commit73e58a260d8ab3a52cc4e42ac95584f636feb7ff (patch)
treea0b2067dbc954365eabeae131e8f79d2fabdc4c1
parentcf889381ffec9220ca9d7a8eccef0e06b903fa38 (diff)
Fixed #37159 -- Implemented reproducible artifact builds.devmain
-rw-r--r--MANIFEST.in16
-rw-r--r--pyproject.toml32
2 files changed, 24 insertions, 24 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
deleted file mode 100644
index 1174cdb3dc..0000000000
--- a/MANIFEST.in
+++ /dev/null
@@ -1,16 +0,0 @@
-include AUTHORS
-include Gruntfile.js
-include INSTALL
-include LICENSE
-include LICENSE.python
-include MANIFEST.in
-include package.json
-include tox.ini
-include *.rst
-graft django
-graft docs
-graft extras
-graft js_tests
-graft tests
-global-exclude *.py[co]
-prune scripts
diff --git a/pyproject.toml b/pyproject.toml
index c64cd28dab..c89330c113 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[build-system]
-requires = ["setuptools>=77.0.3"]
-build-backend = "setuptools.build_meta"
+requires = ["hatchling==1.30.1"]
+build-backend = "hatchling.build"
[project]
name = "Django"
@@ -56,13 +56,29 @@ Tracker = "https://code.djangoproject.com/"
target-version = ["py312"]
force-exclude = "tests/test_runner_apps/tagged/tests_syntax_error.py"
+[tool.hatch.build.targets.sdist]
+include = [
+ "CONTRIBUTING.rst",
+ "Gruntfile.js",
+ "INSTALL",
+ "package.json",
+ "tox.ini",
+ "django",
+ "docs",
+ "extras",
+ "js_tests",
+ "tests",
+]
+exclude = [
+ "scripts",
+]
+
+[tool.hatch.version]
+source = "code"
+path = "django/__init__.py"
+search-paths = ["."]
+
[tool.isort]
profile = "black"
default_section = "THIRDPARTY"
known_first_party = "django"
-
-[tool.setuptools.dynamic]
-version = {attr = "django.__version__"}
-
-[tool.setuptools.packages.find]
-include = ["django*"]