From 4630ab11152089d00f25133f12426652dadee322 Mon Sep 17 00:00:00 2001 From: holys Date: Tue, 8 Jul 2014 15:54:56 +0800 Subject: [PATCH] fixed setup.py; fixed test_zset.py bug --- client/ledis-py/setup.py | 11 ++--------- client/ledis-py/tests/test_cmd_zset.py | 3 +-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/client/ledis-py/setup.py b/client/ledis-py/setup.py index c6c4376..46a61da 100644 --- a/client/ledis-py/setup.py +++ b/client/ledis-py/setup.py @@ -25,15 +25,12 @@ except ImportError: from distutils.core import setup PyTest = lambda x: x -f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) -long_description = f.read() -f.close() setup( name='ledis', version=__version__, - description='Python client for ledis key-value store', - long_description=long_description, + description='Python client for ledisdb key-value database', + long_description='Python client for ledisdb key-value database', url='https://github.com/siddontang/ledisdb', keywords=['ledis', 'key-value store'], license='MIT', @@ -49,9 +46,5 @@ setup( 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.2', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', ] ) diff --git a/client/ledis-py/tests/test_cmd_zset.py b/client/ledis-py/tests/test_cmd_zset.py index ac870ed..08d0e8a 100644 --- a/client/ledis-py/tests/test_cmd_zset.py +++ b/client/ledis-py/tests/test_cmd_zset.py @@ -66,7 +66,7 @@ class TestCmdZset(unittest.TestCase): assert l.zrangebyscore('a', 2, 4, withscores=True) == \ [('a2', 2), ('a3', 3), ('a4', 4)] - def test_rank(self): + def test_zrank(self): l.zadd('a', a1=1, a2=2, a3=3, a4=4, a5=5) assert l.zrank('a', 'a1') == 0 assert l.zrank('a', 'a3') == 2 @@ -167,4 +167,3 @@ class TestCmdZset(unittest.TestCase): assert 0 < l.zttl('a') <= 100 assert l.zpersist('a') assert l.zttl('a') == -1 -