Skip to content

Commit

Permalink
Fix pytest-cython errors by requiring pytest<8
Browse files Browse the repository at this point in the history
pytest-cython does not work with pytest 8.x.
See lgpage/pytest-cython#58.

Fixes #912.
  • Loading branch information
lpsinger committed Mar 4, 2024
1 parent df4bf31 commit d549286
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ dependencies = ["numpy>=1.19", "astropy"]

[project.optional-dependencies]
all = ["matplotlib", "scipy"]
test = ["matplotlib", "scipy", "pytest", "pytest-cython", "pytest-doctestplus", "requests"]
test = [
"pytest<8", # pytest-cython does not work with pytest 8.x. See https://github.com/lgpage/pytest-cython/issues/58
"pytest-cython",
"pytest-doctestplus",
"requests",
"matplotlib",
"scipy",
]

[project.urls]
homepage = "http://github.com/healpy"
Expand Down

0 comments on commit d549286

Please sign in to comment.