mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-12-04 16:54:02 +03:00
Use pyproject.toml for package data, clean MANIFEST.in
This commit is contained in:
parent
1c4af77c3b
commit
02b2841dff
|
|
@ -1,8 +1,3 @@
|
||||||
include README.md
|
|
||||||
include LICENSE.md
|
|
||||||
recursive-include tests/ *
|
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 __pycache__
|
||||||
global-exclude *.py[co]
|
global-exclude *.py[co]
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ name = "djangorestframework"
|
||||||
description = "Web APIs for Django, made easy."
|
description = "Web APIs for Django, made easy."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = "BSD-3-Clause"
|
license = "BSD-3-Clause"
|
||||||
|
license-files = [ "LICENSE.md" ]
|
||||||
authors = [ { name = "Tom Christie", email = "tom@tomchristie.com" } ]
|
authors = [ { name = "Tom Christie", email = "tom@tomchristie.com" } ]
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
classifiers = [
|
classifiers = [
|
||||||
|
|
@ -44,6 +45,13 @@ version = { attr = "rest_framework.__version__" }
|
||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.packages.find]
|
||||||
include = [ "rest_framework*" ]
|
include = [ "rest_framework*" ]
|
||||||
|
|
||||||
|
[tool.setuptools.package-data]
|
||||||
|
"rest_framework" = [
|
||||||
|
"templates/**/*",
|
||||||
|
"static/**/*",
|
||||||
|
"locale/**/*.mo",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
skip = [ ".tox" ]
|
skip = [ ".tox" ]
|
||||||
atomic = true
|
atomic = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user