[pyproject.toml] Translate dynamic option to pyproject.toml

This commit is contained in:
Pierre Sassoulas
2024-02-05 14:20:10 +01:00
parent c3583dee0b
commit 411c2cbf9d
2 changed files with 27 additions and 32 deletions

View File

@@ -1,13 +1,6 @@
[project]
name = "pytest"
dynamic = [
"version",
"optional-dependencies",
"dependencies",
"scripts",
"requires-python"
]
dynamic = ["version"]
description = "pytest: simple powerful testing with Python"
authors = [
{name = "Holger Krekel"},
@@ -41,6 +34,32 @@ classifiers = [
"Topic :: Utilities",
]
dependencies = [
"colorama;sys_platform=='win32'",
"exceptiongroup>=1.0.0rc8;python_version<'3.11'",
"iniconfig",
"packaging",
"pluggy>=1.4.0,<2.0",
"tomli>=1.0.0;python_version<'3.11'",
]
requires-python = ">=3.8"
[project.optional-dependencies]
testing = [
"argcomplete",
"attrs>=19.2.0",
"hypothesis>=3.56",
"mock",
"pygments>=2.7.2",
"requests",
"setuptools",
"xmlschema",
]
[project.scripts]
"py.test" = "pytest:console_main"
pytest = "pytest:console_main"
[project.urls]
Homepage = "https://docs.pytest.org/en/latest/"
Changelog = "https://docs.pytest.org/en/stable/changelog.html"