commit: 376cf4ec4fbe72dd485c6d1222103c66a8780dc6
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 18 06:06:14 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 18 06:11:13 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=376cf4ec
dev-python/memory-allocator: Enable py3.13
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../memory-allocator/memory-allocator-0.1.4.ebuild | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/dev-python/memory-allocator/memory-allocator-0.1.4.ebuild
b/dev-python/memory-allocator/memory-allocator-0.1.4.ebuild
index bad309e2b7df..35542831649a 100644
--- a/dev-python/memory-allocator/memory-allocator-0.1.4.ebuild
+++ b/dev-python/memory-allocator/memory-allocator-0.1.4.ebuild
@@ -3,20 +3,25 @@
EAPI=8
-PYTHON_COMPAT=( python3_{10..12} )
-DISTUTILS_USE_PEP517=setuptools
DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
inherit distutils-r1 pypi
DESCRIPTION="An extension class for memory allocation in cython"
-HOMEPAGE="https://pypi.org/project/memory-allocator/
- https://github.com/sagemath/memory_allocator"
+HOMEPAGE="
+ https://pypi.org/project/memory-allocator/
+ https://github.com/sagemath/memory_allocator/
+"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64"
-BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
+BDEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+"
python_test() {
# The test script tries to "import memory_allocator.test" which, so
@@ -25,7 +30,6 @@ python_test() {
# the "test" module is a compiled extension. To let the search fall
# back to the correct location, we temporarily rename the directory
# that misleads it.
- mv memory_allocator mv_memory_allocator || die
- ${EPYTHON} test.py || die
- mv mv_memory_allocator memory_allocator || die
+ rm -rf memory_allocator || die
+ "${EPYTHON}" test.py || die
}