commit:     b6618571484df8b0bef85045d7f2bd6656f24203
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 14 04:15:48 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 14 05:20:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6618571

dev-python/bottleneck: Bump to 1.5.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/bottleneck/Manifest                |  1 +
 dev-python/bottleneck/bottleneck-1.5.0.ebuild | 52 +++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/dev-python/bottleneck/Manifest b/dev-python/bottleneck/Manifest
index f725f2742bc8..c66dbcecbb52 100644
--- a/dev-python/bottleneck/Manifest
+++ b/dev-python/bottleneck/Manifest
@@ -1,2 +1,3 @@
 DIST bottleneck-1.4.2.tar.gz 103563 BLAKE2B 
a0fe43222acb63bcdf238282868c4a9acc6a8d0c3aa31d0b8ac9c38b6c4bb9e8a99e97e0227067a400b6320e52bbbbf0f29ddd5e38b32bc8c9cc995086d38e50
 SHA512 
6998a00375527fe77edd159311780a6551ee21dc2ef0ede7f47f6ca26542af4858df0065b2e8e82c3e5914069d0f467a770f460d04da5288d5a01ffd310d6292
+DIST bottleneck-1.5.0.tar.gz 104177 BLAKE2B 
3cf5e089ce08bdacaa9ca81fdafd2a2b15b44151f79026803b3e0886fd47d4dcb1428089d7f7d9e75d0a644813c88682f50c5e4d8bac78b2e71089a6da750d8d
 SHA512 
9fefe695afcec7c2ad29db7f84870bbea2224b96b606d0e72b1b6310e078fa098c6950dd3b3ac3bafc927fc0bbf6c56c3fcf89908530d806adeda1d10dec2ee7
 DIST bottleneck-1.5.0rc1.tar.gz 104226 BLAKE2B 
83f6f6c8289ea90b68850d970bd8a8c41499070fcef3dff724c17da3643f7b3e8935074babda0eda104118026cab116945a9685f1e508b1adc97c134af68aa31
 SHA512 
505e7116302266242ac7123c77dcae79ca1329531de98e54e8ae8dba25c65f7a58ad2ff3dd2eb19383362ed1b9591349caa1e92ee24fd5c0eb655d36886436ea

diff --git a/dev-python/bottleneck/bottleneck-1.5.0.ebuild 
b/dev-python/bottleneck/bottleneck-1.5.0.ebuild
new file mode 100644
index 000000000000..66436d951ab9
--- /dev/null
+++ b/dev-python/bottleneck/bottleneck-1.5.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYPI_PN=${PN^}
+PYTHON_COMPAT=( python3_{11..13} pypy3_11 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Fast NumPy array functions written in C"
+HOMEPAGE="
+       https://github.com/pydata/bottleneck/
+       https://pypi.org/project/Bottleneck/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc64 ~riscv ~s390 ~sparc 
~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
+
+DEPEND="
+       >=dev-python/numpy-1.9.1:=[${PYTHON_USEDEP}]
+"
+RDEPEND="
+       ${DEPEND}
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       # don't overwrites user's optimization level
+       sed -e '/extra_compile_args=\["-O2"\]/d' -i setup.py || die
+
+       distutils-r1_src_prepare
+}
+
+python_test() {
+       local EPYTEST_DESELECT=()
+       case ${EPYTHON} in
+               pypy3*)
+                       EPYTEST_DESELECT+=(
+                               # GC assumptions?
+                               tests/memory_test.py::test_memory_leak
+                       )
+                       ;;
+       esac
+
+       rm -rf bottleneck || die
+       epytest --pyargs bottleneck
+}

Reply via email to