From e744ca7502c41cb37fe777c783aa029707910f21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 30 Aug 2023 16:08:47 +0100 Subject: gentoo auto-resync : 30:08:2023 - 16:08:46 --- dev-python/indexed-gzip/Manifest | 2 +- .../indexed-gzip/indexed-gzip-1.8.5-r1.ebuild | 68 ++++++++++++++++++++++ dev-python/indexed-gzip/indexed-gzip-1.8.5.ebuild | 56 ------------------ 3 files changed, 69 insertions(+), 57 deletions(-) create mode 100644 dev-python/indexed-gzip/indexed-gzip-1.8.5-r1.ebuild delete mode 100644 dev-python/indexed-gzip/indexed-gzip-1.8.5.ebuild (limited to 'dev-python/indexed-gzip') diff --git a/dev-python/indexed-gzip/Manifest b/dev-python/indexed-gzip/Manifest index 02d679dceee7..4237b5d70619 100644 --- a/dev-python/indexed-gzip/Manifest +++ b/dev-python/indexed-gzip/Manifest @@ -3,5 +3,5 @@ DIST indexed_gzip-1.8.3.tar.gz 74621 BLAKE2B e8092eea93235b7e6a154b34d12194ffbd3 DIST indexed_gzip-1.8.5.tar.gz 74696 BLAKE2B 5db7a9c372950e60f4e6f5905a6bf5b01c76007174a77393176d969e87197beefc81d72e5280ac057fcfd3c752e5f8b2923326e3ed2e825fd34315dd23a179b0 SHA512 617b7406ff2e579c41ceafcfb64bd9ba33599f9f810afb5b3abad49825ae274265b8f8eeaf54285d8df11dd9c498a13752455263a51817be11301ed73aeb0230 EBUILD indexed-gzip-1.7.1.ebuild 1056 BLAKE2B 0a64c05fc42afc44aba9196e8ebc5b4e7bf682b8d0b2e2557b11a1571c475d26ff158aa304089d5df6ebd775712d5bc40b4d952d433c45c4ec816f45a51cdb51 SHA512 23675c2b76d77068f1520f62a3422dec9145c634631b1f89de9b1365ada1897c77eddfed6192a15c701885170221ac4e07c97fd12a0098aacaf8e9a6f79d3127 EBUILD indexed-gzip-1.8.3.ebuild 1156 BLAKE2B dd80508aaad954ca02aedf1ad73be96985800f6249f0416a5d7790b02864fafbaa3257f491034a24da6fe93057837e56c4826149908a8e09ba7e2f2fb8d4fc01 SHA512 64ef6ab931a2564098b8583299e14d95b2e095a497c32f370316c705bdec95315cf6c2ad4915df7cf6ea91edd91fee17902e5d07c64ebeaa5e27b2adb71595aa -EBUILD indexed-gzip-1.8.5.ebuild 1156 BLAKE2B dd80508aaad954ca02aedf1ad73be96985800f6249f0416a5d7790b02864fafbaa3257f491034a24da6fe93057837e56c4826149908a8e09ba7e2f2fb8d4fc01 SHA512 64ef6ab931a2564098b8583299e14d95b2e095a497c32f370316c705bdec95315cf6c2ad4915df7cf6ea91edd91fee17902e5d07c64ebeaa5e27b2adb71595aa +EBUILD indexed-gzip-1.8.5-r1.ebuild 1567 BLAKE2B ed9700be86a2cb2a0a7aabeee6946b92b973f33be585f0b05e267cefc0e9d19f7871090222a2e0cbc1ce30fdf7f8c90812dceb392fd19ae27cfec8c992807cd6 SHA512 6ebf5efdc1343232573d039bc368a66aaab1a5819d8c7ea87a3b196096933cdc5b2b185eb23b1e9b1be1074ede9d5cdb996d469c989af7ee69596d16c5106ed8 MISC metadata.xml 772 BLAKE2B c5788c4748250507ff0c231613f6d143839a48c5afac0d68bb806cb3d24e9119d5d3eae3135ca991dfff5bfc5955ddb545afd6293dd4e0565591fb779b3f88ed SHA512 726c025bb40efe9d30a4c1691df9c1a011684af4b1f56cb5ef6c857ae712807c15857c13934b67586f7141fa4a3f3e548acd6adffe12f6285492e1171c21ac99 diff --git a/dev-python/indexed-gzip/indexed-gzip-1.8.5-r1.ebuild b/dev-python/indexed-gzip/indexed-gzip-1.8.5-r1.ebuild new file mode 100644 index 000000000000..cdcf6cac54ed --- /dev/null +++ b/dev-python/indexed-gzip/indexed-gzip-1.8.5-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 multiprocessing pypi + +DESCRIPTION="Fast random access of gzip files in Python" +HOMEPAGE=" + https://pypi.org/project/indexed-gzip/ + https://github.com/pauldmccarthy/indexed_gzip/ +" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + sys-libs/zlib:= +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # strip custom "clean" command that doesn't support "-a" + # https://bugs.gentoo.org/838955 + # TODO: this can be removed once distutils-r1 stops using clean + sed -e '/cmdclass/d' -i setup.py || die + distutils-r1_src_prepare +} + +src_compile() { + # This actually enables line tracing, so it fits USE=debug more. + if use debug; then + export INDEXED_GZIP_TESTING=1 + fi + # Fix implicit dependency on numpy that is used to build test + # extensions. + if ! use test; then + local -x PYTHONPATH="${T}:${PYTHONPATH}" + cat >> "${T}"/numpy.py <<-EOF || die + raise ImportError("I am not here!") + EOF + fi + distutils-r1_src_compile +} + +python_test() { + cd "${BUILD_DIR}/install$(python_get_sitedir)/indexed_gzip/tests" || die + epytest -n "$(makeopts_jobs)" --dist=worksteal + # temporary files and test extensions + # (to achieve equivalence with USE=-test) + rm ctest*.{c,gz,so,tmp} || die +} diff --git a/dev-python/indexed-gzip/indexed-gzip-1.8.5.ebuild b/dev-python/indexed-gzip/indexed-gzip-1.8.5.ebuild deleted file mode 100644 index 9e9fb985434c..000000000000 --- a/dev-python/indexed-gzip/indexed-gzip-1.8.5.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} ) - -inherit distutils-r1 multiprocessing pypi - -DESCRIPTION="Fast random access of gzip files in Python" -HOMEPAGE=" - https://pypi.org/project/indexed-gzip/ - https://github.com/pauldmccarthy/indexed_gzip/ -" - -LICENSE="ZLIB" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - sys-libs/zlib:= -" -DEPEND=" - ${RDEPEND} -" -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - test? ( - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -src_prepare() { - # strip custom "clean" command that doesn't support "-a" - # https://bugs.gentoo.org/838955 - # TODO: this can be removed once distutils-r1 stops using clean - sed -e '/cmdclass/d' -i setup.py || die - distutils-r1_src_prepare -} - -src_compile() { - if use test; then - export INDEXED_GZIP_TESTING=1 - fi - distutils-r1_src_compile -} - -python_test() { - cd "${BUILD_DIR}/install$(python_get_sitedir)/indexed_gzip/tests" || die - epytest -n "$(makeopts_jobs)" --dist=worksteal -} -- cgit v1.2.3