14
0
forked from pool/python-cachy

- Add patch support-pymemcache.patch:

* Use pymemcache rather than other clients.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachy?expand=0&rev=7
This commit is contained in:
2022-12-19 02:09:52 +00:00
committed by Git OBS Bridge
parent 5671a11e09
commit e73bb597c3
3 changed files with 29 additions and 4 deletions

19
support-pymemcache.patch Normal file
View File

@@ -0,0 +1,19 @@
Index: cachy-0.3.0/cachy/stores/memcached_store.py
===================================================================
--- cachy-0.3.0.orig/cachy/stores/memcached_store.py
+++ cachy-0.3.0/cachy/stores/memcached_store.py
@@ -1,12 +1,9 @@
# -*- coding: utf-8 -*-
try:
- from pylibmc import memcache
+ from pymemcache.client import base as memcache
except ImportError:
- try:
- import memcache
- except ImportError:
- memcache = None
+ memcache = None
from ..contracts.taggable_store import TaggableStore