Skip to content

Commit cfcc6de

Browse files
committed
chore: Update minimum dependencies, configure pytest
1 parent 93c7fa1 commit cfcc6de

File tree

1 file changed

+33
-5
lines changed

1 file changed

+33
-5
lines changed

pyproject.toml

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ classifiers = [
3131
"Topic :: Scientific/Engineering",
3232
]
3333
dependencies = [
34-
"matplotlib>=3.5",
35-
"numpy>=1.22",
36-
"scipy>=1.8",
34+
"matplotlib>=3.7",
35+
"numpy>=1.24",
36+
"scipy>=1.10",
3737
]
3838

3939
[project.optional-dependencies]
4040
full = [
41-
"networkx>=2.7",
42-
"nibabel>=4.0",
41+
"networkx>=3.0",
42+
"nibabel>=5.0",
4343
]
4444

4545
[project.urls]
@@ -52,6 +52,15 @@ include = ["nitime*"]
5252
[tool.setuptools_scm]
5353
write_to = "nitime/_version.py"
5454

55+
[dependency-groups]
56+
test = [
57+
"pytest>=8",
58+
"pytest-cov>=2.11",
59+
"pytest-doctestplus>=1.5",
60+
"networkx>=3.0",
61+
"nibabel>=5.0",
62+
]
63+
5564
[tool.cibuildwheel]
5665
# Disable PyPy, and no NumPy wheels for 3.8 Linux aarch64 or musl
5766
skip = "pp* cp38-*_aarch64 cp38-musllinux_*"
@@ -69,6 +78,25 @@ test-command = "pytest -rsx --pyargs nitime"
6978
[tool.cibuildwheel.linux]
7079
archs = ["x86_64", "aarch64"]
7180

81+
[tool.pytest.ini_options]
82+
minversion = "8"
83+
testpaths = ["nitime"]
84+
log_cli_level = "INFO"
85+
xfail_strict = true
86+
norecursedirs = [".git", "dist", "build", ".tox", ".venv"]
87+
addopts = [
88+
"-rsx",
89+
"--strict-config",
90+
"--strict-markers",
91+
"--doctest-modules",
92+
# Config pytest-cov
93+
"--cov=nitime",
94+
"--cov-report=xml",
95+
# Comment out above and uncomment below to autofix doctests
96+
# "--doctest-only",
97+
# "--doctest-plus-generate-diff=overwrite",
98+
]
99+
72100
[tool.codespell]
73101
skip = '.git,*.pdf,*.svg,go.sum,*.css'
74102
check-hidden = true

0 commit comments

Comments
 (0)