# # spec file for package python-fakeredis # # Copyright (c) 2022 SUSE LLC # # 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() python-%{**} python3-%{**}} %define skip_python2 1 %define skip_python36 1 %define skip_python39 1 Name: python-fakeredis Version: 1.7.0 Release: 1.1 Summary: Fake implementation of redis API for testing purposes License: BSD-3-Clause AND MIT URL: https://github.com/jamesls/fakeredis Source: https://files.pythonhosted.org/packages/source/f/fakeredis/fakeredis-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-packaging Requires: python-redis Requires: python-six >= 1.12 Requires: python-sortedcontainers Suggests: python-aioredis Suggests: python-lupa BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module aioredis} BuildRequires: %{python_module future} BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module lupa} BuildRequires: %{python_module packaging} BuildRequires: %{python_module pytest >= 4.0} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module redis} BuildRequires: %{python_module six >= 1.12} BuildRequires: %{python_module sortedcontainers} # /SECTION %python_subpackages %description Fake implementation of redis API for testing purposes. %prep %setup -q -n fakeredis-%{version} %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check export LANG="en_US.UTF8" %pytest %files %{python_files} %doc README.rst %license COPYING %{python_sitelib}/fakeredis %{python_sitelib}/fakeredis-%{version}*-info %changelog * Sun Jan 23 2022 Dirk Müller - update to 1.7.0 * Change a number of corner-case behaviours to match Redis 6.2.6. * Fix DeprecationWarning for sampling from a set * Improved support for constructor arguments * Support redis-py 4 * Add support for GET option to SET * PERSIST and EXPIRE should invalidate watches * Sun Oct 17 2021 Ben Greiner - Update to 1.6.1 * #305 Some packaging modernisation * #306 Fix FakeRedisMixin.from_url for unix sockets * #308 Remove use of async_generator from tests - Release 1.6.0 * #304 Support aioredis 2 * #302 Switch CI from Travis CI to Github Actions * Tue Jun 29 2021 Ondřej Súkup - update to 1.5.2 * support python 3.9 * support aioredis * Fri Mar 20 2020 Tomáš Chvátal - Disable py2 as upstream actually disabled python2 support competely * The syntax simply is not compatible * Thu Mar 19 2020 Hans-Peter Jansen - Update to 1.3.0: * No upstream changelog - python2 tests are dysfunctional, test with python3 only * Fri Sep 13 2019 Tomáš Chvátal - Update to 1.0.5: * No upstream changelog * Wed Aug 21 2019 Tomáš Chvátal - Update to 1.0.4: * various bugfixes all around * Sun Mar 31 2019 John Vandenberg - Update to v1.0.3 * Support for redis 3.2 (no effective changes in v1.0.2) * Sat Feb 16 2019 John Vandenberg - Initial spec for v1.0.1