forked from pool/python-cachey
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
This commit is contained in:
committed by
Git OBS Bridge
parent
eb7618a21d
commit
038768d236
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:de1db64409158d40acdfdd869ccbca7ce90b2f2ba20d44fb68f32e72f5679f21
|
||||
size 6058
|
||||
3
cachey-0.2.1.tar.gz
Normal file
3
cachey-0.2.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0310ba8afe52729fa7626325c8d8356a8421c434bf887ac851e58dcf7cf056a6
|
||||
size 6461
|
||||
@@ -1,22 +0,0 @@
|
||||
From 6d4aca78bdf846a4ab1d6755e58db3c671b4a3ea Mon Sep 17 00:00:00 2001
|
||||
From: Dave Cole <david.cole@data61.csiro.au>
|
||||
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):
|
||||
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 30 09:17:57 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- 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 <jengelh@inai.de>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user