Skip to content

Commit 411c2cb

Browse files
[pyproject.toml] Translate dynamic option to pyproject.toml
1 parent c3583de commit 411c2cb

File tree

2 files changed

+27
-32
lines changed

2 files changed

+27
-32
lines changed

pyproject.toml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
[project]
2-
32
name = "pytest"
4-
dynamic = [
5-
"version",
6-
"optional-dependencies",
7-
"dependencies",
8-
"scripts",
9-
"requires-python"
10-
]
3+
dynamic = ["version"]
114
description = "pytest: simple powerful testing with Python"
125
authors = [
136
{name = "Holger Krekel"},
@@ -41,6 +34,32 @@ classifiers = [
4134
"Topic :: Utilities",
4235
]
4336

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+
4463
[project.urls]
4564
Homepage = "https://docs.pytest.org/en/latest/"
4665
Changelog = "https://docs.pytest.org/en/stable/changelog.html"

setup.cfg

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,10 @@
11
[options]
2-
install_requires =
3-
iniconfig
4-
packaging
5-
pluggy>=1.4.0,<2.0
6-
colorama;sys_platform=="win32"
7-
exceptiongroup>=1.0.0rc8;python_version<"3.11"
8-
tomli>=1.0.0;python_version<"3.11"
9-
python_requires = >=3.8
102
package_dir =
113
=src
124
setup_requires =
135
setuptools
146
setuptools-scm>=6.0
157

16-
[options.entry_points]
17-
console_scripts =
18-
pytest=pytest:console_main
19-
py.test=pytest:console_main
20-
21-
[options.extras_require]
22-
testing =
23-
argcomplete
24-
attrs>=19.2.0
25-
hypothesis>=3.56
26-
mock
27-
pygments>=2.7.2
28-
requests
29-
setuptools
30-
xmlschema
31-
328
[options.package_data]
339
_pytest = py.typed
3410
pytest = py.typed

0 commit comments

Comments
 (0)