From ea0571caa7864676928ea8c59a0afba566545464 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sat, 4 Nov 2023 13:06:15 +0100 Subject: [PATCH] [pyproject.toml] Migrate from test_requires to optional extra 'test' See https://stackoverflow.com/a/58826468/2519059 --- pyproject.toml | 6 ++++++ setup.py | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6621305..1e04d14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,6 +43,12 @@ dependencies = [ "pytest>=4.6" ] +[project.options.extras_require] +test = [ + "pytest", + "pytest-cov", +] + [project.urls] "Changelog"="https://github.com/pylint-dev/pylint-pytest/blob/master/CHANGELOG.md" "Documentation"="https://github.com/pylint-dev/pylint-pytest#readme" diff --git a/setup.py b/setup.py index d393410..6068493 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,3 @@ from setuptools import setup -setup( - tests_require=["pytest", "pytest-cov", "pylint"], -) +setup()