Skip to content

Commit

Permalink
Unpin numpy
Browse files Browse the repository at this point in the history
See also https://iscinumpy.dev/post/bound-version-constraints/

The workaround here is unnecessary (discussed in #43). Since numpy declares python_requires, pip's resolver will automatically discard newer numpy solutions when installing on Python 3.8
  • Loading branch information
hauntsaninja authored Jul 23, 2024
1 parent cbc2cb8 commit 2e6742c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ packages = [{include = "magika"}]
python = "^3.8,<3.13"
click = "^8.1.3"
onnxruntime = "^1.17.0"
numpy = [
{version = "^1.24", python = ">=3.8,<3.9"},
{version = "^1.26", python = ">=3.9,<3.13"}
]
numpy = ">=1.24"
python-dotenv = "^1.0.1"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 2e6742c

Please sign in to comment.