Skip to content

Add Python 3.14 support#468

Merged
vishal-bala merged 4 commits intomainfrom
add-python-3.14-support
Feb 16, 2026
Merged

Add Python 3.14 support#468
vishal-bala merged 4 commits intomainfrom
add-python-3.14-support

Conversation

@abrookins
Copy link
Collaborator

@abrookins abrookins commented Feb 3, 2026

Summary

Add Python 3.14 support to RedisVL.

Changes

  • Update requires-python upper bound from <3.14 to <3.15
  • Add Programming Language :: Python :: 3.14 classifier
  • Add Python 3.14 to the CI test matrix

Testing Strategy

HuggingFace/sentence-transformers tests are skipped on Python 3.14 because the upstream transformers library doesn't fully support Python 3.14 yet.

Affected components (all optional):

  • HFTextVectorizer
  • HFCrossEncoderReranker
  • SemanticRouter (when using default HF vectorizer)
  • SemanticMessageHistory (when using HF vectorizer)

Users can still use these features on Python 3.9-3.13, or use alternative vectorizers (OpenAI, Cohere, etc.) on Python 3.14.

Implementation:

  • Added SKIP_HF constant in conftest.py to detect Python 3.14+
  • Skip HF-dependent test files entirely via pytestmark
  • Skip individual HF tests via @pytest.mark.requires_hf marker
  • Skip HF parameters in parametrized tests via pytest.param(..., marks=...)

Once transformers adds Python 3.14 support, these skips can be removed.

Additional Fix

Added missing @pytest.mark.requires_api_keys marker to test_default_dtype (pre-existing bug unrelated to this PR).

@tylerhutcherson tylerhutcherson self-requested a review February 13, 2026 08:03
@tylerhutcherson
Copy link
Collaborator

tylerhutcherson commented Feb 13, 2026

@abrookins looks like we need to resolve uv.lock conflicts. But otherwise looks good. We can roll this along with some of the pending docs improvements to a clean 0.15.0 release.

abrookins and others added 4 commits February 16, 2026 12:08
sentence-transformers (via transformers) doesn't fully support Python 3.14 yet.
Skip tests that depend on HFTextVectorizer and HFCrossEncoderReranker on 3.14.
@vishal-bala vishal-bala force-pushed the add-python-3.14-support branch from e571e75 to 1b01efc Compare February 16, 2026 11:09
Copy link
Collaborator

@vishal-bala vishal-bala left a comment

Choose a reason for hiding this comment

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

LGTM - seems a bit painful until sentence-transformers catches up 😄

Also, maybe we should settle on a timeline for dropping Python 3.9 support, since it reached EoL back in October. No rush, but might let us simplify some things (and also reduce the matrix testing).

@vishal-bala vishal-bala merged commit f7df963 into main Feb 16, 2026
48 checks passed
@vishal-bala vishal-bala deleted the add-python-3.14-support branch February 16, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants