diff options
| -rw-r--r-- | MANIFEST.in | 16 | ||||
| -rw-r--r-- | pyproject.toml | 32 |
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*"] |
