commit:     e86f8c5670cfec783a5b44e7ca1cc336a956edd6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 13 02:17:35 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Oct 13 02:17:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e86f8c56

dev-python/bottleneck: Bump to 1.4.1_rc1

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

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

diff --git a/dev-python/bottleneck/Manifest b/dev-python/bottleneck/Manifest
index 8ce948a5e14e..8d5d93089a76 100644
--- a/dev-python/bottleneck/Manifest
+++ b/dev-python/bottleneck/Manifest
@@ -1 +1,2 @@
 DIST bottleneck-1.4.0.tar.gz 103490 BLAKE2B 
c72b53bd1f4325fa53d7824e335ec50a37da7650c097bdda22548637c1e5a95bfa219dad1361dfb2eecdcf0fa1445a5c6cfb94b7472290fa6317524dc474f46c
 SHA512 
07c1224d63a34e12488dce1f72152fdc493db904130cef46092f7f9c3218a04032e90d64dbf385069072c5d56c7ea09db15897d5c77b9d53db2e3da9414f84cc
+DIST bottleneck-1.4.1rc1.tar.gz 103592 BLAKE2B 
1e201ae87274e33245a56a9976d951e0040c9bb0bcca714a1b5dcd5b2e40a782dfa0ee09dbb7743e803fe5bd6c1c074abff24408d68bd3dd00050fb8d6e07ab3
 SHA512 
5ba05a852833f1eae3b5b5d96125484011faa08cc6556cdbadc668ef3c5efde406ff5432235de2ef65bb6ce3ca9f8aab159e33b2ddbfb8566638dfa9746f9ef0

diff --git a/dev-python/bottleneck/bottleneck-1.4.1_rc1.ebuild 
b/dev-python/bottleneck/bottleneck-1.4.1_rc1.ebuild
new file mode 100644
index 000000000000..d859f3bcc96b
--- /dev/null
+++ b/dev-python/bottleneck/bottleneck-1.4.1_rc1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2024 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_{10..13} pypy3 )
+
+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