mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 00:08:05 +03:00
dev-python/jmespath: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST jmespath.py-1.0.0.gh.tar.gz 80829 BLAKE2B dcd5e61ef846c5bcd9ac59480f909b05310dbe785c21e97c81981db90d104d17a3319f766b8926e8c8e3ae8b0e2164051d5312c74fa9c16979d802aafd286654 SHA512 d55ea1c4041e1a5043b3e3b7efcd1e561b92a394e3facbe96b069ff6a9a11c20553e62cfbc5fea966670c71376f9f9ccc24d8905f253e0f1d96dd7a588cc3e44
|
||||
DIST jmespath.py-1.0.1.gh.tar.gz 80936 BLAKE2B 9dfcdf4a8359d0e7c5f333e349d12e5c438693cf81b64df1a8a3b7211304ee228e9579be528a9b35ee0e4289539a5b4e214fcb9cb42d2b3fdbdd2e1a83975bc2 SHA512 c1676a4b7565d25c2948569005c503a0ca33908de6ed16536767da2c00c634e4ee345bcaf88a01bf6cd2996aaf722faaedff80061ab65ee77e5bc0f494f86a70
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
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
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
# 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"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-py311.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# leftover import
|
||||
sed -i -e '/nose/d' extra/test_hypothesis.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
Reference in New Issue
Block a user