summaryrefslogtreecommitdiff
path: root/dev-python/toolz
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-21 04:04:33 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-21 04:04:33 +0100
commit3dc4de6331223493015f198dc61854af604da86c (patch)
tree626add8c88d96adf9429cdb19226d9de60e6dafd /dev-python/toolz
parentd895362f98ae63a6ed12cd16d3b3df95d6967f25 (diff)
gentoo auto-resync : 21:10:2024 - 04:04:33
Diffstat (limited to 'dev-python/toolz')
-rw-r--r--dev-python/toolz/Manifest5
-rw-r--r--dev-python/toolz/files/toolz-0.12.1-test.patch88
-rw-r--r--dev-python/toolz/toolz-0.12.1.ebuild31
-rw-r--r--dev-python/toolz/toolz-1.0.0.ebuild2
4 files changed, 2 insertions, 124 deletions
diff --git a/dev-python/toolz/Manifest b/dev-python/toolz/Manifest
index 8d77d99ffa6f..08b2262ef7da 100644
--- a/dev-python/toolz/Manifest
+++ b/dev-python/toolz/Manifest
@@ -1,6 +1,3 @@
-AUX toolz-0.12.1-test.patch 3505 BLAKE2B 6d106d2f6b92ef19ee11df45959be6cdda0944cc586c66a1439a7a054834b4efed884f91f8693c2481868b7c936fe7397d982e31c134efa3b280adc28b4f43f0 SHA512 dbd5d5ce23ce530ee32b4cdb409e6f7f9217ed2f9dfbe5b8a8d9c9164c5ef8e92df219e18629bfd430147ee25a337b16563d150a1c6d08a99bfd556cd1314075
-DIST toolz-0.12.1.tar.gz 66550 BLAKE2B 41b2002147cd453c2a8300c7ec247e06dfc8fba69a772df4a8f5c35349e991453bbbd0d7ed0162391d9314873bf0e169d20c86b875e4d4eca01aaadc76edea61 SHA512 c514934d1a8069cd70e4d8b9ca32cd2c96e85b1dabb45bbbe4b0644581eb7e7f9f6a6d9230483f1872695edf25ff77ad7643cffb3041a012ed64424097a23e9e
DIST toolz-1.0.0.tar.gz 66790 BLAKE2B c5e6d8bb96561f7ca97ac7b3a8233eb1002892974c7dd4127732a89117608dfa964ec9d8ab1f8f679e487885b76d4eaed33be275a90afa4beb4a21e1ce4f29ab SHA512 90ba917ff06b7c4a4bbeb1d2c64bcb34bbe41607c7cea402f9d96f352c20c53edc53333ba06da9193bc714a2a836e68acd55e581b9f590fe1d962fc4ae8847d9
-EBUILD toolz-0.12.1.ebuild 676 BLAKE2B 3894c99eefd22b2e0ae3a64b563f0465a6b974c89b42a8a4ebca330bab476de33787cff408854196bf24e0f36097f6778af100bd208cdd33373eecfdd60829ae SHA512 c5fbde1cfb643e52596f65dd1d39c5d0dbc577499c46699e1f8b5ebdca6fddd654309b661cb0164388a1431de86511b314083302ca1e300ec26dce2cbf60e48f
-EBUILD toolz-1.0.0.ebuild 593 BLAKE2B 200e61e633840865c4b6634d00b6465378304b588c05df7a354ef23af518e27de81af0059d593ab6855ecf3559bf8d409eb0532ad1a30d9508a952d8ed0ab287 SHA512 ccaeecca29a350dc5f8b06b86e9d30a28721775b8428d214589d45b4e6a0b86cf25b7226f4b210a8f01c1d512a14d4f016c7f4e2efe936a2960b1b2b54413de5
+EBUILD toolz-1.0.0.ebuild 587 BLAKE2B e720e241a5c28797ef0eca662d05b37828d08642589d0781bf621c11c73ef4651a7612556dcf52ea2ef4b71c5781709ca760d6c44fe6e7fa085a9bd54dfeb145 SHA512 60a03d8b254f7e24f69285ba2d63a1c0ff44a370649e9620b54ce44c3385b6295d78473fd134e6675b9b516bb0f8be9369447f393ec55eb7c6d4579dfc3a99bc
MISC metadata.xml 386 BLAKE2B ab0f60ec7b44fdb9789d3ef420d5e99cacea66159be7f4736f6502e595a00d740b6cdc3668304ecade1e994e5b2837a986bfff1ad49e884ba936bd039f80b880 SHA512 835c6ac2bc4af983d1b5a77bf4f48e322ec84e79000f0316d694f92800925e521f3b9d742465ba44f96b973ad30dbb37e46bb40589307edd0b8b0f01ceabda31
diff --git a/dev-python/toolz/files/toolz-0.12.1-test.patch b/dev-python/toolz/files/toolz-0.12.1-test.patch
deleted file mode 100644
index 396ed003a62e..000000000000
--- a/dev-python/toolz/files/toolz-0.12.1-test.patch
+++ /dev/null
@@ -1,88 +0,0 @@
-From b79a954ca5fa6801c3a3dc6b39fa523be33884a8 Mon Sep 17 00:00:00 2001
-From: Adam Williamson <awilliam@redhat.com>
-Date: Fri, 14 Jun 2024 13:43:24 -0700
-Subject: [PATCH 1/2] test_excepts: fudge changed indentation in Python 3.13
-
-Signed-off-by: Adam Williamson <awilliam@redhat.com>
----
- toolz/tests/test_functoolz.py | 7 +++++--
- 1 file changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/toolz/tests/test_functoolz.py b/toolz/tests/test_functoolz.py
-index 555cf48d..a28c2a77 100644
---- a/toolz/tests/test_functoolz.py
-+++ b/toolz/tests/test_functoolz.py
-@@ -738,10 +738,13 @@ def f(a, b):
- def test_excepts():
- # These are descriptors, make sure this works correctly.
- assert excepts.__name__ == 'excepts'
-+ # in Python < 3.13 the second line is indented, in 3.13+
-+ # it is not, strip all lines to fudge it
-+ testlines = "\n".join((line.strip() for line in excepts.__doc__.splitlines()))
- assert (
- 'A wrapper around a function to catch exceptions and\n'
-- ' dispatch to a handler.\n'
-- ) in excepts.__doc__
-+ 'dispatch to a handler.\n'
-+ ) in testlines
-
- def idx(a):
- """idx docstring
-
-From 832e81d28882d1235c704de95e1d075ee61976c1 Mon Sep 17 00:00:00 2001
-From: Adam Williamson <awilliam@redhat.com>
-Date: Fri, 14 Jun 2024 16:03:30 -0700
-Subject: [PATCH 2/2] test_inspect_wrapped_property: handle fixed wrapper
- inspection
-
-Python upstream recently fixed the behavior of inspect with
-wrappers: https://github.com/python/cpython/issues/112006 . The
-assertion here relies on the broken behavior, we only get None
-if `inspect(Wrapped)` fails and raises `ValueError`. Now it
-works, we actually get the correct answer, 1. This changes it so
-we assert the correct thing depending on the Python version (the
-fix was backported to 3.11.9 and 3.12.3, so the check has to be a
-bit complicated).
-
-Signed-off-by: Adam Williamson <awilliam@redhat.com>
----
- toolz/tests/test_inspect_args.py | 21 +++++++++++++++++++--
- 1 file changed, 19 insertions(+), 2 deletions(-)
-
-diff --git a/toolz/tests/test_inspect_args.py b/toolz/tests/test_inspect_args.py
-index 93408eb5..f26dbc64 100644
---- a/toolz/tests/test_inspect_args.py
-+++ b/toolz/tests/test_inspect_args.py
-@@ -2,6 +2,7 @@
- import inspect
- import itertools
- import operator
-+import sys
- import toolz
- from toolz.functoolz import (curry, is_valid_args, is_partial_args, is_arity,
- num_required_args, has_varargs, has_keywords)
-@@ -482,6 +483,22 @@ def __wrapped__(self):
- wrapped = Wrapped(func)
- assert inspect.signature(func) == inspect.signature(wrapped)
-
-- assert num_required_args(Wrapped) is None
-- _sigs.signatures[Wrapped] = (_sigs.expand_sig((0, lambda func: None)),)
-+ # inspect.signature did not used to work properly on wrappers,
-+ # but it was fixed in Python 3.11.9, Python 3.12.3 and Python
-+ # 3.13+
-+ inspectbroken = True
-+ if sys.version_info.major > 3:
-+ inspectbroken = False
-+ if sys.version_info.major == 3:
-+ if sys.version_info.minor == 11 and sys.version_info.micro > 8:
-+ inspectbroken = False
-+ if sys.version_info.minor == 12 and sys.version_info.micro > 2:
-+ inspectbroken = False
-+ if sys.version_info.minor > 12:
-+ inspectbroken = False
-+
-+ if inspectbroken:
-+ assert num_required_args(Wrapped) is None
-+ _sigs.signatures[Wrapped] = (_sigs.expand_sig((0, lambda func: None)),)
-+
- assert num_required_args(Wrapped) == 1
diff --git a/dev-python/toolz/toolz-0.12.1.ebuild b/dev-python/toolz/toolz-0.12.1.ebuild
deleted file mode 100644
index ed5ce6e423ee..000000000000
--- a/dev-python/toolz/toolz-0.12.1.ebuild
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 python3_{10..13} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="List processing tools and functional utilities"
-HOMEPAGE="
- https://github.com/pytoolz/toolz/
- https://pypi.org/project/toolz/
-"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
-
-distutils_enable_tests pytest
-
-PATCHES=(
- # https://github.com/pytoolz/toolz/pull/582
- "${FILESDIR}/${P}-test.patch"
-)
-
-python_test() {
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest
-}
diff --git a/dev-python/toolz/toolz-1.0.0.ebuild b/dev-python/toolz/toolz-1.0.0.ebuild
index 1c27fbb22d95..50bf73467e81 100644
--- a/dev-python/toolz/toolz-1.0.0.ebuild
+++ b/dev-python/toolz/toolz-1.0.0.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
distutils_enable_tests pytest