Skip to content

Commit 024448d

Browse files
committed
Use pyproject.toml for package data, clean MANIFEST.in
1 parent 365d409 commit 024448d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

MANIFEST.in

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
include README.md
2-
include LICENSE.md
31
recursive-include tests/ *
4-
recursive-include rest_framework/static *.js *.css *.map *.png *.ico *.eot *.svg *.ttf *.woff *.woff2
5-
recursive-include rest_framework/templates *.html schema.js
6-
recursive-include rest_framework/locale *.mo
72
global-exclude __pycache__
83
global-exclude *.py[co]

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ name = "djangorestframework"
77
description = "Web APIs for Django, made easy."
88
readme = "README.md"
99
license = "BSD-3-Clause"
10+
license-files = [ "LICEN[CS]E*" ]
1011
authors = [ { name = "Tom Christie", email = "[email protected]" } ]
1112
requires-python = ">=3.10"
1213
classifiers = [
@@ -44,6 +45,13 @@ version = { attr = "rest_framework.__version__" }
4445
[tool.setuptools.packages.find]
4546
include = [ "rest_framework*" ]
4647

48+
[tool.setuptools.package-data]
49+
"rest_framework" = [
50+
"templates/**/*",
51+
"static/**/*",
52+
"locale/**/*",
53+
]
54+
4755
[tool.isort]
4856
skip = [ ".tox" ]
4957
atomic = true

0 commit comments

Comments
 (0)