Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-aioredis for openSUSE:Factory
checked in at 2022-02-03 23:16:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-aioredis (Old)
and /work/SRC/openSUSE:Factory/.python-aioredis.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-aioredis"
Thu Feb 3 23:16:08 2022 rev:2 rq:950057 version:2.0.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-aioredis/python-aioredis.changes
2020-12-01 14:23:21.813630767 +0100
+++
/work/SRC/openSUSE:Factory/.python-aioredis.new.1898/python-aioredis.changes
2022-02-03 23:16:35.536569439 +0100
@@ -1,0 +2,32 @@
+Thu Jan 27 07:43:19 UTC 2022 - Dominique Leuenberger <[email protected]>
+
+- Fix typo in Requires (closing curly bracket in
+ Requires: python-typing_extensions}).
+
+-------------------------------------------------------------------
+Tue Jan 25 18:49:02 UTC 2022 - Matthias Fehring <[email protected]>
+
+- Add 0002-skip-acl-tests-on-old-servers.patch to skip some tests
+ that fail on servers prior to Redis 6.2.0
+
+-------------------------------------------------------------------
+Wed Jan 19 12:43:28 UTC 2022 - Matthias Fehring <[email protected]>
+
+- Update to version 2.0.1
+ * Features
+ + Synchronized reading the responses from a connection (see #1106)
+ * Fixes
+ + Remove del from Redis (Fixes #1115) (see #1227)
+ + Fix socket.error raises (see #1129)
+ + Fix buffer is closed error when using PythonParser class (see #1213)
+- Changes from version 2.0.0
+ * Features
+ + Port redis-py's client implementation to aioredis. (see #891)
+ + Make hiredis an optional dependency. (see #917)
+- Remove obsolete patches
+ * aioredis-1.3.1-fix-tests-on-python38.patch
+ * aioredis-1.3.1-fix-tests-on-python38-part2.patch
+- Add 0001-fix-geopos-test.patch to fix floatin point comparison
+ in geopos test
+
+-------------------------------------------------------------------
Old:
----
aioredis-1.3.1-fix-tests-on-python38-part2.patch
aioredis-1.3.1-fix-tests-on-python38.patch
aioredis-1.3.1.tar.gz
New:
----
0001-fix-geopos-test.patch
0002-skip-acl-tests-on-old-servers.patch
aioredis-2.0.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-aioredis.spec ++++++
--- /var/tmp/diff_new_pack.3w0Vp1/_old 2022-02-03 23:16:36.096565617 +0100
+++ /var/tmp/diff_new_pack.3w0Vp1/_new 2022-02-03 23:16:36.100565589 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-aioredis
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2019 Matthias Fehring <[email protected]>
#
# All modifications and additions to the file contributed by third parties
@@ -20,28 +20,38 @@
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-aioredis
-Version: 1.3.1
+Version: 2.0.1
Release: 0
-Summary: Python asyncio Redis support
+Summary: AsyncIO Python Redis Support
License: MIT
Group: Development/Languages/Python
URL: https://github.com/aio-libs/aioredis
Source0:
https://files.pythonhosted.org/packages/source/a/aioredis/aioredis-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM aioredis-1.3.1-fix-tests-on-python38.patch --
https://github.com/aio-libs/aioredis/pull/724
-Patch0: aioredis-1.3.1-fix-tests-on-python38.patch
-# PATCH-FIX-UPSTREAM aioredis-1.3.1-fix-tests-on-python38-part2.patch --
https://github.com/aio-libs/aioredis/pull/727
-Patch1: aioredis-1.3.1-fix-tests-on-python38-part2.patch
+# PATCH-FIX-OPENSUSE 0001-fix-geopos-test.patch [email protected] --
Fix floating point comparison in geopos test
+Patch0: 0001-fix-geopos-test.patch
+# PATCH-FIX-UPSTREAM 0002-skip-acl-tests-on-old-servers.patch
[email protected] -- Skip ACL tests on old server versions
+Patch1: 0002-skip-acl-tests-on-old-servers.patch
+BuildRequires: %{python_module async_timeout >= 4.0.2}
BuildRequires: %{python_module setuptools >= 38.6.0}
+BuildRequires: %{python_module typing_extensions}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: python-async_timeout
-Recommends: redis
-BuildArch: noarch
# SECTION test requirements
-BuildRequires: %{python_module async_timeout}
-BuildRequires: %{python_module pytest}
+BuildRequires: %{python_module coverage >= 6.2}
+BuildRequires: %{python_module flake8 >= 4.0.1}
+BuildRequires: %{python_module hiredis >= 2.0.0}
+BuildRequires: %{python_module mock >= 4.0.3}
+BuildRequires: %{python_module pytest >= 6.2.5}
+BuildRequires: %{python_module pytest-asyncio >= 0.16.0}
+BuildRequires: %{python_module pytest-cov >= 3.0.0}
+BuildRequires: %{python_module pytest-sugar >= 0.9.4}
+BuildRequires: %{python_module pytest-xdist >= 2.4.0}
BuildRequires: redis
# /SECTION
+Requires: python-async_timeout
+Requires: python-typing_extensions
+Recommends: redis
+BuildArch: noarch
%python_subpackages
%description
@@ -49,13 +59,8 @@
%prep
%setup -q -n aioredis-%{version}
-%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200
%patch0 -p1
%patch1 -p1
-%endif
-rm setup.cfg
-# Remove dependency on hiredis, which is a redis server embedded in a Python
package
-sed -Ei '/(platform.python_implementation|hiredis)/d' setup.py
%build
%python_build
@@ -65,19 +70,17 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-export PATH=$PATH:%{_sbindir}
+# start the redis server
+%{_sbindir}/redis-server &
+
+%pytest
-fail_pattern='(connection_commands_test and test_auth) or test_master__auth or
test_failover_command or test_command_info or test_client_list'
-# test_hincrbyfloat fail on armv7l with float rounding error
-fail_pattern+=' or test_hincrbyfloat or test_auto_failover'
-
-%pytest -k "not ($fail_pattern)"
-# Show known errors
-%pytest -k "$fail_pattern" ||:
+# kill the redis server
+kill %%1
%files %{python_files}
%license LICENSE
-%doc CHANGES.txt
+%doc CHANGELOG.md
%{python_sitelib}/aioredis-%{version}-*.egg-info/
%{python_sitelib}/aioredis/
++++++ 0001-fix-geopos-test.patch ++++++
From: Matthias Fehring <[email protected]>
Date: 2022-0119 13:40:00 +0100
Subject: fix floating point comparison in test
Upstream: no
The returned floating point values are slightly different from
the reference values. Upstreams mentions this and already uses adopted
reference values, but different python versions still return slightly
different values. This patch uses math.isclose instead of comparison
operator.
---
test_commands.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
--- a/tests/test_commands.py 2021-12-27 21:28:05.000000000 +0100
+++ b/tests/test_commands.py 2022-01-19 13:32:59.075905731 +0100
@@ -5,6 +5,7 @@ import time
from string import ascii_letters
import pytest
+import math
import aioredis
from aioredis import exceptions
@@ -2170,10 +2171,12 @@ class TestRedisCommands:
await r.geoadd("barcelona", *values)
# redis uses 52 bits precision, hereby small errors may be introduced.
- assert await r.geopos("barcelona", "place1", "place2") == [
- (2.19093829393386841, 41.43379028184083523),
- (2.18737632036209106, 41.40634178640635099),
- ]
+ positions = await r.geopos("barcelona", "place1", "place2")
+
+ assert math.isclose(positions[0][0], 2.19093829393386841, rel_tol=1e-5)
+ assert math.isclose(positions[0][1], 41.43379028184083523,
rel_tol=1e-5)
+ assert math.isclose(positions[1][0], 2.18737632036209106, rel_tol=1e-5)
+ assert math.isclose(positions[1][1], 41.40634178640635099,
rel_tol=1e-5)
@skip_if_server_version_lt("4.0.0")
async def test_geopos_no_value(self, r: aioredis.Redis):
++++++ 0002-skip-acl-tests-on-old-servers.patch ++++++
From: Matthias Fehring <[email protected]>
Date: 2022-01-25 19:36:00 +0100
Subject: skip acl tests on old servers
Upstream: no
Redis server prior to version 6.2.0 fail executing some ACL specific tests.
According to Redis changelog, some ACL support has been introduced with
version 6.2-rc1.
---
test_commands.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/tests/test_commands.py 2022-01-25 19:34:59.427241656 +0100
+++ b/tests/test_commands.py 2022-01-25 19:33:52.555242854 +0100
@@ -104,7 +104,7 @@ class TestRedisCommands:
password = await r.acl_genpass()
assert isinstance(password, str)
- @skip_if_server_version_lt(REDIS_6_VERSION)
+ @skip_if_server_version_lt("6.2.0")
async def test_acl_getuser_setuser(self, r: aioredis.Redis, request,
event_loop):
username = "redis-py-user"
@@ -219,7 +219,7 @@ class TestRedisCommands:
)
assert len((await r.acl_getuser(username))["passwords"]) == 1
- @skip_if_server_version_lt(REDIS_6_VERSION)
+ @skip_if_server_version_lt("6.2.0")
async def test_acl_list(self, r: aioredis.Redis, request, event_loop):
username = "redis-py-user"
++++++ aioredis-1.3.1.tar.gz -> aioredis-2.0.1.tar.gz ++++++
++++ 43220 lines of diff (skipped)