forked from pool/python-dogpile.cache
Accepting request 424261 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/424261 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dogpile.cache?expand=0&rev=11
This commit is contained in:
@@ -1,58 +0,0 @@
|
||||
From 85dd3797d5abeea16ba7636796e07338878fba10 Mon Sep 17 00:00:00 2001
|
||||
From: Jamie Lennox <jamielennox@gmail.com>
|
||||
Date: Thu, 9 Jun 2016 09:50:43 -0400
|
||||
Subject: [PATCH] Link moved functions in dogpile.cache.util
|
||||
|
||||
Change-Id: I5819a237d6abe7c2ee5e04abeedc06ff229388a8
|
||||
Pull-request: https://bitbucket.org/zzzeek/dogpile.cache/pull-requests/51
|
||||
---
|
||||
docs/build/changelog.rst | 11 +++++++++++
|
||||
dogpile/cache/util.py | 8 ++++++++
|
||||
2 files changed, 19 insertions(+)
|
||||
|
||||
Index: dogpile.cache-0.6.1/docs/build/changelog.rst
|
||||
===================================================================
|
||||
--- dogpile.cache-0.6.1.orig/docs/build/changelog.rst
|
||||
+++ dogpile.cache-0.6.1/docs/build/changelog.rst
|
||||
@@ -13,6 +13,17 @@ Changelog
|
||||
and ``NameRegistry`` into the base namespace, in addition to
|
||||
``dogpile.core.nameregistry`` and ``dogpile.core.readwrite_lock``.
|
||||
|
||||
+ .. change::
|
||||
+ :tags: bug
|
||||
+
|
||||
+ Restored some more util symbols that users may have been relying upon
|
||||
+ (although these were not necessarily intended as user-facing):
|
||||
+ ``dogpile.cache.util.coerce_string_conf``,
|
||||
+ ``dogpile.cache.util.KeyReentrantMutex``,
|
||||
+ ``dogpile.cache.util.memoized_property``,
|
||||
+ ``dogpile.cache.util.PluginLoader``,
|
||||
+ ``dogpile.cache.util.to_list``.
|
||||
+
|
||||
.. changelog::
|
||||
:version: 0.6.0
|
||||
:released: Mon Jun 6 2016
|
||||
Index: dogpile.cache-0.6.1/dogpile/cache/util.py
|
||||
===================================================================
|
||||
--- dogpile.cache-0.6.1.orig/dogpile/cache/util.py
|
||||
+++ dogpile.cache-0.6.1/dogpile/cache/util.py
|
||||
@@ -1,6 +1,7 @@
|
||||
from hashlib import sha1
|
||||
import inspect
|
||||
from ..util import compat
|
||||
+from ..util import langhelpers
|
||||
|
||||
|
||||
def function_key_generator(namespace, fn, to_str=compat.string_type):
|
||||
@@ -75,4 +76,11 @@ def length_conditional_mangler(length, m
|
||||
return key
|
||||
return mangle
|
||||
|
||||
+# in the 0.6 release these functions were moved to the dogpile.util namespace.
|
||||
+# They are linked here to maintain compatibility with older versions.
|
||||
|
||||
+coerce_string_conf = langhelpers.coerce_string_conf
|
||||
+KeyReentrantMutex = langhelpers.KeyReentrantMutex
|
||||
+memoized_property = langhelpers.memoized_property
|
||||
+PluginLoader = langhelpers.PluginLoader
|
||||
+to_list = langhelpers.to_list
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:69b52dc56bb52d974e9e9fb2764e1311abcd1fd625de07b4e5c05550ac9b40c0
|
||||
size 324046
|
||||
3
dogpile.cache-0.6.2.tar.gz
Normal file
3
dogpile.cache-0.6.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:73793471af07af6dc5b3ee015abfaca4220caaa34c615537f5ab007ed150726d
|
||||
size 329762
|
||||
@@ -1,3 +1,27 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 31 10:47:40 UTC 2016 - tbechtold@suse.com
|
||||
|
||||
- update to 0.6.2:
|
||||
* Added a new system to allow custom plugins specific to the issue of
|
||||
"invalidate the entire region", using a new base class
|
||||
:class:`.RegionInvalidationStrategy`. As there are many potential
|
||||
strategies to this (special backend function, storing special keys, etc.)
|
||||
the mechanism for both soft and hard invalidation is now customizable.
|
||||
New approaches to region invalidation can be contributed as documented
|
||||
recipes.
|
||||
* Added a new cache key generator :func:`.kwarg_function_key_generator`,
|
||||
which takes keyword arguments as well as positional arguments into
|
||||
account when forming the cache key.
|
||||
* Restored some more util symbols that users may have been relying upon
|
||||
(although these were not necessarily intended as user-facing):
|
||||
``dogpile.cache.util.coerce_string_conf``,
|
||||
``dogpile.cache.util.KeyReentrantMutex``,
|
||||
``dogpile.cache.util.memoized_property``,
|
||||
``dogpile.cache.util.PluginLoader``,
|
||||
``dogpile.cache.util.to_list``.
|
||||
* Drop 0001-Link-moved-functions-in-dogpile.cache.util.patch
|
||||
applied upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 4 08:00:04 UTC 2016 - tbechtold@suse.com
|
||||
|
||||
|
||||
@@ -17,15 +17,13 @@
|
||||
|
||||
|
||||
Name: python-dogpile.cache
|
||||
Version: 0.6.1
|
||||
Version: 0.6.2
|
||||
Release: 0
|
||||
Summary: A caching front-end based on the Dogpile lock
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: http://bitbucket.org/zzzeek/dogpile.cache
|
||||
Source: https://pypi.io/packages/source/d/dogpile.cache/dogpile.cache-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM 0001-Link-moved-functions-in-dogpile.cache.util.patch
|
||||
Patch0: 0001-Link-moved-functions-in-dogpile.cache.util.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
@@ -47,7 +45,6 @@ new value.
|
||||
|
||||
%prep
|
||||
%setup -q -n dogpile.cache-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
|
||||
Reference in New Issue
Block a user