Skip to content

Commit 640e72c

Browse files
authored
Merge pull request #316 from girder/update-cache-tools
Handle the newest version of cachetools.
2 parents 400f7cc + 48505e5 commit 640e72c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

server/cache_util/memcache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class MemCache(cachetools.Cache):
3333
"""Use memcached as the backing cache."""
3434

3535
def __init__(self, url='127.0.0.1', username=None, password=None,
36-
missing=None, getsizeof=None, mustBeAvailable=False):
37-
super(MemCache, self).__init__(0, missing, getsizeof)
36+
getsizeof=None, mustBeAvailable=False):
37+
super(MemCache, self).__init__(0, getsizeof=getsizeof)
3838
if isinstance(url, six.string_types):
3939
url = [url]
4040
# pylibmc used to connect to memcached client. Set failover behavior.

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
import json
5+
import platform
56

67
try:
78
from setuptools import setup
@@ -55,7 +56,7 @@
5556
],
5657
include_package_data=True,
5758
install_requires=[
58-
'cachetools>=2.0.0',
59+
'cachetools>=3.0.0',
5960
'enum34>=1.1.6',
6061
'jsonschema>=2.5.1',
6162
'libtiff>=0.4.1',
@@ -67,8 +68,8 @@
6768
],
6869
extras_require={
6970
'memcached': [
70-
'pylibmc>=1.5.1;platform_system!="Windows"'
71-
],
71+
'pylibmc>=1.5.1'
72+
] if platform.system() != 'Windows' else [],
7273
'openslide': [
7374
'openslide-python>=1.1.0'
7475
],

0 commit comments

Comments
 (0)