Skip to content

Commit 7a80216

Browse files
committed
Replace 'tests' extra with 'test' dependency group (PEP 753)
1 parent 261a823 commit 7a80216

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

pyproject.toml

+8-6
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ dependencies = [
4343
"python-slugify",
4444
"termcolor>=2.1",
4545
]
46-
optional-dependencies.tests = [
47-
"freezegun",
48-
"pytest",
49-
"pytest-cov",
50-
"respx>=0.11",
51-
]
5246
urls.Changelog = "https://github.com/hugovk/norwegianblue/releases"
5347
urls.Homepage = "https://github.com/hugovk/norwegianblue"
5448
urls.Source = "https://github.com/hugovk/norwegianblue"
@@ -103,3 +97,11 @@ filterwarnings = [
10397
"ignore:sys.monitoring isn't available, using default core:coverage.exceptions.CoverageWarning",
10498
]
10599
testpaths = [ "tests" ]
100+
101+
[dependency_groups]
102+
test = [
103+
"freezegun",
104+
"pytest",
105+
"pytest-cov",
106+
"respx>=0.11",
107+
]

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ env_list =
99
py{py3, 313, 312, 311, 310, 39}
1010

1111
[testenv]
12-
extras =
13-
tests
1412
set_env =
1513
COVERAGE_CORE = sysmon
1614
commands =
@@ -21,6 +19,8 @@ commands =
2119
--cov-report term \
2220
--cov-report xml \
2321
{posargs}
22+
dependency_groups =
23+
test
2424

2525
[testenv:cog]
2626
skip_install = true

0 commit comments

Comments
 (0)