Skip to content

Commit

Permalink
Move test-only dependencies into their deidcated extras
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Aug 21, 2024
1 parent 0588af0 commit 7a26b0d
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test = [

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

# require newer pytest-ruff than upstream for pypa/setuptools#4368
# also exclude cygwin for pypa/setuptools#3921
'pytest-ruff >= 0.3.2; sys_platform != "cygwin"',

# workaround for pypa/setuptools#4333
"pyproject-hooks!=1.1",

"jaraco.test",

# workaround for businho/pytest-ruff#28
'pytest-ruff < 0.4; platform_system == "Windows"',
]

doc = [
Expand Down Expand Up @@ -118,8 +103,17 @@ core = [
]

check = [
# upstream
"pytest-checkdocs >= 2.4",
"pytest-ruff >= 0.2.1; sys_platform != 'cygwin'",

# local

# require newer pytest-ruff than upstream for pypa/setuptools#4368
# also exclude cygwin for pypa/setuptools#3921
'pytest-ruff >= 0.3.2; sys_platform != "cygwin"',
# workaround for businho/pytest-ruff#28
'pytest-ruff < 0.4; platform_system == "Windows"',
]

cover = [
Expand All @@ -131,7 +125,19 @@ enabler = [
]

type = [
# upstream
"pytest-mypy",

# local

# pin mypy version so a new version doesn't suddenly cause the CI to fail,
# until types-setuptools is removed from typeshed.
# For help with static-typing issues, or mypy update, ping @Avasam
"mypy==1.11.*",
# No Python 3.11 dependencies require tomli, but needed for type-checking since we import it directly
"tomli",
# No Python 3.12 dependencies require importlib_metadata, but needed for type-checking since we import it directly
"importlib_metadata",
]


Expand Down

0 comments on commit 7a26b0d

Please sign in to comment.