Skip to content

Commit 631817a

Browse files
committed
Limit scipy version to avoid errors
1 parent 2bb5023 commit 631817a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lint.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ fix-ruff:
3030

3131
.PHONY: pip-extra-reqs
3232
pip-extra-reqs:
33-
pip-extra-reqs --skip-incompatible --requirements-file=<(pdm export --pyproject) src/
33+
# Ignore scipy as it is defined to constrain a version.
34+
pip-extra-reqs --ignore-requirement=scipy --skip-incompatible --requirements-file=<(pdm export --pyproject) src/
3435

3536
.PHONY: pip-missing-reqs
3637
pip-missing-reqs:

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,10 @@ dependencies = [
313313
"pydantic-settings",
314314
"requests",
315315
"requests-mock",
316+
# We pin to an old version of scipy as brisque does not support newer versions.
317+
# `brisque` appears to be unmaintained, so we may need to switch to an
318+
# alternative, such as `piq`, which currently does not support Python 3.12.
319+
"scipy<1.12.0",
316320
'tzdata; sys_platform == "win32"',
317321
"vws-auth-tools",
318322
]

0 commit comments

Comments
 (0)