|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=61.2"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "djangorestframework" |
| 7 | +version = "3.14.0" |
| 8 | +authors = [{ name = "Tom Christie", email = "[email protected]"}] |
| 9 | +license = {text = "BSD"} |
| 10 | +description = "Web APIs for Django, made easy." |
| 11 | +classifiers = [ |
| 12 | + "Development Status :: 5 - Production/Stable", |
| 13 | + "Environment :: Web Environment", |
| 14 | + "Framework :: Django", |
| 15 | + "Framework :: Django :: 3.0", |
| 16 | + "Framework :: Django :: 3.1", |
| 17 | + "Framework :: Django :: 3.2", |
| 18 | + "Framework :: Django :: 4.0", |
| 19 | + "Framework :: Django :: 4.1", |
| 20 | + "Framework :: Django :: 4.2", |
| 21 | + "Intended Audience :: Developers", |
| 22 | + "License :: OSI Approved :: BSD License", |
| 23 | + "Operating System :: OS Independent", |
| 24 | + "Programming Language :: Python", |
| 25 | + "Programming Language :: Python :: 3", |
| 26 | + "Programming Language :: Python :: 3.6", |
| 27 | + "Programming Language :: Python :: 3.7", |
| 28 | + "Programming Language :: Python :: 3.8", |
| 29 | + "Programming Language :: Python :: 3.9", |
| 30 | + "Programming Language :: Python :: 3.10", |
| 31 | + "Programming Language :: Python :: 3.11", |
| 32 | + "Programming Language :: Python :: 3 :: Only", |
| 33 | + "Topic :: Internet :: WWW/HTTP", |
| 34 | +] |
| 35 | +requires-python = ">=3.6" |
| 36 | +dependencies = [ |
| 37 | + "django>=3.0", |
| 38 | + 'backports.zoneinfo;python_version<"3.9"', |
| 39 | +] |
| 40 | + |
| 41 | +[project.readme] |
| 42 | +file = "README.md" |
| 43 | +content-type = "text/markdown" |
| 44 | + |
| 45 | +[project.urls] |
| 46 | +Homepage = "https://www.django-rest-framework.org/" |
| 47 | +Funding = "https://fund.django-rest-framework.org/topics/funding/" |
| 48 | +Source = "https://github.com/encode/django-rest-framework" |
| 49 | +Changelog = "https://www.django-rest-framework.org/community/release-notes/" |
| 50 | + |
| 51 | +[tool.setuptools] |
| 52 | +zip-safe = false |
| 53 | +include-package-data = true |
| 54 | +license-files = ["LICENSE.md"] |
| 55 | + |
| 56 | +[tool.setuptools.packages.find] |
| 57 | +exclude = ["tests*"] |
| 58 | +namespaces = false |
| 59 | + |
| 60 | +[tool.pytest.ini_options] |
| 61 | +addopts = "--tb=short --strict-markers -ra" |
| 62 | +testspath = "tests" |
| 63 | +filterwarnings = ["ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF317Warning"] |
| 64 | + |
| 65 | +[tool.flake8] |
| 66 | +ignore = "E501,W503,W504" |
| 67 | +banned-modules = "json = use from rest_framework.utils import json!" |
| 68 | + |
| 69 | +[tool.isort] |
| 70 | +skip = [".tox"] |
| 71 | +atomic = true |
| 72 | +multi_line_output = 5 |
| 73 | +extra_standard_library = ["types"] |
| 74 | +known_third_party = ["pytest", "_pytest", "django", "pytz", "uritemplate"] |
| 75 | +known_first_party = ["rest_framework", "tests"] |
| 76 | + |
| 77 | +[tool.coverage.run] |
| 78 | +# NOTE: source is ignored with pytest-cov (but uses the same). |
| 79 | +source = ["."] |
| 80 | +include = ["rest_framework/*", "tests/*"] |
| 81 | +branch = true |
| 82 | + |
| 83 | +[tool.coverage.report] |
| 84 | +include = ["rest_framework/*", "tests/*"] |
| 85 | +exclude_lines = [ |
| 86 | + "pragma: no cover", |
| 87 | + "raise NotImplementedError", |
| 88 | +] |
0 commit comments