From c11fbeacd4e2f36848249fee8efc104c9f8054b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 15 Jun 2024 16:16:04 +0200 Subject: [PATCH] dev-python/iniparse: Enable py3.13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../iniparse/iniparse-0.5_p20221102.ebuild | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/dev-python/iniparse/iniparse-0.5_p20221102.ebuild b/dev-python/iniparse/iniparse-0.5_p20221102.ebuild index ed1508ff92c50..fdf3b827d469f 100644 --- a/dev-python/iniparse/iniparse-0.5_p20221102.ebuild +++ b/dev-python/iniparse/iniparse-0.5_p20221102.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit distutils-r1 @@ -33,10 +33,18 @@ BDEPEND=" ${RDEPEND} " -PATCHES=( - # https://github.com/candlepin/python-iniparse/pull/29 - "${FILESDIR}/${P}-py3.11.7.patch" -) +src_prepare() { + local PATCHES=( + # https://github.com/candlepin/python-iniparse/pull/29 + "${FILESDIR}/${P}-py3.11.7.patch" + ) + + distutils-r1_src_prepare + + # https://src.fedoraproject.org/rpms/python-iniparse/blob/rawhide/f/python-iniparse.spec + sed -e "s/unittest.makeSuite(\(.*\), 'test')/unittest.defaultTestLoader.loadTestsFromTestCase(\1)/g" \ + -i tests/test*.py || die +} python_test() { "${EPYTHON}" runtests.py -v || die