# Enable tests by default. %bcond_without tests %global upstream_name redis Name: python-%{upstream_name} Version: 5.1.1 Release: 3%{?dist} Summary: Python interface to the Redis key-value store License: MIT URL: https://github.com/redis/redis-py Source0: https://github.com/redis/redis-py/archive/v%{version}/redis-py-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: valkey BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-asyncio) BuildRequires: python3dist(pytest-timeout) BuildRequires: python3dist(numpy) %endif %global _description\ This is a Python interface to the Redis key-value store. %description %_description %package -n python3-%{upstream_name} Summary: Python 3 interface to the Redis key-value store %description -n python3-%{upstream_name} This is a Python 3 interface to the Redis key-value store. %prep %autosetup -n redis-py-%{version} -p1 # remove pytest filter for CoverageWarning so we don't need coverage installed sed -e '/CoverageWarning/d' -i pytest.ini # This test passes locally but fails in koji... rm tests/test_commands.py* rm tests/test_asyncio/test_commands.py # Times out rm tests/test_asyncio/test_connect.py rm tests/test_asyncio/test_cwe_404.py # The Fedora redis json and bloom packages are out of date, ts and graph are missing in the repos rm tests/test_bloom.py rm tests/test_graph.py rm tests/test_json.py rm tests/test_timeseries.py rm tests/test_asyncio/test_bloom.py rm tests/test_asyncio/test_graph.py rm tests/test_asyncio/test_json.py rm tests/test_asyncio/test_timeseries.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{upstream_name} %if %{with tests} %check valkey-server --enable-debug-command yes --daemonize yes %pytest -m 'not onlycluster and not redismod and not ssl' valkey-cli shutdown %endif %files -n python3-%{upstream_name} -f %{pyproject_files} %doc CHANGES README.md %changelog * Tue Oct 22 2024 Carl George - 5.1.1-3 - Remove async-timeout and coverage build-time dependencies * Tue Oct 22 2024 Carl George - 5.1.1-2 - Test with valkey instead of redis * Wed Oct 09 2024 František Zatloukal - 5.1.1-1 - Update to 5.1.1 (RHBZ#2316483) * Mon Sep 30 2024 František Zatloukal - 5.1.0-1 - Update to 5.1.0 (RHBZ#2250068) * Mon Jul 29 2024 František Zatloukal - 5.0.8-1 - Update to 5.0.8 * Fri Jul 19 2024 Fedora Release Engineering - 5.0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 5.0.5-2 - Rebuilt for Python 3.13 * Fri Jun 07 2024 František Zatloukal - 5.0.5-1 - Update to 5.0.5 * Fri May 03 2024 František Zatloukal - 5.0.4-1 - Update to 5.0.4 * Mon Mar 25 2024 František Zatloukal - 5.0.3-1 - Update to 5.0.3 * Fri Jan 26 2024 Fedora Release Engineering - 5.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 5.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Sep 28 2023 František Zatloukal - 5.0.1-1 - Update to 5.0.1 * Fri Jul 21 2023 Fedora Release Engineering - 4.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jul 01 2023 Miro Hrončok - 4.5.1-3 - Deselect more tests :( * Tue Jun 13 2023 Python Maint - 4.5.1-2 - Rebuilt for Python 3.12 * Mon Feb 27 2023 Kevin Fenzi - 4.5.1-1 - Update to 4.5.1. Fixes rhbz#2141041 * Fri Jan 20 2023 Fedora Release Engineering - 4.3.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Sep 18 2022 Kevin Fenzi - 4.3.4-1 - Update to 4.3.4. Fixes rhbz#2101428 * Fri Jul 22 2022 Fedora Release Engineering - 4.3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 4.3.3-2 - Rebuilt for Python 3.11 * Sat Jun 11 2022 Kevin Fenzi - 4.3.3-1 - Update to 4.3.3. Fixes rhbz#2092458 * Tue May 17 2022 Frantisek Zatloukal - 4.3.1-1 - Update to 4.3.1 - Fix tests with Redis 7 * Tue Apr 26 2022 Major Hayden - 4.2.2-2 - Switch to pyproject-rpm-macros for easier EPEL 9 backport. * Mon Apr 04 2022 Frantisek Zatloukal - 4.2.2-1 - Update to 4.2.2 * Fri Jan 21 2022 Fedora Release Engineering - 3.5.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 3.5.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 03 2021 Python Maint - 3.5.3-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 3.5.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Sep 15 2020 Joel Capitao - 3.5.3-1 - Update to 3.5.3 * Wed Jul 29 2020 Fedora Release Engineering - 3.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat May 23 2020 Miro Hrončok - 3.4.1-2 - Rebuilt for Python 3.9 * Mon Mar 16 2020 Clément Verna - 3.4.1-1 - Update to 3.4.1. - Use pytest to run the unit tests. * Thu Jan 30 2020 Fedora Release Engineering - 3.3.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Oct 06 2019 Kevin Fenzi - 3.3.8-1 - Update to 3.3.8. * Sun Sep 08 2019 Miro Hrončok - 3.2.1-4 - Subpackage python2-redis has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Fri Aug 16 2019 Miro Hrončok - 3.2.1-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 3.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Jun 22 2019 Kevin Fenzi - 3.2.1-1 - Update to 3.2.1. Fixes bug #1670235 * Mon Feb 11 2019 Javier Peña - 3.1.0-1 - Update to 3.1.0. Fixes bug #1670235 * Sat Feb 02 2019 Fedora Release Engineering - 2.10.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.10.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jun 16 2018 Miro Hrončok - 2.10.6-4 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 2.10.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 27 2018 Iryna Shcherbina - 2.10.6-2 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Sun Dec 17 2017 Kevin Fenzi - 2.10.6-1 - Update to 2.10.6. Fixes bug #1482297 * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2.10.5-6 - Python 2 binary package renamed to python2-redis See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 2.10.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.10.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 2.10.5-3 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 2.10.5-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Apr 04 2016 Ralph Bean - 2.10.5-1 - new version * Thu Feb 04 2016 Fedora Release Engineering - 2.10.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 2.10.3-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Fri Jul 10 2015 Ralph Bean - 2.10.3-3 - Remove test that fails erroneously in koji. * Thu Jun 18 2015 Fedora Release Engineering - 2.10.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Aug 21 2014 Christopher Meng - 2.10.3-1 - Update to 2.10.3 * Tue Aug 12 2014 Christopher Meng - 2.10.2-1 - Update to 2.10.2 * Thu Jun 19 2014 Christopher Meng - 2.10.1-1 - Update to 2.10.1 * Sat Jun 07 2014 Fedora Release Engineering - 2.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Kalev Lember - 2.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Fri Feb 14 2014 Christopher Meng - 2.9.1-1 - Update to 2.9.1 - Use generated egg instead of bundled egg - Cleanup again * Sat Jul 27 2013 Luke Macken - 2.7.6-1 - Update to 2.7.6 - Run the test suite - Add a python3 subpackage - Remove obsolete buildroot tag and cleanup * Thu Feb 14 2013 Fedora Release Engineering - 2.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Dec 27 2012 Silas Sewell - 2.7.2-1 - Update to 2.7.2 * Sat Jul 21 2012 Fedora Release Engineering - 2.4.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 2.4.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Jul 24 2011 Silas Sewell - 2.4.9-1 - Update to 2.4.9 * Sun Mar 27 2011 Silas Sewell - 2.2.4-1 - Update to 2.2.4 * Wed Feb 09 2011 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Sep 04 2010 Silas Sewell - 2.0.0-1 - Initial build