summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-07-10 11:52:06 +0200
committerMichał Górny <mgorny@gentoo.org>2024-07-10 12:53:04 +0200
commit527964469cc360ae78862df57d6bf1f57d17c9fd (patch)
tree9fa6c1da8a388be8e71067aeb9b96097df3b28af /dev-python/tables/tables-3.9.2-r1.ebuild
parentdev-python/tables: Add a patch for numpy-2 support (diff)
downloadgentoo-527964469cc360ae78862df57d6bf1f57d17c9fd.tar.gz
gentoo-527964469cc360ae78862df57d6bf1f57d17c9fd.tar.bz2
gentoo-527964469cc360ae78862df57d6bf1f57d17c9fd.zip
dev-python/tables: Enable py3.13
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/tables/tables-3.9.2-r1.ebuild')
-rw-r--r--dev-python/tables/tables-3.9.2-r1.ebuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/dev-python/tables/tables-3.9.2-r1.ebuild b/dev-python/tables/tables-3.9.2-r1.ebuild
index bdbc563361d3..0f77247031d8 100644
--- a/dev-python/tables/tables-3.9.2-r1.ebuild
+++ b/dev-python/tables/tables-3.9.2-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 python3_{10..12} )
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1 prefix pypi
@@ -52,10 +52,19 @@ python_prepare_all() {
local PATCHES=(
# https://github.com/PyTables/PyTables/pull/1176
"${FILESDIR}/${P}-numpy-2.patch"
+ # https://github.com/PyTables/PyTables/commit/4a1b480e7e3758cf2cf06354ec5720020db16ce7
+ # https://github.com/PyTables/PyTables/commit/424784895b0fb15ad06707ce60f9829cef4f11e2
+ "${FILESDIR}/${P}-py313.patch"
)
rm -r c-blosc/{blosc,internal-complibs} || die
+ # part of https://github.com/PyTables/PyTables/commit/4a1b480e7e3758cf2cf06354ec5720020db16ce7
+ # (warning: do it *before* patching, so it doesn't modify
+ # the added function)
+ find -name '*.py' -exec \
+ sed -i -e 's:unittest[.]makeSuite:make_suite:' {} + || die
+
distutils-r1_python_prepare_all
sed -i -e '/blosc2/d' pyproject.toml || die