Hello community,
here is the log from the commit of package python-fakeredis for
openSUSE:Factory checked in at 2019-08-22 10:55:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-fakeredis (Old)
and /work/SRC/openSUSE:Factory/.python-fakeredis.new.22127 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fakeredis"
Thu Aug 22 10:55:52 2019 rev:2 rq:725096 version:1.0.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-fakeredis/python-fakeredis.changes
2019-04-05 12:03:45.958593820 +0200
+++
/work/SRC/openSUSE:Factory/.python-fakeredis.new.22127/python-fakeredis.changes
2019-08-22 10:55:56.973671082 +0200
@@ -1,0 +2,6 @@
+Wed Aug 21 14:33:39 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.0.4:
+ * various bugfixes all around
+
+-------------------------------------------------------------------
Old:
----
fakeredis-1.0.3.tar.gz
New:
----
fakeredis-1.0.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-fakeredis.spec ++++++
--- /var/tmp/diff_new_pack.J9SxPQ/_old 2019-08-22 10:55:57.541671006 +0200
+++ /var/tmp/diff_new_pack.J9SxPQ/_new 2019-08-22 10:55:57.545671005 +0200
@@ -12,39 +12,38 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
-
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-fakeredis
-Version: 1.0.3
+Version: 1.0.4
Release: 0
-License: BSD-3-Clause and MIT
Summary: Fake implementation of redis API for testing purposes
-Url: https://github.com/jamesls/fakeredis
+License: BSD-3-Clause AND MIT
Group: Development/Languages/Python
+URL: https://github.com/jamesls/fakeredis
Source:
https://files.pythonhosted.org/packages/source/f/fakeredis/fakeredis-%{version}.tar.gz
-BuildRequires: python-rpm-macros
-BuildRequires: %{python_module setuptools}
-BuildRequires: %{python_module nose}
BuildRequires: %{python_module hypothesis}
-# SECTION test requirements
-# bug in https://github.com/jamesls/fakeredis/issues/235
-BuildRequires: %{python_module redis}
-BuildRequires: %{python_module six >= 1.12}
-BuildRequires: %{python_module sortedcontainers}
-BuildRequires: %{python_module lupa}
-BuildRequires: %{python_module future}
-# /SECTION
+BuildRequires: %{python_module nose}
+BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
+BuildRequires: python-rpm-macros
Requires: python-redis
Requires: python-six >= 1.12
Requires: python-sortedcontainers
Recommends: python-future
Suggests: python-lupa
BuildArch: noarch
-
+# SECTION test requirements
+# bug in https://github.com/jamesls/fakeredis/issues/235
+BuildRequires: %{python_module future}
+BuildRequires: %{python_module lupa}
+BuildRequires: %{python_module redis}
+BuildRequires: %{python_module six >= 1.12}
+BuildRequires: %{python_module sortedcontainers}
+# /SECTION
%python_subpackages
%description
++++++ fakeredis-1.0.3.tar.gz -> fakeredis-1.0.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/fakeredis-1.0.3/.travis.yml
new/fakeredis-1.0.4/.travis.yml
--- old/fakeredis-1.0.3/.travis.yml 2019-03-25 09:08:51.000000000 +0100
+++ new/fakeredis-1.0.4/.travis.yml 2019-08-14 11:23:40.000000000 +0200
@@ -1,23 +1,17 @@
language: python
python:
- 2.7
- - 3.4
- 3.5
- 3.6
+ - 3.7
- pypy
- - nightly
env:
- REDIS_PY=2.10.6
- REDIS_PY=3.0.1
- REDIS_PY=3.1.0
- REDIS_PY=3.2.1
-matrix:
- include:
- - python: 3.7
- dist: xenial
- sudo: true
+ - REDIS_PY=3.3.7
sudo: false
-# Python 3.7 isn't available on trusty, so needs a separate build config
cache:
- pip
services:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/fakeredis-1.0.3/PKG-INFO new/fakeredis-1.0.4/PKG-INFO
--- old/fakeredis-1.0.3/PKG-INFO 2019-03-25 12:38:12.000000000 +0100
+++ new/fakeredis-1.0.4/PKG-INFO 2019-08-14 11:55:44.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: fakeredis
-Version: 1.0.3
+Version: 1.0.4
Summary: Fake implementation of redis API for testing purposes.
Home-page: https://github.com/jamesls/fakeredis
Author: James Saryerwinnie
@@ -292,12 +292,12 @@
1. Hyperloglogs are implemented using sets underneath. This means that
the
`type` command will return the wrong answer, you can't use `get` to
retrieve
- the encoded value, counts will be slightly different (they will in
fact be
+ the encoded value, and counts will be slightly different (they will
in fact be
exact).
2. When a command has multiple error conditions, such as operating on
a key of
the wrong type and an integer argument is not well-formed, the
choice of
- error to redis may not match redis.
+ error to return may not match redis.
3. The `incrbyfloat` and `hincrbyfloat` commands in redis use the C
`long
double` type, which typically has more precision than Python's
`float`
@@ -316,8 +316,8 @@
may produce different results each time the process is re-run.
7. SCAN/ZSCAN/HSCAN/SSCAN will not necessary iterate all items if
items are
- deleted during iteration. They also won't necessarily iterate in
the same
- chunk sizes or the same order as redis.
+ deleted or renamed during iteration. They also won't necessarily
iterate in
+ the same chunk sizes or the same order as redis.
Contributing
@@ -381,6 +381,10 @@
Revision history
================
+ 1.0.4
+ -----
+ - `#240 <https://github.com/jamesls/fakeredis/issues/240>`_ `#242
<https://github.com/jamesls/fakeredis/issues/242>`_ Support for ``redis==3.3``
+
1.0.3
-----
- `#235 <https://github.com/jamesls/fakeredis/issues/235>`_ Support
for ``redis==3.2``
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/fakeredis-1.0.3/README.rst
new/fakeredis-1.0.4/README.rst
--- old/fakeredis-1.0.3/README.rst 2019-03-25 09:08:51.000000000 +0100
+++ new/fakeredis-1.0.4/README.rst 2019-08-14 11:31:28.000000000 +0200
@@ -282,12 +282,12 @@
1. Hyperloglogs are implemented using sets underneath. This means that the
`type` command will return the wrong answer, you can't use `get` to retrieve
- the encoded value, counts will be slightly different (they will in fact be
+ the encoded value, and counts will be slightly different (they will in fact
be
exact).
2. When a command has multiple error conditions, such as operating on a key of
the wrong type and an integer argument is not well-formed, the choice of
- error to redis may not match redis.
+ error to return may not match redis.
3. The `incrbyfloat` and `hincrbyfloat` commands in redis use the C `long
double` type, which typically has more precision than Python's `float`
@@ -306,8 +306,8 @@
may produce different results each time the process is re-run.
7. SCAN/ZSCAN/HSCAN/SSCAN will not necessary iterate all items if items are
- deleted during iteration. They also won't necessarily iterate in the same
- chunk sizes or the same order as redis.
+ deleted or renamed during iteration. They also won't necessarily iterate in
+ the same chunk sizes or the same order as redis.
Contributing
@@ -371,6 +371,10 @@
Revision history
================
+1.0.4
+-----
+- `#240 <https://github.com/jamesls/fakeredis/issues/240>`_ `#242
<https://github.com/jamesls/fakeredis/issues/242>`_ Support for ``redis==3.3``
+
1.0.3
-----
- `#235 <https://github.com/jamesls/fakeredis/issues/235>`_ Support for
``redis==3.2``
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/fakeredis-1.0.3/fakeredis/__init__.py
new/fakeredis-1.0.4/fakeredis/__init__.py
--- old/fakeredis-1.0.3/fakeredis/__init__.py 2019-03-25 09:08:51.000000000
+0100
+++ new/fakeredis-1.0.4/fakeredis/__init__.py 2019-08-14 11:30:05.000000000
+0200
@@ -1,4 +1,4 @@
from ._server import FakeServer, FakeRedis, FakeStrictRedis, FakeConnection
# noqa: F401
-__version__ = '1.0.3'
+__version__ = '1.0.4'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/fakeredis-1.0.3/fakeredis/_server.py
new/fakeredis-1.0.4/fakeredis/_server.py
--- old/fakeredis-1.0.3/fakeredis/_server.py 2019-03-25 09:19:50.000000000
+0100
+++ new/fakeredis-1.0.4/fakeredis/_server.py 2019-08-14 11:07:24.000000000
+0200
@@ -761,8 +761,6 @@
return ret
def _name_to_func(self, name):
- # redis treats the command as NULL-terminated
- name = null_terminate(name)
name = six.ensure_str(name, encoding='utf-8', errors='replace')
func_name = name.lower()
func = getattr(self, func_name, None)
@@ -2443,7 +2441,8 @@
def __init__(self, server, db=0, password=None,
encoding='utf-8', encoding_errors='strict',
- decode_responses=False):
+ decode_responses=False,
+ health_check_interval=0):
self.pid = os.getpid()
self.db = db
self.password = password
@@ -2458,6 +2457,9 @@
# override them.
self._parser = _DummyParser()
self._sock = None
+ # added in redis==3.3.0
+ self.health_check_interval = health_check_interval
+ self.next_health_check = 0
def connect(self):
super(FakeConnection, self).connect()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/fakeredis-1.0.3/fakeredis.egg-info/PKG-INFO
new/fakeredis-1.0.4/fakeredis.egg-info/PKG-INFO
--- old/fakeredis-1.0.3/fakeredis.egg-info/PKG-INFO 2019-03-25
12:38:12.000000000 +0100
+++ new/fakeredis-1.0.4/fakeredis.egg-info/PKG-INFO 2019-08-14
11:55:44.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: fakeredis
-Version: 1.0.3
+Version: 1.0.4
Summary: Fake implementation of redis API for testing purposes.
Home-page: https://github.com/jamesls/fakeredis
Author: James Saryerwinnie
@@ -292,12 +292,12 @@
1. Hyperloglogs are implemented using sets underneath. This means that
the
`type` command will return the wrong answer, you can't use `get` to
retrieve
- the encoded value, counts will be slightly different (they will in
fact be
+ the encoded value, and counts will be slightly different (they will
in fact be
exact).
2. When a command has multiple error conditions, such as operating on
a key of
the wrong type and an integer argument is not well-formed, the
choice of
- error to redis may not match redis.
+ error to return may not match redis.
3. The `incrbyfloat` and `hincrbyfloat` commands in redis use the C
`long
double` type, which typically has more precision than Python's
`float`
@@ -316,8 +316,8 @@
may produce different results each time the process is re-run.
7. SCAN/ZSCAN/HSCAN/SSCAN will not necessary iterate all items if
items are
- deleted during iteration. They also won't necessarily iterate in
the same
- chunk sizes or the same order as redis.
+ deleted or renamed during iteration. They also won't necessarily
iterate in
+ the same chunk sizes or the same order as redis.
Contributing
@@ -381,6 +381,10 @@
Revision history
================
+ 1.0.4
+ -----
+ - `#240 <https://github.com/jamesls/fakeredis/issues/240>`_ `#242
<https://github.com/jamesls/fakeredis/issues/242>`_ Support for ``redis==3.3``
+
1.0.3
-----
- `#235 <https://github.com/jamesls/fakeredis/issues/235>`_ Support
for ``redis==3.2``
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/fakeredis-1.0.3/requirements.txt
new/fakeredis-1.0.4/requirements.txt
--- old/fakeredis-1.0.3/requirements.txt 2019-03-25 09:08:51.000000000
+0100
+++ new/fakeredis-1.0.4/requirements.txt 2019-07-01 08:49:55.000000000
+0200
@@ -8,7 +8,7 @@
nose==1.3.7
hypothesis==3.86.4
redis==3.2.1
-lupa==1.7
+lupa==1.8
future==0.17.1
sortedcontainers==2.1.0
six==1.12.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/fakeredis-1.0.3/setup.py new/fakeredis-1.0.4/setup.py
--- old/fakeredis-1.0.3/setup.py 2019-03-25 09:08:51.000000000 +0100
+++ new/fakeredis-1.0.4/setup.py 2019-08-14 11:30:03.000000000 +0200
@@ -5,7 +5,7 @@
setup(
name='fakeredis',
- version='1.0.3',
+ version='1.0.4',
description="Fake implementation of redis API for testing purposes.",
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/fakeredis-1.0.3/test_fakeredis.py
new/fakeredis-1.0.4/test_fakeredis.py
--- old/fakeredis-1.0.3/test_fakeredis.py 2019-03-25 09:08:51.000000000
+0100
+++ new/fakeredis-1.0.4/test_fakeredis.py 2019-08-14 11:11:33.000000000
+0200
@@ -94,6 +94,15 @@
self.assertIsInstance(x, bytes)
return round(float(x))
+ def raw_command(self, *args):
+ """Like execute_command, but does not do command-specific response
parsing"""
+ response_callbacks = self.redis.response_callbacks
+ try:
+ self.redis.response_callbacks = {}
+ return self.redis.execute_command(*args)
+ finally:
+ self.redis.response_callbacks = response_callbacks
+
# Wrap some redis commands to abstract differences between redis-py 2 and
3.
def zadd(self, key, d):
if REDIS3:
@@ -1783,7 +1792,7 @@
# Changing -0 to +0 is ignored
self.zadd('foo', {'a': -0.0})
self.zadd('foo', {'a': 0.0})
- self.assertEqual(self.redis.execute_command('zscore', 'foo', 'a'),
b'-0')
+ self.assertEqual(self.raw_command('zscore', 'foo', 'a'), b'-0')
def test_zadd_wrong_type(self):
self.redis.sadd('foo', 'bar')
@@ -2960,7 +2969,7 @@
def test_ping(self):
self.assertTrue(self.redis.ping())
- self.assertEqual(self.redis.execute_command('ping', 'test'), b'test')
+ self.assertEqual(self.raw_command('ping', 'test'), b'test')
@redis3_only
def test_ping_pubsub(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/fakeredis-1.0.3/test_fakeredis_hypothesis.py
new/fakeredis-1.0.4/test_fakeredis_hypothesis.py
--- old/fakeredis-1.0.3/test_fakeredis_hypothesis.py 2019-01-24
10:47:02.000000000 +0100
+++ new/fakeredis-1.0.4/test_fakeredis_hypothesis.py 2019-08-14
11:00:30.000000000 +0200
@@ -355,6 +355,9 @@
self.real.ping()
except redis.ConnectionError:
raise SkipTest('redis is not running')
+ # Disable the response parsing so that we can check the raw values
returned
+ self.fake.response_callbacks.clear()
+ self.real.response_callbacks.clear()
self.transaction_normalize = []
self.keys = []
self.fields = []