Repository navigation
feat: Add Python 3.13 support - #7246
Open
krushna-sahu1 wants to merge 1 commit into
Open
krushna-sahu1 wants to merge 1 commit into
krushna-sahu1 wants to merge 1 commit into
Conversation
Declare and test Python 3.11, 3.12 and 3.13. - Add hashed py3.13 requirement locks (ci, minimal, default) and add 3.13 to PYTHON_VERSIONS and the lock-generation pixi environments (dropping the stale py39/py310 ones). - Bump couchbase 4.3.2 -> 4.3.6 and couchbase-columnar 1.0.0 -> 1.0.1: the old pins have no Python 3.13 wheels and fail to build from source. - Drop the python_version == "3.11" marker on the ray extra. Ray >= 2.47 ships 3.13 wheels and codeflare-sdk already pulls ray in on 3.12+. This also removes the version forks it caused in the universal CI locks. - Run unit tests, wheel verification, master-only integration tests and dbt integration tests on 3.13. - Add 3.12 and 3.13 PyPI classifiers and set ruff target-version to py311. - Skip the kserve==0.15.2 dependency test on 3.13 (kserve 0.15.2 requires Python < 3.13). - Update docs that still referenced Python 3.8, 3.9 or 3.10. Fixes feast-dev#7225 Signed-off-by: Krushna <fullstack.kanha@gmail.com>
Contributor
There was a problem hiding this comment.
🔍 Devin Review: 1 flag
Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
70 tasks
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7246 +/- ##
=======================================
Coverage 54.26% 54.26%
=======================================
Files 467 467
Lines 59041 59041
Branches 8712 8712
=======================================
Hits 32040 32040
Misses 24837 24837
Partials 2164 2164
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
What this PR does / why we need it:
Adds formal Python 3.13 support: lock files, CI coverage, classifiers and docs.
requires-python = ">=3.11.0"is unchanged.Dependency locks
py3.13-ci-requirements.txt,py3.13-minimal-requirements.txtandpy3.13-requirements.txt. 3.13 resolves to the same package versions as 3.12.PYTHON_VERSIONS := 3.11 3.12 3.13in theMakefile; adds apy313environment toinfra/scripts/pixi/pixi.tomland removes the stalepy39/py310ones. Bothpixi.lockfiles are updated.Blockers found on 3.13
couchbase==4.3.2andcouchbase-columnar==1.0.0have no 3.13 wheels, andcouchbase4.3.2 fails to build from source. Bumped tocouchbase==4.3.6(first 4.3.x with 3.13 wheels is 4.3.4) andcouchbase-columnar==1.0.1, both patch releases.ray: dropped thepython_version == "3.11"marker. Ray has shipped 3.13 wheels since 2.45, and on 3.12+codeflare-sdkalready pulls inray==2.58.0. This also removes the version forks the marker caused in the universal CI locks (about 500 fewer lines, same resolved versions).faiss-cpu: no change needed. 1.10.0 already ships 3.13 wheels for Linux, macOS and Windows.test_install_kserve_with_feastresolveskserve==0.15.2, which requires Python < 3.13, so it is now skipped on 3.13+ with that reason.CI
unit_tests.yml, theverify-python-wheelsjob inbuild_wheels.yml,master_only.ymlanddbt-integration-tests.yml.Metadata and docs
target-versionfrompy310topy311(no new lint findings, no formatting changes).environment-setup.md, the Chronon summit README and the MLflow/Kubeflow blog post.Which issue(s) this PR fixes:
Fixes #7225
Checks
git commit -s)Testing Strategy
Run on Linux (GitHub Codespace) with Python 3.13.18:
make lock-python-dependencies-allcompletes cleanly for 3.11, 3.12 and 3.13.make install-python-dependencies-ciinstalls the full 3.13 CI lock.make test-python-uniton 3.13: 4508 passed, 2 failed, 37 skipped.test_install_kserve_with_feast: the kserve 3.13 incompatibility above, now skipped.test_keys_are_packed_across_views_up_to_batch_size[sync]: failed once under-n 8, then passed 3/3 when run on its own, so it looks flaky under parallel runs rather than 3.13-specific.ruff checkandruff format --checkpass.import feast,feast version,feast init,feast apply,feast materialize-incrementalandget_online_featuresall work.dbt-coreanddbt-duckdbresolve on 3.13 (1.12.7 / 1.11.1).Not run here: the macOS jobs and the integration workflows; those will run in CI.
Misc
Findings that are not caused by this PR, left for follow-ups:
test_sqlite_get_online_documentsandtest_sqlite_get_online_documents_v2are skipped unless running on Python 3.10, so they no longer run anywhere since 3.10 was retired. With the skip removed they fail withno such module: vec0on both 3.12 and 3.13, so the docs note "SQLite ... only working on Python 3.10" is left unchanged until that is fixed.mypy feastreports numpy typing errors there, because numpy 2.5 (already used by the 3.12 lock) needs a newer mypy than the currentmypy<1.11.3pin. CI only runs mypy on 3.11 (numpy 2.4.6), so the linter is unaffected.