|
|
ff1580 |
#
|
|
|
ff1580 |
# spec file for package python-aioredis
|
|
|
ff1580 |
#
|
|
|
06abfb |
# Copyright (c) 2022 SUSE LLC
|
|
|
ff1580 |
# Copyright (c) 2019 Matthias Fehring <buschmann23@opensuse.org>
|
|
|
ff1580 |
#
|
|
|
ff1580 |
# All modifications and additions to the file contributed by third parties
|
|
|
ff1580 |
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
ff1580 |
# upon. The license for this file, and modifications and additions to the
|
|
|
ff1580 |
# file, is the same license as for the pristine package itself (unless the
|
|
|
ff1580 |
# license for the pristine package is not an Open Source License, in which
|
|
|
ff1580 |
# case the license is the MIT License). An "Open Source License" is a
|
|
|
ff1580 |
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
ff1580 |
# published by the Open Source Initiative.
|
|
|
ff1580 |
|
|
|
ff1580 |
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
ff1580 |
#
|
|
|
ff1580 |
|
|
|
ff1580 |
|
|
|
ff1580 |
%{?!python_module:%define python_module() python3-%{**}}
|
|
|
ff1580 |
%define skip_python2 1
|
|
|
ff1580 |
Name: python-aioredis
|
|
|
06abfb |
Version: 2.0.1
|
|
|
ff1580 |
Release: 0
|
|
|
06abfb |
Summary: AsyncIO Python Redis Support
|
|
|
ff1580 |
License: MIT
|
|
|
ff1580 |
Group: Development/Languages/Python
|
|
|
ff1580 |
URL: https://github.com/aio-libs/aioredis
|
|
|
ff1580 |
Source0: https://files.pythonhosted.org/packages/source/a/aioredis/aioredis-%{version}.tar.gz
|
|
|
06abfb |
# PATCH-FIX-OPENSUSE 0001-fix-geopos-test.patch buschmann23@opensuse.org -- Fix floating point comparison in geopos test
|
|
|
06abfb |
Patch0: 0001-fix-geopos-test.patch
|
|
|
06abfb |
# PATCH-FIX-UPSTREAM 0002-skip-acl-tests-on-old-servers.patch buschmann23@opensuse.org -- Skip ACL tests on old server versions
|
|
|
06abfb |
Patch1: 0002-skip-acl-tests-on-old-servers.patch
|
|
|
06abfb |
BuildRequires: %{python_module async_timeout >= 4.0.2}
|
|
|
ff1580 |
BuildRequires: %{python_module setuptools >= 38.6.0}
|
|
|
06abfb |
BuildRequires: %{python_module typing_extensions}
|
|
|
ff1580 |
BuildRequires: fdupes
|
|
|
ff1580 |
BuildRequires: python-rpm-macros
|
|
|
ff1580 |
# SECTION test requirements
|
|
|
06abfb |
BuildRequires: %{python_module coverage >= 6.2}
|
|
|
06abfb |
BuildRequires: %{python_module flake8 >= 4.0.1}
|
|
|
06abfb |
BuildRequires: %{python_module hiredis >= 2.0.0}
|
|
|
06abfb |
BuildRequires: %{python_module pytest >= 6.2.5}
|
|
|
06abfb |
BuildRequires: %{python_module pytest-asyncio >= 0.16.0}
|
|
|
06abfb |
BuildRequires: %{python_module pytest-cov >= 3.0.0}
|
|
|
06abfb |
BuildRequires: %{python_module pytest-sugar >= 0.9.4}
|
|
|
06abfb |
BuildRequires: %{python_module pytest-xdist >= 2.4.0}
|
|
|
ff1580 |
BuildRequires: redis
|
|
|
ff1580 |
# /SECTION
|
|
|
06abfb |
Requires: python-async_timeout
|
|
|
06abfb |
Requires: python-typing_extensions
|
|
|
06abfb |
Recommends: redis
|
|
|
06abfb |
BuildArch: noarch
|
|
|
ff1580 |
%python_subpackages
|
|
|
ff1580 |
|
|
|
ff1580 |
%description
|
|
|
ff1580 |
The library is intended to provide simple and clear interface to Redis based on asyncio.
|
|
|
ff1580 |
|
|
|
ff1580 |
%prep
|
|
|
ff1580 |
%setup -q -n aioredis-%{version}
|
|
|
ff1580 |
%patch0 -p1
|
|
|
ff1580 |
%patch1 -p1
|
|
|
ff1580 |
|
|
|
ff1580 |
%build
|
|
|
ff1580 |
%python_build
|
|
|
ff1580 |
|
|
|
ff1580 |
%install
|
|
|
ff1580 |
%python_install
|
|
|
ff1580 |
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
ff1580 |
|
|
|
ff1580 |
%check
|
|
|
06abfb |
# start the redis server
|
|
|
06abfb |
%{_sbindir}/redis-server &
|
|
|
ff1580 |
|
|
|
06abfb |
%pytest
|
|
|
ff1580 |
|
|
|
06abfb |
# kill the redis server
|
|
|
06abfb |
kill %%1
|
|
|
ff1580 |
|
|
|
ff1580 |
%files %{python_files}
|
|
|
ff1580 |
%license LICENSE
|
|
|
06abfb |
%doc CHANGELOG.md
|
|
|
ff1580 |
%{python_sitelib}/aioredis-%{version}-*.egg-info/
|
|
|
ff1580 |
%{python_sitelib}/aioredis/
|
|
|
ff1580 |
|
|
|
ff1580 |
%changelog
|