From: Huang Rui <vowstar@gmail.com>
Date: Wed, 20 May 2026 11:00:00 +0800
Subject: [PATCH] setup: raise max supported Python to 3.14

Gentoo systems ship python3_14 in the default profile. Upstream caps
installation at Python 3.13 via a hardcoded check in setup.py and
points at the COCOTB_IGNORE_PYTHON_REQUIRES environment variable as
the documented opt-out, explicitly without compatibility guarantees.
Lift the cap to 3.14 so the install-time gate accepts the Gentoo
default while leaving the 3.15+ gate in place.

Bug: https://bugs.gentoo.org/975540
Upstream-Status: Not applicable (downstream version-gate bypass)
Signed-off-by: Huang Rui <vowstar@gmail.com>
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@

 __version__ = "2.0.1"

-max_python3_minor_version = 13
+max_python3_minor_version = 14
 if "COCOTB_IGNORE_PYTHON_REQUIRES" not in os.environ and sys.version_info >= (
     3,
     max_python3_minor_version + 1,
