## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global extras json,lua,valkey Name: python-fakeredis Version: 2.33.0 Release: %autorelease Summary: Python implementation of redis API, can be used for testing purposes. License: BSD-3-Clause URL: https://github.com/cunla/fakeredis-py Source: %{pypi_source fakeredis} BuildArch: noarch BuildRequires: python3-devel Requires: python3-lupa # Test dependencies BuildRequires: python3-pytest BuildRequires: python3-pytest-asyncio %global _description %{expand: This is package 'fakeredis' generated automatically by pyp2spec.} %description %_description %package -n python3-fakeredis Summary: %{summary} %description -n python3-fakeredis %_description %pyproject_extras_subpkg -n python3-fakeredis %{extras} %prep %autosetup -p1 -n fakeredis-%{version} %generate_buildrequires # Keep only those extras which you actually want to package or use during tests %pyproject_buildrequires -x %{extras} %build %pyproject_wheel %install %pyproject_install # Add top-level Python module names here as arguments, you can use globs %pyproject_save_files -l fakeredis %check # fakeredis scripting mixin imports optional Lua runtimes (lupa.lua54) which # are not always present in Fedora builds %pyproject_check_import -e fakeredis.commands_mixins.scripting_mixin # All the following tests requires redis to be running. %pytest -m "fake" --ignore=test/test_hypothesis --ignore=test/test_hypothesis_joint.py #--ignore=test/test_mixins/test_redis_8_4.py --ignore=test/test_asyncredis.py --ignore=test/test_internals/test_asyncredis.py --ignore=test/test_internals/test_lua_modules.py %files -n python3-fakeredis -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Tue Feb 03 2026 John Doe - 2.33.0-1 - Uncommitted changes ## END: Generated by rpmautospec