Skip to content

feat(python) support python v3.14 - #483

Merged
rgonalo merged 2 commits into
Telefonica:masterfrom
Rcatala18:feat/compatibility-until-python-314
Oct 29, 2026
Merged

rgonalo merged 2 commits into
Telefonica:masterfrom
Rcatala18:feat/compatibility-until-python-314

Conversation

@Rcatala18

@Rcatala18 Rcatala18 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Goal

Make Toolium compatible with Python 3.14 and keep the CI easy to maintain when new Python versions are added.

Python 3.15 was evaluated but is out of scope for now: the ai extra depends on sentence-transformers, which depends on torch, and torch does not publish Python 3.15 wheels on PyPI yet (the latest release, 2.14.1, stops at cp314). Support for 3.15 can be added once those wheels are available on PyPI.

Changes

File Change
.github/workflows/ci.yml Add Python 3.14 to the test matrices. Centralize the supported Python versions in a single place (see below).
pyproject.toml Add the Programming Language :: Python :: 3.14 classifier.
CHANGELOG.rst Add support for Python 3.14 to v3.8.5.

CI workflow details

  • New python-versions job that publishes the list of supported versions as an output. To add a new version, only one line needs to change:
echo 'versions=["3.10", "3.11", "3.12", "3.13", "3.14"]' >> "$GITHUB_OUTPUT"
  • The tests job and the four examples-* jobs depend on it (needs: python-versions) and read the list with fromJSON(needs.python-versions.outputs.versions) allow global variables inside strategy.matrix`,

Verified locally on Python 3.14 with the exact dependencies from requirements.txt, requirements_ai.txt and requirements_dev.txt, plus the en_core_web_md spaCy model:

  • Full test suite: 763 passed, 53 skipped (the skipped tests require AZURE_OPENAI_API_KEY, so they were not executed).
  • ruff check . and ruff format --check . pass.
  • Workflow YAML parses correctly and every matrix job resolves needs.python-versions.
  • The new artifact-combining loop was simulated locally with sample folders and produces the same structure as before.

Pending verification in GitHub

  • The examples-* jobs install the requirements ch were not reviewed. If any of those dependenciesdoes not support Python 3.14, the install step will fail (continue-on-error only covers the test step).
  • The new python-versions job and the `fromJSONecuted outside of GitHub Actions, so the first CIrun of this PR is the real validation.

@Rcatala18 Rcatala18 changed the title feat(python) add comments of the new version in change logs feat(python) support python v3.14 Oct 27, 2026
@rgonalo
rgonalo merged commit bf0eadb into Telefonica:master Oct 29, 2026
29 checks passed
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