Skip to content

Commit a301c99

Browse files
authored
Convert optional-dependencies to dependency-groups (#220)
The dev and test dependencies are not meant for external use; as such, they make more sense as dependency groups than as extras. See also: marshmallow-code/webargs#1039
1 parent 2afa6c8 commit a301c99

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ Issues = "https://github.com/marshmallow-code/marshmallow-oneofschema/issues"
2424
Funding = "https://opencollective.com/marshmallow"
2525
Source = "https://github.com/marshmallow-code/marshmallow-oneofschema"
2626

27-
[project.optional-dependencies]
27+
[dependency-groups]
2828
tests = ["pytest"]
29-
dev = ["marshmallow-oneofschema[tests]", "tox", "pre-commit>=3.5,<5.0"]
29+
dev = [{include-group = "tests"}, "tox", "pre-commit>=3.5,<5.0"]
30+
3031

3132
[build-system]
3233
requires = ["flit_core<4"]

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ envlist=
77
py39-lowest
88

99
[testenv]
10-
extras = tests
10+
dependency_groups = tests
1111
deps =
1212
marshmallow3: marshmallow>=3.0.0,<4.0.0
1313
marshmallow4: marshmallow>=4.0.0,<5.0.0

0 commit comments

Comments
 (0)