Skip to content

Commit

Permalink
Merge pull request #926 from google/py-fix922
Browse files Browse the repository at this point in the history
python: add back constrains for onnxruntime
  • Loading branch information
reyammer authored Jan 24, 2025
2 parents 40170e1 + a622282 commit 12a6a91
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 11 deletions.
5 changes: 5 additions & 0 deletions python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ Note that for version number starting with a `0`, i.e., `0.x.y`, a bump of `x`
should be considered as a major (and thus potentially breaking) change. See
semver guidelines for more details about this.

## [Unreleased]

- Add version constraint for `onnxruntime` to deal with known `uv` limitation (https://github.com/google/magika/issues/922).


## [0.6.1-rc0] - 2025-01-23

- Upgrade model from `standard_v2_1` to `standard_v3_0`. This should result in a 3x faster inference speed, with the same overall accuracy. This new model should also be ~20% faster than `standard_v1`. More details in the [models' changelog notes](../assets/models/CHANGELOG.md).
Expand Down
3 changes: 2 additions & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ dynamic = ["version"]

dependencies = [
"click>=8.1.7",
"onnxruntime>=1.17.0",
"onnxruntime>=1.17.0 ; python_version > '3.9'",
"onnxruntime>=1.17.0, <1.20.0 ; python_version <= '3.9'",
"numpy>=1.24; python_version < '3.12'",
"numpy>=1.26; python_version >= '3.12' and python_version < '3.13'",
"numpy>=2.1.0; python_version >= '3.13'",
Expand Down
68 changes: 58 additions & 10 deletions python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 12a6a91

Please sign in to comment.