forked from pool/python-fakeredis
Dirk Mueller
213d8ff19b
* Implement LCS (#111), BITOP (#110) * Fix bug checking type in scan_iter (#109) * Implement GETEX (#102) * Implement support for JSON.STRAPPEND (json command) (#98) * Implement JSON.STRLEN, JSON.TOGGLE and fix bugs with JSON.DEL (#96) * Implement PUBSUB CHANNELS, PUBSUB NUMSUB * Implement JSON.CLEAR (#87) * Support for redis-py v4.4.0 * Implement json.mget (#85) * Initial json module support - JSON.GET, JSON.SET and JSON.DEL (#80) * fix: add nowait for asyncio disconnect (#76) * Refactor how commands are registered (#79) * Refactor tests from redispy4_plus (#77) * Remove support for aioredis separate from redis-py (redis-py versions 4.1.2 and below). (#65) * Add support for redis-py v4.4rc4 (#73) * Add mypy support (#74) * Implement support for zmscore by @the-wondersmith in #67 * What's Changed * implement GETDEL and SINTERCARD support by @cunla in #57 * Test get float-type behavior by @cunla in #59 * Implement BZPOPMIN/BZPOPMAX support by @cunla in #60 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fakeredis?expand=0&rev=21
72 lines
2.3 KiB
RPMSpec
72 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-fakeredis
|
|
#
|
|
# Copyright (c) 2023 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/
|
|
#
|
|
|
|
|
|
Name: python-fakeredis
|
|
Version: 2.4.0
|
|
Release: 0
|
|
Summary: Fake implementation of redis API for testing purposes
|
|
License: BSD-3-Clause AND MIT
|
|
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
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module poetry-core}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-redis < 4.5
|
|
Requires: python-sortedcontainers >= 2.4.0
|
|
Suggests: python-lupa >= 1.14
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
# technically requires hypothesis >= 6.56, but we don't have it yet
|
|
BuildRequires: %{python_module hypothesis}
|
|
BuildRequires: %{python_module lupa >= 1.14}
|
|
BuildRequires: %{python_module pytest >= 7.1.2}
|
|
BuildRequires: %{python_module pytest-asyncio >= 0.19.0}
|
|
# technically requires pytest-mock >= 3.7.0, but we don't have it yet
|
|
BuildRequires: %{python_module pytest-mock}
|
|
BuildRequires: %{python_module redis < 4.5}
|
|
BuildRequires: %{python_module sortedcontainers >= 2.4.0}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Fake implementation of redis API for testing purposes.
|
|
|
|
%prep
|
|
%autosetup -p1 -n fakeredis-py-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export LANG="en_US.UTF8"
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/fakeredis
|
|
%{python_sitelib}/fakeredis-%{version}*-info
|
|
|
|
%changelog
|