From 990c8a7fba80145bf7d5e2d02eb28002db8c00d0 Mon Sep 17 00:00:00 2001 From: Gunther Cox Date: Mon, 24 Nov 2025 18:51:48 -0500 Subject: [PATCH 1/3] Enable Python 3.14 in build matrix --- .github/workflows/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index e57b17330..fa0126157 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -23,7 +23,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] services: redis: image: redis/redis-stack-server:latest From 1ed25f15339c42197c085dd90582bdebbd929e01 Mon Sep 17 00:00:00 2001 From: Gunther Cox Date: Mon, 24 Nov 2025 19:17:34 -0500 Subject: [PATCH 2/3] Create new time value --- chatterbot/parsing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chatterbot/parsing.py b/chatterbot/parsing.py index 2926866fa..98531f86e 100644 --- a/chatterbot/parsing.py +++ b/chatterbot/parsing.py @@ -730,10 +730,13 @@ def next_week_day(base_date: datetime, weekday: int) -> datetime: return day -def datetime_parsing(text: str, base_date: datetime = datetime.now()) -> list[tuple[str, datetime, tuple[int, int]]]: +def datetime_parsing(text: str, base_date: datetime = None) -> list[tuple[str, datetime, tuple[int, int]]]: """ Extract datetime objects from a string of text. """ + if base_date is None: + base_date = datetime.now() + matches = [] found_array = [] From 4eae68a25cba0394577b3378d676e42e72026a0a Mon Sep 17 00:00:00 2001 From: Gunther Cox Date: Mon, 24 Nov 2025 19:21:01 -0500 Subject: [PATCH 3/3] Extend version range --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9fec33533..563cb34c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ version = {attr = "chatterbot.__version__"} [project] name = "ChatterBot" -requires-python = ">=3.9,<3.14" +requires-python = ">=3.9,<3.15" urls = { Documentation = "https://docs.chatterbot.us", Repository = "https://github.com/gunthercox/ChatterBot", Changelog = "https://github.com/gunthercox/ChatterBot/releases" } description = "ChatterBot is a machine learning, conversational dialog engine" authors = [