django-rest-framework/pyproject.toml

96 lines
2.9 KiB
TOML
Raw Normal View History

2023-07-27 16:56:07 +03:00
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[project]
name = "djangorestframework"
2023-10-06 12:43:37 +03:00
readme = "README.md"
2023-07-27 16:56:07 +03:00
authors = [{name = "Tom Christie", email = "tom@tomchristie.com"}]
license = {text = "BSD"}
description = "Web APIs for Django, made easy."
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
2023-07-27 16:56:07 +03:00
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
2023-07-27 16:56:07 +03:00
"Programming Language :: Python :: 3 :: Only",
"Topic :: Internet :: WWW/HTTP",
]
requires-python = ">=3.8"
2023-07-27 16:56:07 +03:00
dependencies = [
"django>=4.2",
2023-07-27 16:56:07 +03:00
'backports.zoneinfo;python_version<"3.9"',
]
dynamic = ["version"]
[tool.setuptools.dynamic]
version = {attr = "rest_framework.__version__"}
2023-07-27 16:56:07 +03:00
[project.urls]
Homepage = "https://www.django-rest-framework.org/"
Funding = "https://fund.django-rest-framework.org/topics/funding/"
Source = "https://github.com/encode/django-rest-framework"
Changelog = "https://www.django-rest-framework.org/community/release-notes/"
[tool.setuptools]
zip-safe = false
include-package-data = true
license-files = ["LICENSE.md"]
2023-07-27 16:56:07 +03:00
[tool.setuptools.packages.find]
namespaces = false
[tool.pytest.ini_options]
addopts = "--tb=short --strict-markers -ra"
testpaths = ["tests"]
filterwarnings = ["ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF317Warning"]
[tool.flake8]
ignore = "E501,W503,W504"
banned-modules = "json = use from rest_framework.utils import json!"
[tool.isort]
skip = [".tox"]
atomic = true
multi_line_output = 5
extra_standard_library = ["types"]
known_third_party = ["pytest", "_pytest", "django", "pytz", "uritemplate"]
known_first_party = ["rest_framework", "tests"]
[tool.coverage.run]
# NOTE: source is ignored with pytest-cov (but uses the same).
source = ["."]
include = ["rest_framework/*", "tests/*"]
branch = true
[tool.coverage.report]
include = ["rest_framework/*", "tests/*"]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
]
[tool.codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = "*/kickstarter-announcement.md,*.js,*.map,*.po"
ignore-words-list = "fo,malcom,ser"
# (*) Please direct queries to the discussion group, rather than to me directly
# Doing so helps ensure your question is helpful to other users.
# Queries directly to my email are likely to receive a canned response.
#
# Many thanks for your understanding.