Skip to content

Commit e155cd9

Browse files
committed
Move test-only dependencies into their deidcated extras
1 parent 0588af0 commit e155cd9

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

pyproject.toml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ test = [
3939

4040
# local
4141
"virtualenv>=13.0.0",
42-
"wheel>=0.44.0", # Consistent requirement normalisation in METADATA (see #4547)
42+
"wheel>=0.44.0", # Consistent requirement normalisation in METADATA (see #4547)
4343
"pip>=19.1", # For proper file:// URLs support.
4444
"packaging>=23.2",
4545
"jaraco.envs>=2.2",
@@ -54,27 +54,12 @@ test = [
5454
# for tools/finalize.py
5555
'jaraco.develop >= 7.21; python_version >= "3.9" and sys_platform != "cygwin"',
5656
"pytest-home >= 0.5",
57-
# pin mypy version so a new version doesn't suddenly cause the CI to fail,
58-
# until types-setuptools is removed from typeshed.
59-
# For help with static-typing issues, or mypy update, ping @Avasam
60-
"mypy==1.11.*",
61-
# No Python 3.11 dependencies require tomli, but needed for type-checking since we import it directly
62-
"tomli",
63-
# No Python 3.12 dependencies require importlib_metadata, but needed for type-checking since we import it directly
64-
"importlib_metadata",
6557
"pytest-subprocess",
6658

67-
# require newer pytest-ruff than upstream for pypa/setuptools#4368
68-
# also exclude cygwin for pypa/setuptools#3921
69-
'pytest-ruff >= 0.3.2; sys_platform != "cygwin"',
70-
7159
# workaround for pypa/setuptools#4333
7260
"pyproject-hooks!=1.1",
7361

7462
"jaraco.test",
75-
76-
# workaround for businho/pytest-ruff#28
77-
'pytest-ruff < 0.4; platform_system == "Windows"',
7863
]
7964

8065
doc = [
@@ -118,8 +103,17 @@ core = [
118103
]
119104

120105
check = [
106+
# upstream
121107
"pytest-checkdocs >= 2.4",
122108
"pytest-ruff >= 0.2.1; sys_platform != 'cygwin'",
109+
110+
# local
111+
112+
# require newer pytest-ruff than upstream for pypa/setuptools#4368
113+
# also exclude cygwin for pypa/setuptools#3921
114+
'pytest-ruff >= 0.3.2; sys_platform != "cygwin"',
115+
# workaround for businho/pytest-ruff#28
116+
'pytest-ruff < 0.4; platform_system == "Windows"',
123117
]
124118

125119
cover = [
@@ -131,7 +125,21 @@ enabler = [
131125
]
132126

133127
type = [
128+
# upstream
134129
"pytest-mypy",
130+
131+
# local
132+
133+
# pin mypy version so a new version doesn't suddenly cause the CI to fail,
134+
# until types-setuptools is removed from typeshed.
135+
# For help with static-typing issues, or mypy update, ping @Avasam
136+
"mypy==1.11.*",
137+
# Conditionally imported vendored dependencies.
138+
# They're not needed at runtime for Python version outside the [core] extra,
139+
# but they're still needed for type-checking since we import them directly
140+
"tomli",
141+
"importlib_resources",
142+
"importlib_metadata",
135143
]
136144

137145

0 commit comments

Comments
 (0)