2019-04-03 10:05:18 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-fakeredis
|
|
|
|
#
|
2023-01-06 12:16:19 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-04-03 10:05:18 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-08-21 16:38:26 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-04-03 10:05:18 +02:00
|
|
|
|
|
|
|
|
2023-05-08 10:19:31 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-04-03 10:05:18 +02:00
|
|
|
Name: python-fakeredis
|
2023-09-11 22:38:41 +02:00
|
|
|
Version: 2.18.1
|
2019-04-03 10:05:18 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Fake implementation of redis API for testing purposes
|
2019-08-21 16:38:26 +02:00
|
|
|
License: BSD-3-Clause AND MIT
|
2023-01-06 12:16:19 +01:00
|
|
|
URL: https://github.com/cunla/fakeredis-py
|
|
|
|
Source: https://github.com/cunla/fakeredis-py/archive/refs/tags/v%{version}.tar.gz#/fakeredis-%{version}-gh.tar.gz
|
2022-06-13 08:27:46 +02:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module poetry-core}
|
2019-04-03 10:05:18 +02:00
|
|
|
BuildRequires: fdupes
|
2019-08-21 16:38:26 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
- update to 2.15.0:
* Implemented support for various stream groups commands:
* `XGROUP CREATE` #161, `XGROUP DESTROY` #164, `XGROUP SETID`
#165, `XGROUP DELCONSUMER` #162,
* `XGROUP CREATECONSUMER` #163, `XINFO GROUPS` #168, `XINFO
CONSUMERS` #168, `XINFO STREAM` #169, `XREADGROUP` #171,
* `XACK` #157, `XPENDING` #170, `XCLAIM` #159, `XAUTOCLAIM`
* Implemented sorted set commands:
* `ZRANDMEMBER` #192, `ZDIFF` #187, `ZINTER` #189, `ZUNION`
#194, `ZDIFFSTORE` #188,
* `ZINTERCARD` #190, `ZRANGESTORE` #193
* Implemented list commands:
* `BLMOVE` #182,
* Improved documentation.
* Fix documentation link
* Fix requirement for packaging.Version #177
* Implement `HRANDFIELD` #156
* Implement `JSON.MSET`
* Improve streams code
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fakeredis?expand=0&rev=35
2023-07-01 22:35:20 +02:00
|
|
|
Requires: python-packaging >= 23.1
|
2023-04-19 09:48:41 +02:00
|
|
|
Requires: python-redis >= 4
|
2022-06-13 08:27:46 +02:00
|
|
|
Requires: python-sortedcontainers >= 2.4.0
|
2023-01-06 12:16:19 +01:00
|
|
|
Suggests: python-lupa >= 1.14
|
2019-04-03 10:05:18 +02:00
|
|
|
BuildArch: noarch
|
2019-08-21 16:38:26 +02:00
|
|
|
# SECTION test requirements
|
2023-01-06 12:16:19 +01:00
|
|
|
# technically requires hypothesis >= 6.56, but we don't have it yet
|
2020-03-20 13:26:53 +01:00
|
|
|
BuildRequires: %{python_module hypothesis}
|
2023-01-06 12:16:19 +01:00
|
|
|
BuildRequires: %{python_module lupa >= 1.14}
|
2022-10-10 08:53:34 +02:00
|
|
|
BuildRequires: %{python_module pytest >= 7.1.2}
|
|
|
|
BuildRequires: %{python_module pytest-asyncio >= 0.19.0}
|
2023-05-29 15:38:56 +02:00
|
|
|
BuildRequires: %{python_module pytest-mock >= 3.7.0}
|
2023-04-19 09:48:41 +02:00
|
|
|
BuildRequires: %{python_module redis >= 4}
|
2022-06-13 08:27:46 +02:00
|
|
|
BuildRequires: %{python_module sortedcontainers >= 2.4.0}
|
2019-08-21 16:38:26 +02:00
|
|
|
# /SECTION
|
2019-04-03 10:05:18 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Fake implementation of redis API for testing purposes.
|
|
|
|
|
|
|
|
%prep
|
2022-10-10 08:53:34 +02:00
|
|
|
%autosetup -p1 -n fakeredis-py-%{version}
|
2019-04-03 10:05:18 +02:00
|
|
|
|
|
|
|
%build
|
2022-06-13 08:27:46 +02:00
|
|
|
%pyproject_wheel
|
2019-04-03 10:05:18 +02:00
|
|
|
|
|
|
|
%install
|
2022-06-13 08:27:46 +02:00
|
|
|
%pyproject_install
|
2019-04-03 10:05:18 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-03-20 13:34:25 +01:00
|
|
|
export LANG="en_US.UTF8"
|
2023-05-29 15:38:56 +02:00
|
|
|
rm -v test/test_redis_asyncio.py
|
|
|
|
%pytest -m "not slow"
|
2019-04-03 10:05:18 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
2022-06-13 08:27:46 +02:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2021-10-19 14:25:26 +02:00
|
|
|
%{python_sitelib}/fakeredis
|
|
|
|
%{python_sitelib}/fakeredis-%{version}*-info
|
2019-04-03 10:05:18 +02:00
|
|
|
|
|
|
|
%changelog
|