# # spec file for package python-aioredis # # Copyright (c) 2022 SUSE LLC # Copyright (c) 2019 Matthias Fehring # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 %define skip_python36 1 %define skip_python39 1 Name: python-aioredis Version: 2.0.1 Release: 1.1 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-OPENSUSE 0001-fix-geopos-test.patch buschmann23@opensuse.org -- Fix floating point comparison in geopos test Patch0: 0001-fix-geopos-test.patch # PATCH-FIX-UPSTREAM 0002-skip-acl-tests-on-old-servers.patch buschmann23@opensuse.org -- 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 # SECTION test requirements 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 The library is intended to provide simple and clear interface to Redis based on asyncio. %prep %setup -q -n aioredis-%{version} %patch0 -p1 %patch1 -p1 %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # start the redis server %{_sbindir}/redis-server & %pytest # kill the redis server kill %%1 %files %{python_files} %license LICENSE %doc CHANGELOG.md %{python_sitelib}/aioredis-%{version}-*.egg-info/ %{python_sitelib}/aioredis/ %changelog * Thu Jan 27 2022 Dominique Leuenberger - Fix typo in Requires (closing curly bracket in Requires: python-typing_extensions}). * Tue Jan 25 2022 Matthias Fehring - 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 2022 Matthias Fehring - 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 * Sat Nov 28 2020 John Vandenberg - Remove dependency on hires - Skip test failures against Tumbleweed redis - Remove build dependencies used for development * Fri Jul 3 2020 Matthias Fehring - Try to fix build on openSUSE Leap 15.2+ by adding new patch aioredis-1.3.1-fix-tests-on-python38-part2.patch, but it does not fix the issue. There seem to be also issues with redis 6. - Fix wrong URL tag. * Wed May 6 2020 Matthias Fehring - fix build on openSUSE Tumbleweed + Added aioredis-1.3.1-fix-tests-on-python38.patch to fix some tests failing on python 3.8+ * Fri Dec 6 2019 Matthias Fehring - update to version 1.3.1 + Fix transaction data decoding + Fix duplicate calls to pool.wait_closed() upon create_pool() exception. + Drop explicit loop requirement in API. Deprecate loop argument. Throw warning in Python 3.8+ if explicit loop is passed to methods. - update to version 1.3.0 + Added xdel and xtrim method which missed in commands/streams.py and also added unit test code for them + Add count argument to spop command + Add support for zpopmax and zpopmin redis commands + Add towncrier: change notes are now stored in CHANGES.txt + Type hints for the library + A few additions to the sorted set commands: * the blocking pop commands: BZPOPMAX and BZPOPMIN * the CH and INCR options of the ZADD command + Added no_ack parameter to xread_group streams method in commands/streams.py + Fix for sensitive logging + Fix slow memory leak in wait_closed implementation + Fix handling of instances were Redis returns null fields for a stream message - spec file changes + require pytest instead of pytest3 for building * Tue Sep 17 2019 Matthias Fehring - spec file changes: + use python-pytest3 and python-pytest3-xdist as build requirements as aioredis does not seem to support pytest > 4 * Tue Jul 2 2019 Matthias Fehring - initial package version 1.2.0