diff options
| author | Charles Roelli <charles@aurox.ch> | 2026-06-15 08:48:51 +0000 |
|---|---|---|
| committer | Charles Roelli <charles@aurox.ch> | 2026-06-18 13:05:45 +0200 |
| commit | 73e58a260d8ab3a52cc4e42ac95584f636feb7ff (patch) | |
| tree | a0b2067dbc954365eabeae131e8f79d2fabdc4c1 /pyproject.toml | |
| parent | cf889381ffec9220ca9d7a8eccef0e06b903fa38 (diff) | |
Fixed #37159 -- Implemented reproducible artifact builds.devmain
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 32 |
1 files changed, 24 insertions, 8 deletions
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*"] |
