diff --git a/.gitignore b/.gitignore index 3c76d9c..225c06a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /jmespath-0.10.0.tar.gz /jmespath.py-0.10.0.tar.gz /jmespath.py-1.0.0.tar.gz +/jmespath.py-1.0.1.tar.gz diff --git a/217.patch b/217.patch deleted file mode 100644 index 5267d67..0000000 --- a/217.patch +++ /dev/null @@ -1,23 +0,0 @@ -From 6d0222413f06b4b7ed52a1c2f4774bbe1acbd3be Mon Sep 17 00:00:00 2001 -From: Karthikeyan Singaravelan -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 diff --git a/python-jmespath.spec b/python-jmespath.spec index 41a533c..0b417af 100644 --- a/python-jmespath.spec +++ b/python-jmespath.spec @@ -1,16 +1,13 @@ %global pypi_name jmespath Name: python-%{pypi_name} -Version: 1.0.0 -Release: 5%{?dist} +Version: 1.0.1 +Release: 1%{?dist} Summary: JSON Matching Expressions License: MIT URL: https://github.com/jmespath/jmespath.py 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 %description @@ -37,7 +34,6 @@ a JSON document. %prep %setup -q -n jmespath.py-%{version} -%patch217 -p1 rm -rf %{pypi_name}.egg-info %build @@ -60,6 +56,9 @@ rm -rf %{pypi_name}.egg-info %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Sat Nov 12 2022 Kevin Fenzi - 1.0.1-1 +- Update to 1.0.1. Fixes rhbz#2098349 + * Fri Jul 22 2022 Fedora Release Engineering - 1.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index 17bf086..1aba67d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (jmespath.py-1.0.0.tar.gz) = d55ea1c4041e1a5043b3e3b7efcd1e561b92a394e3facbe96b069ff6a9a11c20553e62cfbc5fea966670c71376f9f9ccc24d8905f253e0f1d96dd7a588cc3e44 +SHA512 (jmespath.py-1.0.1.tar.gz) = c1676a4b7565d25c2948569005c503a0ca33908de6ed16536767da2c00c634e4ee345bcaf88a01bf6cd2996aaf722faaedff80061ab65ee77e5bc0f494f86a70