Update to 1.0.1. Fixes rhbz#2098349
This commit is contained in:
parent
82ef9c50b3
commit
07902f5f36
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@
|
|||||||
/jmespath-0.10.0.tar.gz
|
/jmespath-0.10.0.tar.gz
|
||||||
/jmespath.py-0.10.0.tar.gz
|
/jmespath.py-0.10.0.tar.gz
|
||||||
/jmespath.py-1.0.0.tar.gz
|
/jmespath.py-1.0.0.tar.gz
|
||||||
|
/jmespath.py-1.0.1.tar.gz
|
||||||
|
23
217.patch
23
217.patch
@ -1,23 +0,0 @@
|
|||||||
From 6d0222413f06b4b7ed52a1c2f4774bbe1acbd3be 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 @@ def _raise_parse_error_maybe_eof(self, expected_type, token):
|
|
||||||
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
|
|
@ -1,16 +1,13 @@
|
|||||||
%global pypi_name jmespath
|
%global pypi_name jmespath
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 1.0.0
|
Version: 1.0.1
|
||||||
Release: 5%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: JSON Matching Expressions
|
Summary: JSON Matching Expressions
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/jmespath/jmespath.py
|
URL: https://github.com/jmespath/jmespath.py
|
||||||
Source0: %{url}/archive/%{version}/jmespath.py-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/jmespath.py-%{version}.tar.gz
|
||||||
# Use list for random.sample since using a set has been removed in Python 3.11.
|
|
||||||
# This can be removed once upstream PR is merged.
|
|
||||||
Patch217: https://github.com/jmespath/jmespath.py/pull/217.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -37,7 +34,6 @@ a JSON document.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n jmespath.py-%{version}
|
%setup -q -n jmespath.py-%{version}
|
||||||
%patch217 -p1
|
|
||||||
rm -rf %{pypi_name}.egg-info
|
rm -rf %{pypi_name}.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -60,6 +56,9 @@ rm -rf %{pypi_name}.egg-info
|
|||||||
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Nov 12 2022 Kevin Fenzi <kevin@scrye.com> - 1.0.1-1
|
||||||
|
- Update to 1.0.1. Fixes rhbz#2098349
|
||||||
|
|
||||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-5
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (jmespath.py-1.0.0.tar.gz) = d55ea1c4041e1a5043b3e3b7efcd1e561b92a394e3facbe96b069ff6a9a11c20553e62cfbc5fea966670c71376f9f9ccc24d8905f253e0f1d96dd7a588cc3e44
|
SHA512 (jmespath.py-1.0.1.tar.gz) = c1676a4b7565d25c2948569005c503a0ca33908de6ed16536767da2c00c634e4ee345bcaf88a01bf6cd2996aaf722faaedff80061ab65ee77e5bc0f494f86a70
|
||||||
|
Loading…
Reference in New Issue
Block a user