From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-python/memory-allocator/Manifest | 2 ++ .../memory-allocator/memory-allocator-0.2.0.ebuild | 36 ++++++++++++++++++++++ dev-python/memory-allocator/metadata.xml | 26 ++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 dev-python/memory-allocator/Manifest create mode 100644 dev-python/memory-allocator/memory-allocator-0.2.0.ebuild create mode 100644 dev-python/memory-allocator/metadata.xml (limited to 'dev-python/memory-allocator') diff --git a/dev-python/memory-allocator/Manifest b/dev-python/memory-allocator/Manifest new file mode 100644 index 000000000000..3441e0e395f2 --- /dev/null +++ b/dev-python/memory-allocator/Manifest @@ -0,0 +1,2 @@ +DIST memory_allocator-0.2.0.tar.gz 22165 BLAKE2B ae49ff6893f4202214823dd5b1bdb0dc14f7dd4a5750f5a537770c0ecb879b6abdcad9bd0c4b1e0ed460b9d17542d6d2bb38936632a3e0db683d7896179a9981 SHA512 5c7dcedc347027f4918763ba5312f7994f90aff61fd44f17f1850f86f3aa0bb08d49fddadfb6555c08c52ac9c346e10c140dde3653f9c17c85dbea436ebeec13 +DIST memory_allocator-0.2.0.tar.gz.provenance 9501 BLAKE2B 0ef75267c5868b5b764a52d49b889772245bf276a32dfc4331f9f5efe70db703b964a0b6b2b504c32f76349ce40aaa64f99c466f79397e1aaa0bed9dbe348434 SHA512 15e92d597015c33ed093cfa4b21445d59aeac8e7321162f89975fd45f6d6dbceb721aa11203bc1f5db4b9609f7e83bacc02676249b19672ff5ab8987628e94f4 diff --git a/dev-python/memory-allocator/memory-allocator-0.2.0.ebuild b/dev-python/memory-allocator/memory-allocator-0.2.0.ebuild new file mode 100644 index 000000000000..16a5156fe2d2 --- /dev/null +++ b/dev-python/memory-allocator/memory-allocator-0.2.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 2021-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=meson-python +PYPI_VERIFY_REPO=https://github.com/sagemath/memory_allocator +PYTHON_COMPAT=( python3_{13..14} ) + +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/ +" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~riscv" + +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" + +python_test() { + # The test script tries to "import memory_allocator.test" which, so + # long as a memory_allocator directory exists inside CWD, will look + # for a memory_allocator/test.py there. But there is no such file; + # 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. + rm -rf memory_allocator || die + "${EPYTHON}" test.py || die +} diff --git a/dev-python/memory-allocator/metadata.xml b/dev-python/memory-allocator/metadata.xml new file mode 100644 index 000000000000..64a5ce7fa588 --- /dev/null +++ b/dev-python/memory-allocator/metadata.xml @@ -0,0 +1,26 @@ + + + + + mjo@gentoo.org + + + frp.bissey@gmail.com + François Bissey + + + proxy-maint@gentoo.org + Proxy Maintainers + + + sci-mathematics@gentoo.org + Gentoo Mathematics Project + + + This package provides a single MemoryAllocator class that makes + memory allocation easier in Cython. The class has familiar (cdef) + methods like malloc and realloc, and all allocated memory is freed + when the MemoryAllocator object is destroyed. + + baldeagleos-repo + -- cgit v1.3.1