Skip to content

Commit 5e153aa

Browse files
committed
Revert "Migrated test dependencies to dependency groups"
No version of pip available on Python 3.8 supports dependency groups.
1 parent 5000bfe commit 5e153aa

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ jobs:
4646
allow-prereleases: true
4747
cache: pip
4848
cache-dependency-path: pyproject.toml
49-
- name: Ensure pip >= v25.1
50-
run: python -m pip install "pip >= 25.1"
51-
- name: Install the project and its dependencies
52-
run: pip install --group test -e .
49+
- name: Install dependencies
50+
run: pip install -e .[test] coverage
5351
- name: Test with pytest
5452
run: coverage run -m pytest
5553
- name: Upload Coverage

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ Changelog = "https://github.com/agronholm/exceptiongroup/blob/main/CHANGES.rst"
2727
"Source code" = "https://github.com/agronholm/exceptiongroup"
2828
"Issue Tracker" = "https://github.com/agronholm/exceptiongroup/issues"
2929

30-
[dependency-groups]
30+
[project.optional-dependencies]
3131
test = [
32-
"coverage",
3332
"pytest >= 6"
3433
]
3534

@@ -97,7 +96,7 @@ requires = ["tox >= 4.22"]
9796
[tool.tox.env_run_base]
9897
commands = [["python", "-m", "pytest", { replace = "posargs", extend = true }]]
9998
package = "editable"
100-
dependency_groups = ["test"]
99+
extras = ["test"]
101100

102101
[tool.tox.env.typing]
103102
commands = [

0 commit comments

Comments
 (0)