* [gentoo-commits] repo/gentoo:master commit in: dev-python/jmespath/files/, dev-python/jmespath/
@ 2022-05-14 14:21 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2022-05-14 14:21 UTC (permalink / raw
To: gentoo-commits
commit: 24d4351a4c2575dfcdef0371f0b645981398a9c0
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 14 13:17:17 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 14 14:20:59 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24d4351a
dev-python/jmespath: Enable py3.11
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../jmespath/files/jmespath-1.0.0-py311.patch | 26 ++++++++++++++++++++++
dev-python/jmespath/jmespath-1.0.0.ebuild | 6 ++++-
2 files changed, 31 insertions(+), 1 deletion(-)
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/jmespath/files/, dev-python/jmespath/
@ 2022-07-24 18:41 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2022-07-24 18:41 UTC (permalink / raw
To: gentoo-commits
commit: d7ec5b3556fa1314b8935e6d7809f8a4a060ee18
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 24 18:40:31 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 24 18:40:31 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7ec5b35
dev-python/jmespath: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/jmespath/Manifest | 1 -
.../jmespath/files/jmespath-1.0.0-py311.patch | 26 -------------
dev-python/jmespath/jmespath-1.0.0.ebuild | 43 ----------------------
3 files changed, 70 deletions(-)
diff --git a/dev-python/jmespath/Manifest b/dev-python/jmespath/Manifest
index c783c9560f7e..6e874ab2b77a 100644
--- a/dev-python/jmespath/Manifest
+++ b/dev-python/jmespath/Manifest
@@ -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
diff --git a/dev-python/jmespath/files/jmespath-1.0.0-py311.patch b/dev-python/jmespath/files/jmespath-1.0.0-py311.patch
deleted file mode 100644
index 90c7bef9beee..000000000000
--- a/dev-python/jmespath/files/jmespath-1.0.0-py311.patch
+++ /dev/null
@@ -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
-
diff --git a/dev-python/jmespath/jmespath-1.0.0.ebuild b/dev-python/jmespath/jmespath-1.0.0.ebuild
deleted file mode 100644
index 7d281153bda1..000000000000
--- a/dev-python/jmespath/jmespath-1.0.0.ebuild
+++ /dev/null
@@ -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
-}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-24 18:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-14 14:21 [gentoo-commits] repo/gentoo:master commit in: dev-python/jmespath/files/, dev-python/jmespath/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2022-07-24 18:41 Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox