From 024448d419b48a7ad301ebb36416deca16588809 Mon Sep 17 00:00:00 2001 From: Pravin Kamble Date: Wed, 12 Nov 2025 15:52:04 +0530 Subject: [PATCH] Use pyproject.toml for package data, clean MANIFEST.in --- MANIFEST.in | 5 ----- pyproject.toml | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index f7b975e6f1..3d0ca37454 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,8 +1,3 @@ -include README.md -include LICENSE.md recursive-include tests/ * -recursive-include rest_framework/static *.js *.css *.map *.png *.ico *.eot *.svg *.ttf *.woff *.woff2 -recursive-include rest_framework/templates *.html schema.js -recursive-include rest_framework/locale *.mo global-exclude __pycache__ global-exclude *.py[co] diff --git a/pyproject.toml b/pyproject.toml index c89b6a0024..6f291e1304 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,7 @@ name = "djangorestframework" description = "Web APIs for Django, made easy." readme = "README.md" license = "BSD-3-Clause" +license-files = [ "LICEN[CS]E*" ] authors = [ { name = "Tom Christie", email = "tom@tomchristie.com" } ] requires-python = ">=3.10" classifiers = [ @@ -44,6 +45,13 @@ version = { attr = "rest_framework.__version__" } [tool.setuptools.packages.find] include = [ "rest_framework*" ] +[tool.setuptools.package-data] +"rest_framework" = [ + "templates/**/*", + "static/**/*", + "locale/**/*", +] + [tool.isort] skip = [ ".tox" ] atomic = true