diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-06-20 23:13:12 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-06-21 00:59:53 +0200 |
commit | d79035bd10b11df363568d9b6d01ed87157ec385 (patch) | |
tree | 449ed10bad9b31690800785e54f5c5139a5af430 /dev-python/toolz | |
parent | dev-games/aseprite: Stabilize 1.1.9 x86, #770664 (diff) | |
download | gentoo-d79035bd10b11df363568d9b6d01ed87157ec385.tar.gz gentoo-d79035bd10b11df363568d9b6d01ed87157ec385.tar.bz2 gentoo-d79035bd10b11df363568d9b6d01ed87157ec385.zip |
dev-python/toolz: Enable py3.10
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/toolz')
-rw-r--r-- | dev-python/toolz/files/toolz-0.11.1-py310.patch | 25 | ||||
-rw-r--r-- | dev-python/toolz/toolz-0.11.1.ebuild | 8 |
2 files changed, 31 insertions, 2 deletions
diff --git a/dev-python/toolz/files/toolz-0.11.1-py310.patch b/dev-python/toolz/files/toolz-0.11.1-py310.patch new file mode 100644 index 000000000000..d926f3457ab1 --- /dev/null +++ b/dev-python/toolz/files/toolz-0.11.1-py310.patch @@ -0,0 +1,25 @@ +From da81b1e8ab96b22ed81e6414099aba066633f3ff Mon Sep 17 00:00:00 2001 +From: Erik Welch <erik.n.welch@gmail.com> +Date: Thu, 22 Apr 2021 00:20:24 -0500 +Subject: [PATCH] Support Python 3.10 by adding `anext` signature. + +Fixes #512 +--- + .travis.yml | 3 ++- + toolz/_signatures.py | 3 +++ + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/toolz/_signatures.py b/toolz/_signatures.py +index 328cea91..3ce1616a 100644 +--- a/toolz/_signatures.py ++++ b/toolz/_signatures.py +@@ -45,6 +45,9 @@ + lambda x: None], + all=[ + lambda iterable: None], ++ anext=[ ++ lambda aiterator: None, ++ lambda aiterator, default: None], + any=[ + lambda iterable: None], + apply=[ diff --git a/dev-python/toolz/toolz-0.11.1.ebuild b/dev-python/toolz/toolz-0.11.1.ebuild index 5e86ca531555..5ba2982613f8 100644 --- a/dev-python/toolz/toolz-0.11.1.ebuild +++ b/dev-python/toolz/toolz-0.11.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 @@ -18,3 +18,7 @@ BDEPEND=" dev-python/versioneer[${PYTHON_USEDEP}]" distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/${P}-py310.patch +) |