Skip to content

Add Python 3.13 support and CI coverage #7225

Todo

Description

@ntkathole

Summary

After retiring Python 3.10 (#7101), Feast currently tests and locks only Python 3.11 and 3.12, while requires-python = ">=3.11.0" already allows installs on newer versions. Python 3.13 has been GA since Oct 2024 and is security-supported through Oct 2029. We should add formal Python 3.13 support (locks, CI, classifiers, docs).

requires-python already permits 3.13; what is missing is tested support and dependency lockfiles.

Related prior work:

Out of scope for this issue: full Python 3.14 parity (can be a follow-up; unit-only lane optional once 3.13 is green).

Goal

Declare and verify support for Python 3.11, 3.12, and 3.13.

Acceptance criteria

  • Hashed requirement locks exist for 3.13 (ci, minimal, default)
  • Unit tests run on 3.13 in CI (Linux + macOS, matching current matrix shape)
  • Wheel install verification includes 3.13
  • PyPI classifiers list 3.11, 3.12, and 3.13
  • Docs / examples / setup guides no longer claim outdated floors (3.9 / 3.10)
  • Known blocker extras (ray, faiss) either work on 3.13 or are explicitly documented / version-gated
  • make lock-python-dependencies-all regenerates cleanly for 3.11 3.12 3.13

Checklist — places to update

Packaging / metadata

  • pyproject.toml
    • Add classifiers: Programming Language :: Python :: 3.12 and :: 3.13 (today only 3.11 is listed)
    • Keep requires-python = ">=3.11.0" (already correct; do not raise the floor)
    • Widen or document the ray extra marker (currently python_version == "3.11" only)
    • Raise/relax faiss-cpu>=1.7.0,<=1.10.0 if 1.10 has no usable 3.13 wheels; prefer current faiss-cpu with abi3 / 3.13 wheels
    • Review other tight pins that may fail on 3.13 during uv pip compile --extra ci
    • Consider bumping [tool.ruff] target-version from py310 → at least py311
    • Add [tool.pixi.feature.py313] (and keep py311/py312) if pixi features are used for local testing
  • infra/scripts/pixi/pixi.toml
    • Add py313 feature/environment
    • Clean stale py39 / py310 features left after 3.10 retirement
  • pixi.lock — regenerate after pixi/python feature changes

Dependency locks

  • Makefile — extend PYTHON_VERSIONS := 3.11 3.12 3.13
  • Run make lock-python-dependencies-all and commit:
    • sdk/python/requirements/py3.13-ci-requirements.txt
    • sdk/python/requirements/py3.13-minimal-requirements.txt
    • sdk/python/requirements/py3.13-requirements.txt
  • Ensure infra/scripts/add_cpu_torch_hashes.py works for 3.13 (torch CPU hashes)

CI / GitHub Actions

Must include 3.13 (support gate):

  • .github/workflows/unit_tests.yml — matrix python-version: ["3.11", "3.12", "3.13"]
  • .github/workflows/build_wheels.yml — verify-python-wheels matrix includes 3.13
  • .github/workflows/master_only.yml — add 3.13 if this remains a multi-version gate
  • .github/workflows/dbt-integration-tests.yml — currently 3.11/3.12; add 3.13 or document why not

Optional / phased (cost control — keep on 3.11 or 3.11+3.12 initially, sample 3.13 later):

  • .github/workflows/nightly-ci.yml
  • .github/workflows/pr_integration_tests.yml
  • .github/workflows/pr_local_integration_tests.yml
  • .github/workflows/pr_remote_rbac_integration_tests.yml
  • .github/workflows/pr_chronon_integration_tests.yml
  • .github/workflows/pr_duckdb_integration_tests.yml / pr_ray_integration_tests.yml / pr_registration_integration_tests.yml (as applicable)
  • .github/workflows/registry-rest-api-tests.yml
  • .github/workflows/smoke_tests.yml
  • .github/fork_workflows/fork_pr_integration_tests_{aws,gcp,snowflake}.yml

Usually leave pinned (tooling defaults, not support matrix):

  • .github/workflows/linter.yml (3.11 OK)
  • .github/workflows/security.yml (3.12 OK)
  • .github/workflows/localcloud.yml (3.12 OK unless LocalStack/images need 3.13)

Container images (verify install works; bump only if intentionally moving base)

No need to move production bases to 3.13 in the same PR, but confirm images still install Feast correctly and document supported host Python:

  • sdk/python/feast/infra/feature_servers/multicloud/Dockerfile (+ .dev) — currently UBI9 python-312
  • sdk/python/feast/infra/transformation_servers/Dockerfile — python:3.11-slim
  • sdk/python/feast/mcp/docker/Dockerfile
  • java/serving/src/test/resources/docker-compose/feast10/Dockerfile — python:3.11
  • Note: aws_lambda Dockerfile still on python:3.9 (separate cleanup; not a 3.13 blocker)

Docs (user-facing)

Stale version floors still present after the 3.10 drop — fix as part of this work:

  • docs/project/development-guide.md
    • “Python (3.10 and above)” → 3.11+ (and mention 3.13 as supported once CI is green)
    • Example uv venv --python 3.11 — note 3.11–3.13 are supported
  • docs/getting-started/quickstart.md — “Python (3.9 or above)” → 3.11+
  • docs/project/release-process.md — still mentions building wheels for “Python 3.8–3.10”; update to current matrix
  • docs/reference/alpha-vector-database.md
    • SQLite/vector note still says “only working on Python 3.10” — re-validate and rewrite
    • pyenv install 3.11 example — allow 3.13 or say “3.11+”
  • environment-setup.md — uv venv --python 3.11 (mention supported range)
  • .readthedocs.yml — can stay on 3.11, or move to 3.12/3.13 if docs build deps allow

Examples / website / misc docs

  • examples/*/README.md that say Python 3.11+ — fine once 3.13 is tested; call out any extras that remain 3.11-only (e.g. Ray until marker is widened)
  • docs/presentations/feast-chronon-summit/README.md — “Python 3.10+”
  • infra/website/docs/blog/kubeflow-fraud-detection-e2e.md — “3.11 or newer”
  • infra/website/docs/blog/feast-mlflow-kubeflow.md — still uses python:3.10-slim in snippets (update examples)
  • infra/website/docs/blog/feast-dbt-integration.md — CI snippet python-version: '3.11'

Tests / code that hard-codes Python versions

Release / announcement

  • CHANGELOG entry under Features: “Add Python 3.13 support”
  • Optionally note any extras not yet supported on 3.13

Suggested implementation plan

  1. Unblock deps — widen ray marker and bump faiss-cpu (or gate those extras) so uv pip compile -p 3.13 --extra ci succeeds.
  2. Locks — add 3.13 to PYTHON_VERSIONS and regenerate requirement files.
  3. CI — add 3.13 to unit tests + wheel verification first; keep most integration jobs on 3.11/3.12 initially.
  4. Metadata + docs — classifiers, development/quickstart/release docs, stale 3.9/3.10 references.
  5. Follow-up issue — Python 3.14 unit CI / full support (ecosystem mostly ready; Ray still marks 3.14 experimental).

Test plan

  • uv pip sync from py3.13-ci-requirements.txt on Linux and macOS
  • make test-python-unit on 3.13
  • Wheel / sdist install smoke on 3.13 (build_wheels verify job)
  • Spot-check critical extras on 3.13: redis, postgres, duckdb, milvus, pytorch (and ray if marker widened)
  • Docs preview: quickstart + development-guide version statements

Activity

  1. krushna-sahu1 commented on Nov 25, 2026

    @krushna-sahu1

    Hi @ntkathole, I'd like to work on this if nobody has started.

    Since the list is long, I'd split it into smaller PRs:

    1. Add 3.13 to PYTHON_VERSIONS, generate the locks, and sort out the ray and faiss-cpu blockers (fix or version-gate).
    2. Add 3.13 to the unit test and wheel verification matrices, plus the classifiers.
    3. Docs and pixi cleanup.

    I haven't run the lock generation yet, so I'd start there and report what fails on 3.13. Does this split work, or would you prefer the locks and CI in one PR?

  2. krushna-sahu1 commented on Nov 26, 2026

    @krushna-sahu1

    Hi @ntkathole, I've opened #7246 for this. I ended up doing it as a single PR instead of the three I suggested, since the locks, CI matrix and classifiers depend on each other (same approach as #7101).

    Summary:

    • Adds 3.13 locks plus 3.13 in the unit tests, wheel verification, master-only and dbt CI jobs
    • ray and faiss-cpu already work on 3.13; the real blocker was couchbase, bumped to 4.3.6 (and couchbase-columnar to 1.0.1)
    • Unit tests pass on 3.13 (details in the PR)

    It needs ok-to-test to run CI. Happy to split it up if you'd prefer.

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

Metadata

Metadata

Assignees

Labels

kind/featurepriority/p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions