|
| 1 | +[build-system] |
| 2 | +build-backend = "setuptools.build_meta" |
| 3 | +requires = [ "setuptools>=77.0.3" ] |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "djangorestframework" |
| 7 | +description = "Web APIs for Django, made easy." |
| 8 | +readme = "README.md" |
| 9 | +license = "BSD-3-Clause" |
| 10 | +authors = [ { name = "Tom Christie", email = "tom@tomchristie.com" } ] |
| 11 | +requires-python = ">=3.9" |
| 12 | +classifiers = [ |
| 13 | + "Development Status :: 5 - Production/Stable", |
| 14 | + "Environment :: Web Environment", |
| 15 | + "Framework :: Django", |
| 16 | + "Framework :: Django :: 4.2", |
| 17 | + "Framework :: Django :: 5.0", |
| 18 | + "Framework :: Django :: 5.1", |
| 19 | + "Framework :: Django :: 5.2", |
| 20 | + "Intended Audience :: Developers", |
| 21 | + "Operating System :: OS Independent", |
| 22 | + "Programming Language :: Python", |
| 23 | + "Programming Language :: Python :: 3 :: Only", |
| 24 | + "Programming Language :: Python :: 3.9", |
| 25 | + "Programming Language :: Python :: 3.10", |
| 26 | + "Programming Language :: Python :: 3.11", |
| 27 | + "Programming Language :: Python :: 3.12", |
| 28 | + "Programming Language :: Python :: 3.13", |
| 29 | + "Topic :: Internet :: WWW/HTTP", |
| 30 | +] |
| 31 | +dynamic = [ "version" ] |
| 32 | + |
| 33 | +dependencies = [ "django>=4.2" ] |
| 34 | +urls.Changelog = "https://www.django-rest-framework.org/community/release-notes/" |
| 35 | +urls.Funding = "https://fund.django-rest-framework.org/topics/funding/" |
| 36 | +urls.Homepage = "https://www.django-rest-framework.org" |
| 37 | +urls.Source = "https://github.com/encode/django-rest-framework" |
| 38 | + |
| 39 | +[tool.setuptools] |
| 40 | + |
| 41 | +[tool.setuptools.dynamic] |
| 42 | +version = { attr = "rest_framework.__version__" } |
| 43 | + |
| 44 | +[tool.setuptools.packages.find] |
| 45 | +include = [ "rest_framework*" ] |
| 46 | + |
| 47 | +[tool.isort] |
| 48 | +skip = [ ".tox" ] |
| 49 | +atomic = true |
| 50 | +multi_line_output = 5 |
| 51 | +extra_standard_library = [ "types" ] |
| 52 | +known_third_party = [ "pytest", "_pytest", "django", "pytz", "uritemplate" ] |
| 53 | +known_first_party = [ "rest_framework", "tests" ] |
| 54 | + |
| 55 | +[tool.codespell] |
| 56 | +# Ref: https://github.com/codespell-project/codespell#using-a-config-file |
| 57 | +skip = "*/kickstarter-announcement.md,*.js,*.map,*.po" |
| 58 | +ignore-words-list = "fo,malcom,ser" |
| 59 | + |
| 60 | +[tool.pytest.ini_options] |
| 61 | +addopts = "--tb=short --strict-markers -ra" |
| 62 | +testpaths = [ "tests" ] |
| 63 | +filterwarnings = [ "ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF317Warning" ] |
| 64 | + |
| 65 | +[tool.coverage.run] |
| 66 | +# NOTE: source is ignored with pytest-cov (but uses the same). |
| 67 | +source = [ "." ] |
| 68 | +include = [ "rest_framework/*", "tests/*" ] |
| 69 | +branch = true |
| 70 | + |
| 71 | +[tool.coverage.report] |
| 72 | +include = [ "rest_framework/*", "tests/*" ] |
| 73 | +exclude_lines = [ |
| 74 | + "pragma: no cover", |
| 75 | + "raise NotImplementedError", |
| 76 | +] |
0 commit comments