summaryrefslogtreecommitdiff
path: root/dev-python/pybind11
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
committerV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
commit752d6256e5204b958b0ef7905675a940b5e9172f (patch)
tree330d16e6362a49cbed8875a777fe641a43376cd3 /dev-python/pybind11
parent0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff)
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-python/pybind11')
-rw-r--r--dev-python/pybind11/Manifest5
-rw-r--r--dev-python/pybind11/files/pybind11-2.9.1-numpy-1.22.patch173
-rw-r--r--dev-python/pybind11/pybind11-2.9.1.ebuild57
-rw-r--r--dev-python/pybind11/pybind11-2.9.2.ebuild2
4 files changed, 2 insertions, 235 deletions
diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest
index ae5796668134..efbbf4c5854a 100644
--- a/dev-python/pybind11/Manifest
+++ b/dev-python/pybind11/Manifest
@@ -1,6 +1,3 @@
-AUX pybind11-2.9.1-numpy-1.22.patch 7014 BLAKE2B 1031edbb4985778b791562c499cb85262c2164b3386ceeb7d91f92a9ac61b79d799c3dadddb1fc75d63409aaead5cfeca2d301f37271ded184a10f8f1c49a83e SHA512 815e6b076a149928e91318afbb2d3664d1226be231cec1d35c27fb4f85315884bd58efc18dfd57352b5278673c0a3ca14b1ad5892c5d0a80670b9f76f338e421
-DIST pybind11-2.9.1.tar.gz 703882 BLAKE2B cc162332b637f81ea5d3098a2e9882f16a9c889e83e6ccd36d2a2da2f90361d8d188abd559f2313b45ff1de7d9ee56ee198c1193b47829d1fdf6d8871ce35b0c SHA512 1f268cc6df1f572658bfc3e60f7f010bec9b9444d6a6d6c95f7b26f7b4b7dd42846e65ae5a611c01c0341335fdfa84b01272b5c1b2cc11a418f64fecabfa0588
DIST pybind11-2.9.2.tar.gz 709521 BLAKE2B 76ae9c72faad805885eabbe4dadf1092fe814f04f2a8d834da035c7389dcc996c09a63149911aa7a5c0b70d2da9f7c32e94aaf1c941f13345e0aef40a5748dfc SHA512 c6c18e5f59873adb3692640ade26472abd257607e7bb9fd48cfd1949878811e83d6ac6eb8c8dd926622d52ca4f13e5e6a58e0abaaaa1fa814ee831ea2b515272
-EBUILD pybind11-2.9.1.ebuild 1186 BLAKE2B 0a6cc7beac716379b93bde15a0362b6945f094930c1375479e9b987415099ec8a2a66dd6d7b8d0384bb3f50fcf8136218199faadd2a52279871b4ee66a842831 SHA512 4c14dafd7cf0ce56efde3d9517a17f084ba52dbb68bf9d641ab7bdf0df04e118b43a80fbb054c70e8bde877f6859406cf4d0a6db8e4e5f0f826fb37dc6fccb7c
-EBUILD pybind11-2.9.2.ebuild 1116 BLAKE2B 99ce510989f60de310efd0ae935f4ffc9a8b4997e368f2c417e6ee5a058d23a26f32bbe8f31a825871d52c0314a8989ad411a3f91090185327507c2df9c7f93b SHA512 5131fbb2cd22a12732b8dd3cccb8da10026bb97e239df41022b16cd135a5eaf892caeed2081711f4745770985781bb8570703664ddf9290094150513143b81fb
+EBUILD pybind11-2.9.2.ebuild 1116 BLAKE2B 8b5755a4cc0a8ef2026ecc06ce6224e5044aad8111e3b5c05e9af20ef0da3fc17ac188daabbb0d5b095c154c4270f2a4d4202fcf9e99124c090c9f2a34ce7c62 SHA512 27ffc7ceaf1a9251c4616bb96e50eedea22ec7b514350cd295aa0598015d90b1e378a63fd8ad4ba24303db951f924d3a9149c5797c4bcca602cb68472034150b
MISC metadata.xml 420 BLAKE2B 8a3480ac275b7e2893d696bf4fd0d70f41ea941fab9e24b19d8561c0efeee81024ba6fea0ab26333346f3c176d1a87b35229e31ecefc74de2e7614600a64013e SHA512 8140e933878a75968420deab189bab1decd030b5209baada2857a7659dc32980bbc46678c6612ef56e4b4f6b598579bb8227e6c7fd00fbde63a40eb13bccf86c
diff --git a/dev-python/pybind11/files/pybind11-2.9.1-numpy-1.22.patch b/dev-python/pybind11/files/pybind11-2.9.1-numpy-1.22.patch
deleted file mode 100644
index c7f16fb53364..000000000000
--- a/dev-python/pybind11/files/pybind11-2.9.1-numpy-1.22.patch
+++ /dev/null
@@ -1,173 +0,0 @@
-From 116f8c7db5a11d0e1e7830de3f2bbf3e5ed1316c Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Thu, 3 Feb 2022 17:41:45 +0100
-Subject: [PATCH 1/2] test: Strip whitespace when comparing numpy dtypes for
- 1.22 compat
-
-Strip whitespace when comparing numpy dtype str() in order to preserve
-test compatibility with both numpy 1.22 and older versions whose output
-differ by whitespace.
-
-Fixes #3680
----
- tests/test_numpy_dtypes.py | 44 +++++++++++++++++++-------------------
- 1 file changed, 22 insertions(+), 22 deletions(-)
-
-diff --git a/tests/test_numpy_dtypes.py b/tests/test_numpy_dtypes.py
-index 06e578329e..43480334aa 100644
---- a/tests/test_numpy_dtypes.py
-+++ b/tests/test_numpy_dtypes.py
-@@ -32,8 +32,8 @@ def dt_fmt():
- e = "<" if byteorder == "little" else ">"
- return (
- "{{'names':['bool_','uint_','float_','ldbl_'],"
-- " 'formats':['?','" + e + "u4','" + e + "f4','" + e + "f{}'],"
-- " 'offsets':[0,4,8,{}], 'itemsize':{}}}"
-+ "'formats':['?','" + e + "u4','" + e + "f4','" + e + "f{}'],"
-+ "'offsets':[0,4,8,{}],'itemsize':{}}}"
- )
-
-
-@@ -46,7 +46,7 @@ def simple_dtype_fmt():
- def packed_dtype_fmt():
- from sys import byteorder
-
-- return "[('bool_', '?'), ('uint_', '{e}u4'), ('float_', '{e}f4'), ('ldbl_', '{e}f{}')]".format(
-+ return "[('bool_','?'),('uint_','{e}u4'),('float_','{e}f4'),('ldbl_','{e}f{}')]".format(
- np.dtype("longdouble").itemsize, e="<" if byteorder == "little" else ">"
- )
-
-@@ -77,7 +77,7 @@ def partial_nested_fmt():
- partial_size = partial_ld_off + ld.itemsize
- partial_end_padding = partial_size % np.dtype("uint64").alignment
- partial_nested_size = partial_nested_off * 2 + partial_size + partial_end_padding
-- return "{{'names':['a'], 'formats':[{}], 'offsets':[{}], 'itemsize':{}}}".format(
-+ return "{{'names':['a'],'formats':[{}],'offsets':[{}],'itemsize':{}}}".format(
- partial_dtype_fmt(), partial_nested_off, partial_nested_size
- )
-
-@@ -123,25 +123,25 @@ def test_dtype(simple_dtype):
-
- e = "<" if byteorder == "little" else ">"
-
-- assert m.print_dtypes() == [
-+ assert [x.replace(' ', '') for x in m.print_dtypes()] == [
- simple_dtype_fmt(),
- packed_dtype_fmt(),
-- "[('a', {}), ('b', {})]".format(simple_dtype_fmt(), packed_dtype_fmt()),
-+ "[('a',{}),('b',{})]".format(simple_dtype_fmt(), packed_dtype_fmt()),
- partial_dtype_fmt(),
- partial_nested_fmt(),
-- "[('a', 'S3'), ('b', 'S3')]",
-+ "[('a','S3'),('b','S3')]",
- (
-- "{{'names':['a','b','c','d'], "
-- + "'formats':[('S4', (3,)),('"
-+ "{{'names':['a','b','c','d'],"
-+ + "'formats':[('S4',(3,)),('"
- + e
-- + "i4', (2,)),('u1', (3,)),('"
-+ + "i4',(2,)),('u1',(3,)),('"
- + e
-- + "f4', (4, 2))], "
-- + "'offsets':[0,12,20,24], 'itemsize':56}}"
-+ + "f4',(4,2))],"
-+ + "'offsets':[0,12,20,24],'itemsize':56}}"
- ).format(e=e),
-- "[('e1', '" + e + "i8'), ('e2', 'u1')]",
-- "[('x', 'i1'), ('y', '" + e + "u8')]",
-- "[('cflt', '" + e + "c8'), ('cdbl', '" + e + "c16')]",
-+ "[('e1','" + e + "i8'),('e2','u1')]",
-+ "[('x','i1'),('y','" + e + "u8')]",
-+ "[('cflt','" + e + "c8'),('cdbl','" + e + "c16')]",
- ]
-
- d1 = np.dtype(
-@@ -238,7 +238,7 @@ def test_recarray(simple_dtype, packed_dtype):
- ]
-
- arr = m.create_rec_partial(3)
-- assert str(arr.dtype) == partial_dtype_fmt()
-+ assert str(arr.dtype).replace(' ', '') == partial_dtype_fmt()
- partial_dtype = arr.dtype
- assert "" not in arr.dtype.fields
- assert partial_dtype.itemsize > simple_dtype.itemsize
-@@ -246,7 +246,7 @@ def test_recarray(simple_dtype, packed_dtype):
- assert_equal(arr, elements, packed_dtype)
-
- arr = m.create_rec_partial_nested(3)
-- assert str(arr.dtype) == partial_nested_fmt()
-+ assert str(arr.dtype).replace(' ', '') == partial_nested_fmt()
- assert "" not in arr.dtype.fields
- assert "" not in arr.dtype.fields["a"][0].fields
- assert arr.dtype.itemsize > partial_dtype.itemsize
-@@ -285,12 +285,12 @@ def test_array_array():
- e = "<" if byteorder == "little" else ">"
-
- arr = m.create_array_array(3)
-- assert str(arr.dtype) == (
-- "{{'names':['a','b','c','d'], "
-- + "'formats':[('S4', (3,)),('"
-+ assert str(arr.dtype).replace(' ', '') == (
-+ "{{'names':['a','b','c','d'],"
-+ + "'formats':[('S4',(3,)),('"
- + e
-- + "i4', (2,)),('u1', (3,)),('{e}f4', (4, 2))], "
-- + "'offsets':[0,12,20,24], 'itemsize':56}}"
-+ + "i4',(2,)),('u1',(3,)),('{e}f4',(4,2))],"
-+ + "'offsets':[0,12,20,24],'itemsize':56}}"
- ).format(e=e)
- assert m.print_array_array(arr) == [
- "a={{A,B,C,D},{K,L,M,N},{U,V,W,X}},b={0,1},"
-
-From 2c4a1e98e56a257fbc8dd0e8644181acd6d7e5a7 Mon Sep 17 00:00:00 2001
-From: "pre-commit-ci[bot]"
- <66853113+pre-commit-ci[bot]@users.noreply.github.com>
-Date: Thu, 3 Feb 2022 16:45:33 +0000
-Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks
-
-for more information, see https://pre-commit.ci
----
- tests/test_numpy_dtypes.py | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/tests/test_numpy_dtypes.py b/tests/test_numpy_dtypes.py
-index 43480334aa..0098eccb87 100644
---- a/tests/test_numpy_dtypes.py
-+++ b/tests/test_numpy_dtypes.py
-@@ -123,7 +123,7 @@ def test_dtype(simple_dtype):
-
- e = "<" if byteorder == "little" else ">"
-
-- assert [x.replace(' ', '') for x in m.print_dtypes()] == [
-+ assert [x.replace(" ", "") for x in m.print_dtypes()] == [
- simple_dtype_fmt(),
- packed_dtype_fmt(),
- "[('a',{}),('b',{})]".format(simple_dtype_fmt(), packed_dtype_fmt()),
-@@ -238,7 +238,7 @@ def test_recarray(simple_dtype, packed_dtype):
- ]
-
- arr = m.create_rec_partial(3)
-- assert str(arr.dtype).replace(' ', '') == partial_dtype_fmt()
-+ assert str(arr.dtype).replace(" ", "") == partial_dtype_fmt()
- partial_dtype = arr.dtype
- assert "" not in arr.dtype.fields
- assert partial_dtype.itemsize > simple_dtype.itemsize
-@@ -246,7 +246,7 @@ def test_recarray(simple_dtype, packed_dtype):
- assert_equal(arr, elements, packed_dtype)
-
- arr = m.create_rec_partial_nested(3)
-- assert str(arr.dtype).replace(' ', '') == partial_nested_fmt()
-+ assert str(arr.dtype).replace(" ", "") == partial_nested_fmt()
- assert "" not in arr.dtype.fields
- assert "" not in arr.dtype.fields["a"][0].fields
- assert arr.dtype.itemsize > partial_dtype.itemsize
-@@ -285,7 +285,7 @@ def test_array_array():
- e = "<" if byteorder == "little" else ">"
-
- arr = m.create_array_array(3)
-- assert str(arr.dtype).replace(' ', '') == (
-+ assert str(arr.dtype).replace(" ", "") == (
- "{{'names':['a','b','c','d'],"
- + "'formats':[('S4',(3,)),('"
- + e
diff --git a/dev-python/pybind11/pybind11-2.9.1.ebuild b/dev-python/pybind11/pybind11-2.9.1.ebuild
deleted file mode 100644
index 1db1018861b4..000000000000
--- a/dev-python/pybind11/pybind11-2.9.1.ebuild
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} )
-inherit cmake distutils-r1
-
-DESCRIPTION="AST-based Python refactoring library"
-HOMEPAGE="https://pybind11.readthedocs.io/en/stable/"
-SRC_URI="https://github.com/pybind/pybind11/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
-
-RDEPEND="
- dev-cpp/eigen:3
-"
-
-distutils_enable_tests pytest
-
-python_prepare_all() {
- export PYBIND11_USE_CMAKE=1
- cmake_src_prepare
-
- local PATCHES=(
- # https://github.com/pybind/pybind11/pull/3682
- "${FILESDIR}"/${P}-numpy-1.22.patch
- )
- distutils-r1_python_prepare_all
-}
-
-python_configure() {
- local mycmakeargs=(
- # disable forced lto
- -DPYBIND11_LTO_CXX_FLAGS=
- -DPYBIND11_INSTALL=ON
- -DPYBIND11_TEST=$(usex test)
- )
- cmake_src_configure
-}
-
-python_compile() {
- distutils-r1_python_compile
- # Compilation only does anything for tests
- use test && cmake_src_compile
-}
-
-python_test() {
- cmake_build check
-}
-
-python_install() {
- distutils-r1_python_install
- cmake_src_install
-}
diff --git a/dev-python/pybind11/pybind11-2.9.2.ebuild b/dev-python/pybind11/pybind11-2.9.2.ebuild
index 4d0a3fabb671..1eec1ea3b37c 100644
--- a/dev-python/pybind11/pybind11-2.9.2.ebuild
+++ b/dev-python/pybind11/pybind11-2.9.2.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/pybind/pybind11/archive/v${PV}.tar.gz -> ${P}.tar.gz
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 ~sparc x86"
RDEPEND="
dev-cpp/eigen:3