Skip to content

Commit f00b47a

Browse files
committed
migrate setup.cfg to pyproject.toml
1 parent f7b5bce commit f00b47a

File tree

3 files changed

+88
-79
lines changed

3 files changed

+88
-79
lines changed

pyproject.toml

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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+
]

setup.cfg

-76
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,3 @@
1-
[metadata]
2-
license_files = LICENSE.md
3-
name = djangorestframework
4-
version = 3.14.0
5-
author = Tom Christie
6-
author_email = [email protected]
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 :: Only
34-
Topic :: Internet :: WWW/HTTP
35-
project_urls =
36-
Funding = https://fund.django-rest-framework.org/topics/funding/
37-
Source = https://github.com/encode/django-rest-framework
38-
Changelog = https://www.django-rest-framework.org/community/release-notes/
39-
40-
[options]
41-
packages = find:
42-
zip_safe = False
43-
install_requires =
44-
django>=3.0
45-
backports.zoneinfo;python_version<"3.9"
46-
include_package_data = True
47-
python_requires = >=3.6
48-
49-
[options.packages.find]
50-
exclude = tests*
51-
52-
[tool:pytest]
53-
addopts=--tb=short --strict-markers -ra
54-
testspath = tests
55-
filterwarnings = ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF317Warning
56-
571
[flake8]
582
ignore = E501,W503,W504
593
banned-modules = json = use from rest_framework.utils import json!
60-
61-
[isort]
62-
skip=.tox
63-
atomic=true
64-
multi_line_output=5
65-
extra_standard_library=types
66-
known_third_party=pytest,_pytest,django,pytz,uritemplate
67-
known_first_party=rest_framework,tests
68-
69-
[coverage:run]
70-
# NOTE: source is ignored with pytest-cov (but uses the same).
71-
source = .
72-
include = rest_framework/*,tests/*
73-
branch = 1
74-
75-
[coverage:report]
76-
include = rest_framework/*,tests/*
77-
exclude_lines =
78-
pragma: no cover
79-
raise NotImplementedError

setup.py

-3
This file was deleted.

0 commit comments

Comments
 (0)