Skip to content

feat: Add Python 3.13 support - #7246

Open
krushna-sahu1 wants to merge 1 commit into
feast-dev:masterfrom
krushna-sahu1:python-3.13-support
Open

krushna-sahu1 wants to merge 1 commit into
feast-dev:masterfrom
krushna-sahu1:python-3.13-support

Conversation

@krushna-sahu1

@krushna-sahu1 krushna-sahu1 commented Nov 26, 2026 •

Copy link
Copy Markdown

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

  • Adds py3.13-ci-requirements.txt, py3.13-minimal-requirements.txt and py3.13-requirements.txt. 3.13 resolves to the same package versions as 3.12.
  • PYTHON_VERSIONS := 3.11 3.12 3.13 in the Makefile; adds a py313 environment to infra/scripts/pixi/pixi.toml and removes the stale py39/py310 ones. Both pixi.lock files are updated.
  • The 3.11/3.12 locks were regenerated with their existing pins kept, so they only change where this PR requires it.

Blockers found on 3.13

  • couchbase==4.3.2 and couchbase-columnar==1.0.0 have no 3.13 wheels, and couchbase 4.3.2 fails to build from source. Bumped to couchbase==4.3.6 (first 4.3.x with 3.13 wheels is 4.3.4) and couchbase-columnar==1.0.1, both patch releases.
  • ray: dropped the python_version == "3.11" marker. Ray has shipped 3.13 wheels since 2.45, and on 3.12+ codeflare-sdk already pulls in ray==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_feast resolves kserve==0.15.2, which requires Python < 3.13, so it is now skipped on 3.13+ with that reason.

CI

  • Adds 3.13 to unit_tests.yml, the verify-python-wheels job in build_wheels.yml, master_only.yml and dbt-integration-tests.yml.
  • Other integration workflows are left on their current versions, as suggested in the issue.

Metadata and docs

  • Adds the 3.12 and 3.13 classifiers, and moves ruff target-version from py310 to py311 (no new lint findings, no formatting changes).
  • Updates stale Python version mentions (3.8/3.9/3.10) in the development guide, quickstart, release process, vector database reference, environment-setup.md, the Chronon summit README and the MLflow/Kubeflow blog post.

Which issue(s) this PR fixes:

Fixes #7225

Checks

  • I've made sure the tests are passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests
  • Integration tests
  • Manual tests
  • Testing is not required for this change

Run on Linux (GitHub Codespace) with Python 3.13.18:

  • make lock-python-dependencies-all completes cleanly for 3.11, 3.12 and 3.13.
  • make install-python-dependencies-ci installs the full 3.13 CI lock.
  • make test-python-unit on 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 check and ruff format --check pass.
  • Clean install from source into a fresh 3.13 venv: import feast, feast version, feast init, feast apply, feast materialize-incremental and get_online_features all work.
  • dbt-core and dbt-duckdb resolve on 3.13 (1.12.7 / 1.11.1).
  • The 3.11 and 3.12 CI locks still resolve with the couchbase bump.

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:

  • sqlite-vec tests: test_sqlite_get_online_documents and test_sqlite_get_online_documents_v2 are skipped unless running on Python 3.10, so they no longer run anywhere since 3.10 was retired. With the skip removed they fail with no such module: vec0 on 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 on 3.12/3.13: mypy feast reports numpy typing errors there, because numpy 2.5 (already used by the 3.12 lock) needs a newer mypy than the current mypy<1.11.3 pin. CI only runs mypy on 3.11 (numpy 2.4.6), so the linter is unaffected.
  • Container images: base images are unchanged; moving them to 3.13 can be done separately.
  • Python 3.14: out of scope, as noted in the issue.

Devin Review

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>
@krushna-sahu1
krushna-sahu1 requested a review from a team as a code owner November 26, 2026 12:52

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

@codecov-commenter

codecov-commenter commented Nov 26, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.26%. Comparing base (f2abc7c) to head (878defd).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@           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           
Flag Coverage Δ
go-feature-server 30.96% <ø> (ø)
python-unit 55.87% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2abc7c...878defd. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Python 3.13 support and CI coverage

3 participants