fix(recognition): allow numpy 2.x to unblock Python 3.13 install#1336
Open
mikahanninen wants to merge 1 commit into
Open
fix(recognition): allow numpy 2.x to unblock Python 3.13 install#1336mikahanninen wants to merge 1 commit into
mikahanninen wants to merge 1 commit into
Conversation
rpaframework-recognition pinned numpy>=1.19.3,<2.0.0, forcing numpy 1.26.4 which has no cp313 wheel. On Python 3.13 pip then attempts a source build that fails without a C toolchain (e.g. VS Build Tools on Windows). opencv-python-headless 4.10.x already supports numpy 2, so drop the upper bound and add the 3.13 classifier. Fixes #1331 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rpaframework-recognitionpinnednumpy >=1.19.3, <2.0.0, which forces numpy 1.26.4 — the last 1.x release. numpy 1.26.4 has no cp313 wheel, so on Python 3.13 pip falls back to a source build that fails without a C toolchain (e.g. VS Build Tools on Windows). This makes the package uninstallable on 3.13.opencv-python-headless(4.10.x, already in our range) supports numpy 2, so dropping the upper bound resolves cleanly.Changes
packages/recognition/pyproject.toml:numpy >=1.19.3, <2.0.0→numpy >=1.19.3; addProgramming Language :: Python :: 3.13classifier.packages/recognition/uv.lock: relocked — numpy now forks to 2.2.6 (py<3.11) / 2.4.6 (py>=3.11), with cp313 wheels present.Verification
uv pip compileon Python 3.13 now resolves:No conflicts.
Fixes #1331
🤖 Generated with Claude Code