From 259a338d150856a3e419d0a0c11c3d32804a12dc Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sun, 2 Nov 2025 17:03:29 +0100 Subject: [PATCH 1/2] Python 3.14: Validate on CI --- .github/workflows/tests.yml | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index da6d435..7fe3f69 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,7 +23,7 @@ jobs: os: ['ubuntu-latest'] python-version: [ '3.9', - '3.13', + '3.14', ] env: diff --git a/pyproject.toml b/pyproject.toml index 774ef6f..7b2dccb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: Adaptive Technologies", "Topic :: Communications", "Topic :: Database", From fd5814069db3b86872e9fc9d111e8ee31bf70645 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sun, 2 Nov 2025 17:09:00 +0100 Subject: [PATCH 2/2] Python 3.14: Adjust for deprecation of `importlib.abc.Traversable` --- src/cratedb_about/bundle/llmstxt.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cratedb_about/bundle/llmstxt.py b/src/cratedb_about/bundle/llmstxt.py index ccbeb8b..10f5c26 100644 --- a/src/cratedb_about/bundle/llmstxt.py +++ b/src/cratedb_about/bundle/llmstxt.py @@ -1,8 +1,13 @@ import dataclasses import logging import shutil +import sys from importlib import resources -from importlib.abc import Traversable + +if sys.version_info < (3, 11): + from importlib.abc import Traversable +else: + from importlib.resources.abc import Traversable from pathlib import Path from markdown import markdown