Skip to content

Commit 3cbbfc6

Browse files
[pyproject.toml] Migrate from test_requires to optional extra 'test'
See https://stackoverflow.com/a/58826468/2519059
1 parent 246232c commit 3cbbfc6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ dependencies = [
4343
"pytest>=4.6"
4444
]
4545

46+
[project.optional-dependencies]
47+
test = [
48+
"pytest",
49+
"pytest-cov",
50+
]
51+
4652
[project.urls]
4753
"Changelog"="https://github.com/pylint-dev/pylint-pytest/blob/master/CHANGELOG.md"
4854
"Documentation"="https://github.com/pylint-dev/pylint-pytest#readme"

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
from setuptools import setup
22

3-
setup(
4-
tests_require=["pytest", "pytest-cov", "pylint"],
5-
)
3+
setup()

0 commit comments

Comments
 (0)