commit: d3ac30de4c90c45ebac7aad2fba90d7cc8b3d977 Author: Michael Schubert <mschu.dev <AT> gmail <DOT> com> AuthorDate: Sat Mar 8 09:21:58 2025 +0000 Commit: Nowa Ammerlaan <nowa <AT> gentoo <DOT> org> CommitDate: Fri Mar 21 15:39:49 2025 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d3ac30de
dev-python/numcodecs: version bump 0.15.1 Signed-off-by: Michael Schubert <mschu.dev <AT> gmail.com> Closes: https://github.com/gentoo/sci/pull/1332 Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org> .../numcodecs/files/numcodecs-0.15.1-nocov.patch | 13 ++++++ dev-python/numcodecs/numcodecs-0.13.0.ebuild | 49 -------------------- dev-python/numcodecs/numcodecs-0.15.1.ebuild | 53 ++++++++++++++++++++++ 3 files changed, 66 insertions(+), 49 deletions(-) diff --git a/dev-python/numcodecs/files/numcodecs-0.15.1-nocov.patch b/dev-python/numcodecs/files/numcodecs-0.15.1-nocov.patch new file mode 100644 index 000000000..0f298d670 --- /dev/null +++ b/dev-python/numcodecs/files/numcodecs-0.15.1-nocov.patch @@ -0,0 +1,13 @@ +diff --git a/pyproject.toml b/pyproject.toml +index 29ef0bf..53d3433 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -127,7 +127,7 @@ exclude_lines = [ + ignore = ["PY005", "PY007", "PP302", "PP308", "PP309", "GH103", "GH212", "PC111", "PC140", "PC160", "PC170", "PC180", "MY100", "RF103"] + + [tool.pytest.ini_options] +-addopts = "-ra --strict-config --strict-markers --cov=numcodecs --cov-report xml --doctest-modules --doctest-glob=*.pyx" ++addopts = "-ra --strict-config --strict-markers --doctest-modules --doctest-glob=*.pyx" + doctest_optionflags = [ + "NORMALIZE_WHITESPACE", + "ELLIPSIS", diff --git a/dev-python/numcodecs/numcodecs-0.13.0.ebuild b/dev-python/numcodecs/numcodecs-0.13.0.ebuild deleted file mode 100644 index 758939bd2..000000000 --- a/dev-python/numcodecs/numcodecs-0.13.0.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..12} ) -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools - -inherit distutils-r1 pypi flag-o-matic - -DESCRIPTION="Data storage buffer compression and transformation codecs" -HOMEPAGE="https://github.com/zarr-developers/numcodecs" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" - -RDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - dev-python/entrypoints[${PYTHON_USEDEP}] - dev-python/msgpack[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/py-cpuinfo[${PYTHON_USEDEP}] -" -DEPEND=" - test? ( - dev-python/entrypoints[${PYTHON_USEDEP}] - ) -" - -EPYTEST_DESELECT=( - # python segfault - tests/test_blosc.py::test_encode_decode - tests/test_blosc.py::test_partial_decode - tests/test_blosc.py::test_compress_metainfo - tests/test_blosc.py::test_compress_autoshuffle - tests/test_blosc.py::test_multiprocessing - tests/test_blosc.py::test_backwards_compatibility - tests/test_blosc.py::test_max_buffer_size -) - -distutils_enable_tests pytest - -python_prepare_all() { - filter-lto - distutils-r1_python_prepare_all -} diff --git a/dev-python/numcodecs/numcodecs-0.15.1.ebuild b/dev-python/numcodecs/numcodecs-0.15.1.ebuild new file mode 100644 index 000000000..30bfa7018 --- /dev/null +++ b/dev-python/numcodecs/numcodecs-0.15.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 flag-o-matic pypi + +DESCRIPTION="Data storage buffer compression and transformation codecs" +HOMEPAGE="https://github.com/zarr-developers/numcodecs" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="cpu_flags_x86_avx2 cpu_flags_x86_sse2" + +RDEPEND=" + dev-python/deprecated[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/py-cpuinfo[${PYTHON_USEDEP}] +" +DEPEND=" + test? ( + dev-python/entrypoints[${PYTHON_USEDEP}] + ) +" + +PATCHES=( "${FILESDIR}/${P}-nocov.patch" ) + +distutils_enable_tests pytest + +python_prepare_all() { + filter-lto + filter-flags -pipe + distutils-r1_python_prepare_all +} + +python_compile() { + ! use cpu_flags_x86_avx2 && local -x DISABLE_NUMCODECS_AVX2=1 + ! use cpu_flags_x86_sse2 && local -x DISABLE_NUMCODECS_SSE2=1 + distutils-r1_python_compile +} + +python_test() { + local PY_BUILD_DIR=$(${EPYTHON} -c "import sysconfig; print('lib.' + sysconfig.get_platform() + + '-cpython-' + sysconfig.get_python_version().replace('.', ''))") || die + cd "${BUILD_DIR}/build/${PY_BUILD_DIR}" || die + epytest --pyargs numcodecs +}
