Skip to content

Commit 404d31a

Browse files
Merge pull request #11930 from Pierre-Sassoulas/setup.cfg-to-pyproject.toml
Migration from ``setup.cfg`` to ``pyproject.toml``
2 parents 0d91539 + c76ea72 commit 404d31a

File tree

3 files changed

+73
-73
lines changed

3 files changed

+73
-73
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ repos:
2121
hooks:
2222
- id: blacken-docs
2323
additional_dependencies: [black==24.1.1]
24-
- repo: https://github.com/asottile/setup-cfg-fmt
25-
rev: v2.5.0
26-
hooks:
27-
- id: setup-cfg-fmt
28-
args: ["--max-py-version=3.12", "--include-version-classifiers"]
2924
- repo: https://github.com/pre-commit/pygrep-hooks
3025
rev: v1.10.0
3126
hooks:

pyproject.toml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,83 @@
1+
[project]
2+
name = "pytest"
3+
dynamic = ["version"]
4+
description = "pytest: simple powerful testing with Python"
5+
authors = [
6+
{name = "Holger Krekel"},
7+
{name = "Bruno Oliveira"},
8+
{name = "Ronny Pfannschmidt"},
9+
{name = "Floris Bruynooghe"},
10+
{name = "Brianna Laugher"},
11+
{name = "Florian Bruhin"},
12+
{name = "Others (See AUTHORS)"},
13+
]
14+
readme = "README.rst"
15+
license = {text = "MIT"}
16+
keywords = ["test", "unittest"]
17+
classifiers = [
18+
"Development Status :: 6 - Mature",
19+
"Intended Audience :: Developers",
20+
"License :: OSI Approved :: MIT License",
21+
"Operating System :: MacOS",
22+
"Operating System :: Microsoft :: Windows",
23+
"Operating System :: Unix",
24+
"Operating System :: POSIX",
25+
"Programming Language :: Python :: 3",
26+
"Programming Language :: Python :: 3 :: Only",
27+
"Programming Language :: Python :: 3.8",
28+
"Programming Language :: Python :: 3.9",
29+
"Programming Language :: Python :: 3.10",
30+
"Programming Language :: Python :: 3.11",
31+
"Programming Language :: Python :: 3.12",
32+
"Topic :: Software Development :: Libraries",
33+
"Topic :: Software Development :: Testing",
34+
"Topic :: Utilities",
35+
]
36+
37+
dependencies = [
38+
"colorama;sys_platform=='win32'",
39+
"exceptiongroup>=1.0.0rc8;python_version<'3.11'",
40+
"iniconfig",
41+
"packaging",
42+
"pluggy>=1.4.0,<2.0",
43+
"tomli>=1.0.0;python_version<'3.11'",
44+
]
45+
requires-python = ">=3.8"
46+
47+
[project.optional-dependencies]
48+
testing = [
49+
"argcomplete",
50+
"attrs>=19.2.0",
51+
"hypothesis>=3.56",
52+
"mock",
53+
"pygments>=2.7.2",
54+
"requests",
55+
"setuptools",
56+
"xmlschema",
57+
]
58+
59+
[project.scripts]
60+
"py.test" = "pytest:console_main"
61+
pytest = "pytest:console_main"
62+
63+
[project.urls]
64+
Homepage = "https://docs.pytest.org/en/latest/"
65+
Changelog = "https://docs.pytest.org/en/stable/changelog.html"
66+
Twitter = "https://twitter.com/pytestdotorg"
67+
Source = "https://github.com/pytest-dev/pytest"
68+
Tracker = "https://github.com/pytest-dev/pytest/issues"
69+
170
[build-system]
271
requires = [
372
"setuptools>=45.0",
473
"setuptools-scm[toml]>=6.2.3",
574
]
675
build-backend = "setuptools.build_meta"
776

77+
[tool.setuptools.package-data]
78+
"_pytest" = ["py.typed"]
79+
"pytest" = ["py.typed"]
80+
881
[tool.setuptools_scm]
982
write_to = "src/_pytest/_version.py"
1083

setup.cfg

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)