From ad664d06c6ec20695bccd9084b3cc48eaa775c67 Mon Sep 17 00:00:00 2001 From: tigro Date: Tue, 17 Dec 2024 21:30:15 +0300 Subject: [PATCH] import python-redis-5.1.1-3.el10 --- .gitignore | 22 +--- .python-redis.metadata | 1 + python-redis.spec => SPECS/python-redis.spec | 116 +++++++++++++++++-- sources | 1 - 4 files changed, 107 insertions(+), 33 deletions(-) create mode 100644 .python-redis.metadata rename python-redis.spec => SPECS/python-redis.spec (66%) delete mode 100644 sources diff --git a/.gitignore b/.gitignore index d8395ab..37f8042 100644 --- a/.gitignore +++ b/.gitignore @@ -1,21 +1 @@ -/redis-2.0.0.tar.gz -/redis-2.2.4.tar.gz -/redis-2.4.9.tar.gz -/redis-2.7.2.tar.gz -/redis-2.7.6.tar.gz -/redis-2.9.1.tar.gz -/redis-2.10.1.tar.gz -/redis-2.10.2.tar.gz -/redis-2.10.3.tar.gz -/redis-2.10.5.tar.gz -/2.10.6.tar.gz -/3.1.0.tar.gz -/3.2.1.tar.gz -/3.3.8.tar.gz -/3.4.1.tar.gz -/3.5.3.tar.gz -/redis-py-4.1.4.tar.gz -/redis-py-4.2.1.tar.gz -/redis-py-4.2.2.tar.gz -/redis-py-4.3.1.tar.gz -/redis-py-4.3.3.tar.gz +SOURCES/redis-py-5.1.1.tar.gz diff --git a/.python-redis.metadata b/.python-redis.metadata new file mode 100644 index 0000000..1752c11 --- /dev/null +++ b/.python-redis.metadata @@ -0,0 +1 @@ +bac34dd413fe96a0b1013652212021b69767441f SOURCES/redis-py-5.1.1.tar.gz diff --git a/python-redis.spec b/SPECS/python-redis.spec similarity index 66% rename from python-redis.spec rename to SPECS/python-redis.spec index 2b50ba2..3d5cecb 100644 --- a/python-redis.spec +++ b/SPECS/python-redis.spec @@ -1,11 +1,21 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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 + # Enable tests by default. %bcond_without tests %global upstream_name redis Name: python-%{upstream_name} -Version: 4.3.3 -Release: 1%{?dist} +Version: 5.1.1 +Release: %autorelease Summary: Python interface to the Redis key-value store License: MIT URL: https://github.com/redis/redis-py @@ -15,9 +25,11 @@ BuildArch: noarch BuildRequires: python3-devel %if %{with tests} -BuildRequires: redis +BuildRequires: valkey BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-asyncio) +BuildRequires: python3dist(pytest-timeout) +BuildRequires: python3dist(numpy) %endif %global _description\ @@ -27,16 +39,33 @@ This is a Python interface to the Redis key-value store. %package -n python3-%{upstream_name} Summary: Python 3 interface to the Redis key-value store -%{?python_provide:%python_provide python3-%{upstream_name}} %description -n python3-%{upstream_name} This is a Python 3 interface to the Redis key-value store. %prep -%setup -qn redis-py-%{version} +%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 @@ -50,19 +79,82 @@ rm tests/test_commands.py* %if %{with tests} %check -%if 0%{?fedora} >= 37 -redis-server --enable-debug-command yes & -%else -redis-server & -%endif +valkey-server --enable-debug-command yes --daemonize yes %pytest -m 'not onlycluster and not redismod and not ssl' -kill %1 +valkey-cli shutdown %endif %files -n python3-%{upstream_name} -f %{pyproject_files} %doc CHANGES README.md %changelog +* Tue Dec 17 2024 Arkady L. Shane - 5.1.1-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* 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 @@ -222,3 +314,5 @@ kill %1 * Sat Sep 04 2010 Silas Sewell - 2.0.0-1 - Initial build + +## END: Generated by rpmautospec diff --git a/sources b/sources deleted file mode 100644 index 3ac521f..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (redis-py-4.3.3.tar.gz) = f16e8367258c3042ab687b7435cf481a64e89acd0687f6ee5ff1babe7b0bf120300e38601e8c3c7f0d8a864774c5f77e856a0f720e9eae8bc3a1711fb342e62b