sci-electronics/cocotb: add 2.0.1-r1 for py3.14, drop 2.0.1

- Lift upstream setup.py max_python3_minor_version 13 to 14 via patch.
- Verified: pip wheel build, C extensions, core imports OK on 3.14.5.

Closes: https://bugs.gentoo.org/975540
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2026-05-20 19:20:18 +08:00
parent 13f79f189f
commit fb34e5df3a
2 changed files with 35 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{12..13} )
PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_EXT=1
inherit distutils-r1 pypi
@@ -18,6 +18,10 @@ KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
# Tests requires many eda tools, and can't work inside network sandbox
RESTRICT=test
PATCHES=(
"${FILESDIR}"/${P}-python-3.14.patch
)
RDEPEND="
dev-python/find-libpython[${PYTHON_USEDEP}]
"

View File

@@ -0,0 +1,30 @@
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,