Skip to content

Commit a7c8f57

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

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-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: 18 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,23 @@ version = { attr = "rest_framework.__version__" }
4445
[tool.setuptools.packages.find]
4546
include = [ "rest_framework*" ]
4647

48+
[tool.setuptools.package-data]
49+
"rest_framework" = [
50+
"static/**/*.js",
51+
"static/**/*.css",
52+
"static/**/*.map",
53+
"static/**/*.png",
54+
"static/**/*.ico",
55+
"static/**/*.eot",
56+
"static/**/*.svg",
57+
"static/**/*.ttf",
58+
"static/**/*.woff",
59+
"static/**/*.woff2",
60+
"templates/**/*.html",
61+
"templates/schema.js",
62+
"locale/**/*.mo",
63+
]
64+
4765
[tool.isort]
4866
skip = [ ".tox" ]
4967
atomic = true

0 commit comments

Comments
 (0)