Skip to content

Commit 6019f1d

Browse files
committed
migrate setup.cfg to pyproject.toml
1 parent 401de87 commit 6019f1d

File tree

2 files changed

+89
-77
lines changed

2 files changed

+89
-77
lines changed

pyproject.toml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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 = "tom@tomchristie.com"}]
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.12",
33+
"Programming Language :: Python :: 3 :: Only",
34+
"Topic :: Internet :: WWW/HTTP",
35+
]
36+
requires-python = ">=3.6"
37+
dependencies = [
38+
"django>=3.0",
39+
'backports.zoneinfo;python_version<"3.9"',
40+
]
41+
42+
[project.readme]
43+
file = "README.md"
44+
content-type = "text/markdown"
45+
46+
[project.urls]
47+
Homepage = "https://www.django-rest-framework.org/"
48+
Funding = "https://fund.django-rest-framework.org/topics/funding/"
49+
Source = "https://github.com/encode/django-rest-framework"
50+
Changelog = "https://www.django-rest-framework.org/community/release-notes/"
51+
52+
[tool.setuptools]
53+
zip-safe = false
54+
include-package-data = true
55+
license-files = ["LICENSE.md"]
56+
57+
[tool.setuptools.packages.find]
58+
exclude = ["tests*"]
59+
namespaces = false
60+
61+
[tool.pytest.ini_options]
62+
addopts = "--tb=short --strict-markers -ra"
63+
testspath = "tests"
64+
filterwarnings = ["ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF317Warning"]
65+
66+
[tool.flake8]
67+
ignore = "E501,W503,W504"
68+
banned-modules = "json = use from rest_framework.utils import json!"
69+
70+
[tool.isort]
71+
skip = [".tox"]
72+
atomic = true
73+
multi_line_output = 5
74+
extra_standard_library = ["types"]
75+
known_third_party = ["pytest", "_pytest", "django", "pytz", "uritemplate"]
76+
known_first_party = ["rest_framework", "tests"]
77+
78+
[tool.coverage.run]
79+
# NOTE: source is ignored with pytest-cov (but uses the same).
80+
source = ["."]
81+
include = ["rest_framework/*", "tests/*"]
82+
branch = true
83+
84+
[tool.coverage.report]
85+
include = ["rest_framework/*", "tests/*"]
86+
exclude_lines = [
87+
"pragma: no cover",
88+
"raise NotImplementedError",
89+
]

setup.cfg

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,3 @@
1-
[metadata]
2-
license_files = LICENSE.md
3-
name = djangorestframework
4-
version = 3.14.0
5-
author = Tom Christie
6-
author_email = tom@tomchristie.com
7-
license = BSD
8-
description = Web APIs for Django, made easy.
9-
url = https://www.django-rest-framework.org/
10-
long_description = file: README.md
11-
long_description_content_type = text/markdown
12-
classifiers =
13-
Development Status :: 5 - Production/Stable
14-
Environment :: Web Environment
15-
Framework :: Django
16-
Framework :: Django :: 3.0
17-
Framework :: Django :: 3.1
18-
Framework :: Django :: 3.2
19-
Framework :: Django :: 4.0
20-
Framework :: Django :: 4.1
21-
Framework :: Django :: 4.2
22-
Intended Audience :: Developers
23-
License :: OSI Approved :: BSD License
24-
Operating System :: OS Independent
25-
Programming Language :: Python
26-
Programming Language :: Python :: 3
27-
Programming Language :: Python :: 3.6
28-
Programming Language :: Python :: 3.7
29-
Programming Language :: Python :: 3.8
30-
Programming Language :: Python :: 3.9
31-
Programming Language :: Python :: 3.10
32-
Programming Language :: Python :: 3.11
33-
Programming Language :: Python :: 3.12
34-
Programming Language :: Python :: 3 :: Only
35-
Topic :: Internet :: WWW/HTTP
36-
project_urls =
37-
Funding = https://fund.django-rest-framework.org/topics/funding/
38-
Source = https://github.com/encode/django-rest-framework
39-
Changelog = https://www.django-rest-framework.org/community/release-notes/
40-
41-
[options]
42-
packages = find:
43-
zip_safe = False
44-
install_requires =
45-
django>=3.0
46-
backports.zoneinfo;python_version<"3.9"
47-
include_package_data = True
48-
python_requires = >=3.6
49-
50-
[options.packages.find]
51-
exclude = tests*
52-
53-
[tool:pytest]
54-
addopts=--tb=short --strict-markers -ra
55-
testspath = tests
56-
filterwarnings = ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF317Warning
57-
581
[flake8]
592
ignore = E501,W503,W504
603
banned-modules = json = use from rest_framework.utils import json!
61-
62-
[isort]
63-
skip=.tox
64-
atomic=true
65-
multi_line_output=5
66-
extra_standard_library=types
67-
known_third_party=pytest,_pytest,django,pytz,uritemplate
68-
known_first_party=rest_framework,tests
69-
70-
[coverage:run]
71-
# NOTE: source is ignored with pytest-cov (but uses the same).
72-
source = .
73-
include = rest_framework/*,tests/*
74-
branch = 1
75-
76-
[coverage:report]
77-
include = rest_framework/*,tests/*
78-
exclude_lines =
79-
pragma: no cover
80-
raise NotImplementedError

0 commit comments

Comments
 (0)