|
|
|
@ -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 <tigro@msvsphere-os.ru> - 5.1.1-3
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Tue Oct 22 2024 Carl George <carlwgeorge@fedoraproject.org> - 5.1.1-3
|
|
|
|
|
- Remove async-timeout and coverage build-time dependencies
|
|
|
|
|
|
|
|
|
|
* Tue Oct 22 2024 Carl George <carlwgeorge@fedoraproject.org> - 5.1.1-2
|
|
|
|
|
- Test with valkey instead of redis
|
|
|
|
|
|
|
|
|
|
* Wed Oct 09 2024 František Zatloukal <fzatlouk@redhat.com> - 5.1.1-1
|
|
|
|
|
- Update to 5.1.1 (RHBZ#2316483)
|
|
|
|
|
|
|
|
|
|
* Mon Sep 30 2024 František Zatloukal <fzatlouk@redhat.com> - 5.1.0-1
|
|
|
|
|
- Update to 5.1.0 (RHBZ#2250068)
|
|
|
|
|
|
|
|
|
|
* Mon Jul 29 2024 František Zatloukal <fzatlouk@redhat.com> - 5.0.8-1
|
|
|
|
|
- Update to 5.0.8
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.5-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 5.0.5-2
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 František Zatloukal <fzatlouk@redhat.com> - 5.0.5-1
|
|
|
|
|
- Update to 5.0.5
|
|
|
|
|
|
|
|
|
|
* Fri May 03 2024 František Zatloukal <fzatlouk@redhat.com> - 5.0.4-1
|
|
|
|
|
- Update to 5.0.4
|
|
|
|
|
|
|
|
|
|
* Mon Mar 25 2024 František Zatloukal <fzatlouk@redhat.com> - 5.0.3-1
|
|
|
|
|
- Update to 5.0.3
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Sep 28 2023 František Zatloukal <fzatlouk@redhat.com> - 5.0.1-1
|
|
|
|
|
- Update to 5.0.1
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 01 2023 Miro Hrončok <miro@hroncok.cz> - 4.5.1-3
|
|
|
|
|
- Deselect more tests :(
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 4.5.1-2
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Mon Feb 27 2023 Kevin Fenzi <kevin@scrye.com> - 4.5.1-1
|
|
|
|
|
- Update to 4.5.1. Fixes rhbz#2141041
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Sep 18 2022 Kevin Fenzi <kevin@scrye.com> - 4.3.4-1
|
|
|
|
|
- Update to 4.3.4. Fixes rhbz#2101428
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.3-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 4.3.3-2
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Sat Jun 11 2022 Kevin Fenzi <kevin@scrye.com> - 4.3.3-1
|
|
|
|
|
- Update to 4.3.3. Fixes rhbz#2092458
|
|
|
|
|
|
|
|
|
@ -222,3 +314,5 @@ kill %1
|
|
|
|
|
|
|
|
|
|
* Sat Sep 04 2010 Silas Sewell <silas@sewell.ch> - 2.0.0-1
|
|
|
|
|
- Initial build
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|