From 038768d236bb773f894691e644d552ec4493159289b96d4eee76d0d53688a13a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 30 Mar 2020 12:54:37 +0000 Subject: [PATCH] Accepting request 789757 from home:mcalabkova:branches:devel:languages:python - Update to 0.2.1 * Change links to blaze org * Fix Cache.clear() * Add a resize method. * make default data dict inside __init__ * test against 3.7 and 3.8, drop 2.7 - Drop upstreamed patch fix_cache_clear.patch OBS-URL: https://build.opensuse.org/request/show/789757 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachey?expand=0&rev=6 --- cachey-0.1.1.tar.gz | 3 --- cachey-0.2.1.tar.gz | 3 +++ fix_cache_clear.patch | 22 ---------------------- python-cachey.changes | 11 +++++++++++ python-cachey.spec | 8 +++----- 5 files changed, 17 insertions(+), 30 deletions(-) delete mode 100644 cachey-0.1.1.tar.gz create mode 100644 cachey-0.2.1.tar.gz delete mode 100644 fix_cache_clear.patch diff --git a/cachey-0.1.1.tar.gz b/cachey-0.1.1.tar.gz deleted file mode 100644 index 65cb52d..0000000 --- a/cachey-0.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:de1db64409158d40acdfdd869ccbca7ce90b2f2ba20d44fb68f32e72f5679f21 -size 6058 diff --git a/cachey-0.2.1.tar.gz b/cachey-0.2.1.tar.gz new file mode 100644 index 0000000..03cb19f --- /dev/null +++ b/cachey-0.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0310ba8afe52729fa7626325c8d8356a8421c434bf887ac851e58dcf7cf056a6 +size 6461 diff --git a/fix_cache_clear.patch b/fix_cache_clear.patch deleted file mode 100644 index 172ff87..0000000 --- a/fix_cache_clear.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 6d4aca78bdf846a4ab1d6755e58db3c671b4a3ea Mon Sep 17 00:00:00 2001 -From: Dave Cole -Date: Tue, 17 Jan 2017 14:42:53 +1100 -Subject: [PATCH] Fix Cache.clear() - ---- - cachey/cache.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/cachey/cache.py b/cachey/cache.py -index b8ad6bd..17442a5 100644 ---- a/cachey/cache.py -+++ b/cachey/cache.py -@@ -142,7 +142,7 @@ def __contains__(self, key): - return key in self.data - - def clear(self): -- while self: -+ while self.data: - self._shrink_one() - - def __nonzero__(self): diff --git a/python-cachey.changes b/python-cachey.changes index bab7dbc..6f20cfc 100644 --- a/python-cachey.changes +++ b/python-cachey.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon Mar 30 09:17:57 UTC 2020 - Marketa Calabkova + +- Update to 0.2.1 + * Change links to blaze org + * Fix Cache.clear() + * Add a resize method. + * make default data dict inside __init__ + * test against 3.7 and 3.8, drop 2.7 +- Drop upstreamed patch fix_cache_clear.patch + ------------------------------------------------------------------- Thu Jan 24 09:25:19 UTC 2019 - Jan Engelhardt diff --git a/python-cachey.spec b/python-cachey.spec index fa0bcf2..04e75da 100644 --- a/python-cachey.spec +++ b/python-cachey.spec @@ -1,7 +1,7 @@ # # spec file for package python-cachey # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,17 +16,16 @@ # +%define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cachey -Version: 0.1.1 +Version: 0.2.1 Release: 0 Summary: A Python cache mindful of computation/storage costs License: BSD-3-Clause Group: Development/Languages/Python URL: http://github.com/mrocklin/cachey/ Source: https://files.pythonhosted.org/packages/source/c/cachey/cachey-%{version}.tar.gz -# PATCH-FIX-UPSTREAM fix_cache_clear.patch - fix unit test error -Patch0: fix_cache_clear.patch BuildRequires: %{python_module HeapDict} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -54,7 +53,6 @@ roughly linear amplification of repeated results. %prep %setup -q -n cachey-%{version} -%patch0 -p1 %build %python_build