chore(deps): update Python dependencies - #1461
Conversation
Signed-off-by: viiccwen <vicwen@apache.org>
0def0aa to
fcc3683
Compare
rich7420
left a comment
There was a problem hiding this comment.
Line 63 of qumat/amazon_braket_backend.py (circuit.i(i) # type: ignore[unresolved-attribute]) was not updated to # ty: ignore like lines 137/158 in the same file. This PR bumps ty 0.0.16 -> 0.0.65 (transitively via the loosened torch pin), and ty >= 0.0.65 does not honor # type: ignore at all, only # ty: ignore. Verified by running both ty versions against a minimal repro: 0.0.16 passes on the old syntax, 0.0.69 (representative of 0.0.65) fails on it. .pre-commit-config.yaml runs ty check . repo-wide, so line 63 will start failing. Please update it to # ty: ignore[unresolved-attribute].
| "maturin>=1.10.2", | ||
| "patchelf>=0.17.2.4", | ||
| "torch>=2.2,<=2.9.0", | ||
| "torch==2.11.0", |
There was a problem hiding this comment.
torch moved from a version range (>=2.2,<=2.9.0 / >=2.2,<=2.12.0 in qdp-python) to an exact pin torch==2.11.0. Stricter than the rest of the file's range-based convention and not explained in the PR. Consider a range instead, or state the reason for pinning.
fcc3683 to
f669535
Compare
f669535 to
fcc3683
Compare
|
One more note beyond the inline comment above: this branch is now behind I verified the fix itself works once rebased: |
Related Issues
Closes #1460
Supersedes #1444, #1445, #1446, #1452, and #1453 with one compatibility-safe refresh.
Changes
tchfrom 0.22 to 0.24 to match the PyTorch 2.11.0 libtorch ABI.tysuppression comments for the refreshed diagnostic names.Why
The open Python dependency PRs modify overlapping lockfiles. Consolidating them avoids repeated lockfile churn and ensures the root and QDP environments are updated and validated together.
How
Both projects were regenerated with
uv lock --upgradeafter aligning PyTorch 2.11.0 withtch0.24. PyTorch 2.13 is intentionally deferred because no releasedtchversion targets that libtorch ABI; bypassing the version check would not establish binary compatibility. No tests or CI workflows were added.The refreshed
tyrelease renamed or tightened several attribute diagnostics, so the existing targeted suppressions were updated without changing runtime behavior.Checklist
uv lock --checkuv lock --project qdp/qdp-python --checkuv sync --frozen --group devuv sync --project qdp/qdp-python --frozen --group dev721 passed, 156 skippedon each version)qdp/qdp-python/tests(7 passed, 22 skippedon each version)uv run pre-commit run --all-filesLIBTORCH_USE_PYTORCH=1and PyTorch 2.11.0