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