diff --git a/MANIFEST.in b/MANIFEST.in index f7b975e6f..3d0ca3745 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 c89b6a002..37fef3bd2 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 = [ "LICENSE.md" ] 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/**/*.mo", +] + [tool.isort] skip = [ ".tox" ] atomic = true