diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-python/jmespath | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-python/jmespath')
-rw-r--r-- | dev-python/jmespath/Manifest | 5 | ||||
-rw-r--r-- | dev-python/jmespath/files/jmespath-1.0.0-py311.patch | 26 | ||||
-rw-r--r-- | dev-python/jmespath/jmespath-1.0.0.ebuild | 6 | ||||
-rw-r--r-- | dev-python/jmespath/jmespath-1.0.1.ebuild | 32 |
4 files changed, 67 insertions, 2 deletions
diff --git a/dev-python/jmespath/Manifest b/dev-python/jmespath/Manifest index 679cbf3008d6..f9722eee2406 100644 --- a/dev-python/jmespath/Manifest +++ b/dev-python/jmespath/Manifest @@ -1,3 +1,6 @@ +AUX jmespath-1.0.0-py311.patch 857 BLAKE2B 8cd99015c73adad7855c6d7f6aa171dd2a0ad44300a37d7eb0710e5a696c31dc785632a69bc3a961d7d141058baca7325593d4cc4589c99735b0e050ca090e0b SHA512 f6c140589ff6a9049021437f846b1cdc8a6afcd0078679f04ba1e29e3d8cddc0c88e1b147c101d137f730c028f622c45054c8db7e30e5b898d3ff9940fa3a943 DIST jmespath.py-1.0.0.gh.tar.gz 80829 BLAKE2B dcd5e61ef846c5bcd9ac59480f909b05310dbe785c21e97c81981db90d104d17a3319f766b8926e8c8e3ae8b0e2164051d5312c74fa9c16979d802aafd286654 SHA512 d55ea1c4041e1a5043b3e3b7efcd1e561b92a394e3facbe96b069ff6a9a11c20553e62cfbc5fea966670c71376f9f9ccc24d8905f253e0f1d96dd7a588cc3e44 -EBUILD jmespath-1.0.0.ebuild 797 BLAKE2B 3b253c909ef4c8c944896709e79fbd22037c2362adbbd271909a7e1cad13822b457952722ed5abc340b447e2c28a547b50064eb5cc5aa68800372dbebd577fd2 SHA512 e1c3cce5c62177502f49f876557f6c75bbd9b2b97e7127b03c71cb3f00b2aea0c4ef0d2a8779762151d60ea39b3d35c37b2e7c7e9fdd35db9e3ca2138bc26a70 +DIST jmespath.py-1.0.1.gh.tar.gz 80936 BLAKE2B 9dfcdf4a8359d0e7c5f333e349d12e5c438693cf81b64df1a8a3b7211304ee228e9579be528a9b35ee0e4289539a5b4e214fcb9cb42d2b3fdbdd2e1a83975bc2 SHA512 c1676a4b7565d25c2948569005c503a0ca33908de6ed16536767da2c00c634e4ee345bcaf88a01bf6cd2996aaf722faaedff80061ab65ee77e5bc0f494f86a70 +EBUILD jmespath-1.0.0.ebuild 842 BLAKE2B 875c2eac8288ceef5d863e764b27be3db5d2ddda2e7c40001feff2bf01f0788cf0baeb0880ebf6a524af1dac261c5cf33b658271fbc588ad1954d0f95ac165e9 SHA512 8feedd4bfd68a5938f4fe03d3bed8ee892ce23c33cc7de4028ba3526c35434182cd66d30b9fa847e1f61724eef9d43795b933aab9d97a4c16434cc0d4c1f8fcc +EBUILD jmespath-1.0.1.ebuild 702 BLAKE2B a9920494665680744737703a0994f387fd1bd3be0aa49bcb98556ea0088064e7aa03779791618c67cad56d36f1c41dfa79a992deba99b8c43043081b70da6fa8 SHA512 996de1ba4ff49484c3734b92b42f5bf4e4f7176f7f81985d018451d5f4460566e87b92f07e2e43ef8afa1e16f39d7c277972d3e983c6f298ddce0064c4590f4a MISC metadata.xml 409 BLAKE2B 7adc2c326ae16f921adb5958e2f80b3309c4b4321c529e11225a7db22dbdb441335a1f35132147ad651c747075078263870ace4e1472398e833fbffd8e90ffd1 SHA512 a4009dc996e7c9df5b5bc31d7504af2d315ec57326edad640ce075f232c435d2dcfe400a7cb10cc33bafc142651a712df570efbfb2592361c078942c1e9a59bb diff --git a/dev-python/jmespath/files/jmespath-1.0.0-py311.patch b/dev-python/jmespath/files/jmespath-1.0.0-py311.patch new file mode 100644 index 000000000000..90c7bef9beee --- /dev/null +++ b/dev-python/jmespath/files/jmespath-1.0.0-py311.patch @@ -0,0 +1,26 @@ +From 325d8111a924a951d8778c9fc1dbce30be267435 Mon Sep 17 00:00:00 2001 +From: Karthikeyan Singaravelan <tir.karthi@gmail.com> +Date: Wed, 10 Mar 2021 14:15:36 +0000 +Subject: [PATCH] Use list for random.sample since using a set has been + deprecated since Python 3.9 + +--- + jmespath/parser.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/jmespath/parser.py b/jmespath/parser.py +index eeac38f..4706688 100644 +--- a/jmespath/parser.py ++++ b/jmespath/parser.py +@@ -489,7 +489,7 @@ class Parser(object): + lex_position, actual_value, actual_type, message) + + def _free_cache_entries(self): +- for key in random.sample(self._CACHE.keys(), int(self._MAX_SIZE / 2)): ++ for key in random.sample(list(self._CACHE.keys()), int(self._MAX_SIZE / 2)): + self._CACHE.pop(key, None) + + @classmethod +-- +2.35.1 + diff --git a/dev-python/jmespath/jmespath-1.0.0.ebuild b/dev-python/jmespath/jmespath-1.0.0.ebuild index 18253469abc7..7d281153bda1 100644 --- a/dev-python/jmespath/jmespath-1.0.0.ebuild +++ b/dev-python/jmespath/jmespath-1.0.0.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} pypy3 ) +PYTHON_COMPAT=( python3_{8..11} pypy3 ) inherit distutils-r1 @@ -32,6 +32,10 @@ BDEPEND=" distutils_enable_tests pytest +PATCHES=( + "${FILESDIR}/${P}-py311.patch" +) + src_prepare() { # leftover import sed -i -e '/nose/d' extra/test_hypothesis.py || die diff --git a/dev-python/jmespath/jmespath-1.0.1.ebuild b/dev-python/jmespath/jmespath-1.0.1.ebuild new file mode 100644 index 000000000000..194bb64200d5 --- /dev/null +++ b/dev-python/jmespath/jmespath-1.0.1.ebuild @@ -0,0 +1,32 @@ +# 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..11} pypy3 ) + +inherit distutils-r1 + +MY_P=jmespath.py-${PV} +DESCRIPTION="JSON Matching Expressions" +HOMEPAGE=" + https://github.com/jmespath/jmespath.py/ + https://pypi.org/project/jmespath/ +" +SRC_URI=" + https://github.com/jmespath/jmespath.py/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +EPYTEST_IGNORE=( + # fuzzing tests, they take forever + extra/test_hypothesis.py +) + +distutils_enable_tests pytest |