summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-22 19:49:33 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-22 19:55:08 +0100
commit733464458008fb9f3cd72d13626451f71fcecae0 (patch)
treea672619a4a907d552b6c17240c7993c599049689 /dev-python/bottleneck
parentdev-python/flit: Bump to 3.7.0 (diff)
downloadgentoo-733464458008fb9f3cd72d13626451f71fcecae0.tar.gz
gentoo-733464458008fb9f3cd72d13626451f71fcecae0.tar.bz2
gentoo-733464458008fb9f3cd72d13626451f71fcecae0.zip
dev-python/bottleneck: Bump to 1.3.4
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/bottleneck')
-rw-r--r--dev-python/bottleneck/Manifest1
-rw-r--r--dev-python/bottleneck/bottleneck-1.3.4.ebuild40
-rw-r--r--dev-python/bottleneck/files/bottleneck-1.3.4-install-test-data.patch16
-rw-r--r--dev-python/bottleneck/metadata.xml1
4 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/bottleneck/Manifest b/dev-python/bottleneck/Manifest
index e8ed96f5cca5..cba33a33754b 100644
--- a/dev-python/bottleneck/Manifest
+++ b/dev-python/bottleneck/Manifest
@@ -1 +1,2 @@
DIST bottleneck-1.3.2.tar.gz 102565 BLAKE2B 4d903bd8ff918a54cdee5b6c6815e8d404c6d3cd1a73e02f81888aab077970a113fcd24acef9da8a35138aa808c211883bf9bd952f83f17df4f94a6172fbe140 SHA512 9b6f812a625c9bb39501e8834ce41ae34ce57038d3ec9528aa8aa80910663c4e3b420d535f0ec8fa9e506faecabaf0151950afcebdc919479ed04787f26dc3ee
+DIST bottleneck-1.3.4.gh.tar.gz 118739 BLAKE2B af4b32bf296f11538b12f364592553d407668762e1e2d94c814bf262bc9ef88f1338cd388ff1c02065f8266988fe6cad5f8461aed2a144a9bfaf98f8ae46eeae SHA512 0cb3837139f947a7da026bddc8ff6e8025ee0aac6aedf4046383eb8385789d1816158ae20438b15a28c7f0b6552c3570c18abdbb6ef265fa9f497edebae1d808
diff --git a/dev-python/bottleneck/bottleneck-1.3.4.ebuild b/dev-python/bottleneck/bottleneck-1.3.4.ebuild
new file mode 100644
index 000000000000..3bafb223587f
--- /dev/null
+++ b/dev-python/bottleneck/bottleneck-1.3.4.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Fast NumPy array functions written in C"
+HOMEPAGE="https://pypi.org/project/Bottleneck/"
+SRC_URI="
+ https://github.com/pydata/bottleneck/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ >=dev-python/numpy-1.9.1[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-python/versioneer[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+ # https://github.com/pydata/bottleneck/pull/403
+ "${FILESDIR}"/${P}-install-test-data.patch
+)
+
+python_test() {
+ cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
+ epytest
+}
diff --git a/dev-python/bottleneck/files/bottleneck-1.3.4-install-test-data.patch b/dev-python/bottleneck/files/bottleneck-1.3.4-install-test-data.patch
new file mode 100644
index 000000000000..b1ac3edbcdf5
--- /dev/null
+++ b/dev-python/bottleneck/files/bottleneck-1.3.4-install-test-data.patch
@@ -0,0 +1,16 @@
+diff --git a/setup.py b/setup.py
+index db629bd..b0c10cd 100644
+--- a/setup.py
++++ b/setup.py
+@@ -185,7 +185,10 @@ metadata = dict(
+ platforms="OS Independent",
+ version=versioneer.get_version(),
+ packages=find_packages(),
+- package_data={"bottleneck": ["LICENSE"]},
++ package_data={
++ "bottleneck": ["LICENSE"],
++ "bottleneck.tests": ["data/*/*"],
++ },
+ requires=["numpy"],
+ install_requires=["numpy"],
+ extras_require={"doc": ["numpydoc", "sphinx", "gitpython"]},
diff --git a/dev-python/bottleneck/metadata.xml b/dev-python/bottleneck/metadata.xml
index 94e1198a1c8c..c236122ac707 100644
--- a/dev-python/bottleneck/metadata.xml
+++ b/dev-python/bottleneck/metadata.xml
@@ -6,6 +6,7 @@
<name>Gentoo Mathematics Project</name>
</maintainer>
<upstream>
+ <remote-id type="github">pydata/bottleneck</remote-id>
<remote-id type="pypi">Bottleneck</remote-id>
</upstream>
</pkgmetadata>