[packages/python-redis] - updated to 3.5.3
qboosh
qboosh at pld-linux.org
Sat Feb 21 21:43:09 CET 2026
commit 50c561dd6f3439e0c06ef7d2771698dbd7698da6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Feb 21 21:43:11 2026 +0100
- updated to 3.5.3
python-redis.spec | 53 ++++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 40 insertions(+), 13 deletions(-)
---
diff --git a/python-redis.spec b/python-redis.spec
index a9acc90..bfe1a2f 100644
--- a/python-redis.spec
+++ b/python-redis.spec
@@ -1,28 +1,38 @@
#
# Conditional build:
-%bcond_with tests # perform tests (seem to require redis running)
+%bcond_with tests # test suite (requires redis server running)
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
%define module redis
Summary: A Python client for redis
+Summary(pl.UTF-8): Pythonowy klient usługi redis
Name: python-%{module}
-Version: 2.10.5
-Release: 11
+# keep 3.x here for python2 support
+Version: 3.5.3
+Release: 1
License: MIT
Group: Development/Languages
-URL: http://github.com/andymccurdy/redis-py
-Source0: https://pypi.python.org/packages/source/r/redis/redis-2.10.5.tar.gz
-# Source0-md5: 3b26c2b9703b4b56b30a1ad508e31083
+Source0: https://files.pythonhosted.org/packages/source/r/redis/redis-%{version}.tar.gz
+# Source0-md5: 7a00d4540374f34e152a33faa1fcee5f
+URL: http://github.com/redis/redis-py
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.710
+BuildRequires: rpmbuild(macros) >= 1.714
%if %{with python2}
+BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
-%{?with_tests:BuildRequires: python-pytest}
+%if %{with tests}
+BuildRequires: python-mock
+BuildRequires: python-pytest
+%endif
%endif
%if %{with python3}
+BuildRequires: python3-modules >= 1:3.5
BuildRequires: python3-setuptools
-%{?with_tests:BuildRequires: python3-pytest}
+%if %{with tests}
+BuildRequires: python3-mock
+BuildRequires: python3-pytest
+%endif
%endif
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -30,24 +40,41 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This is a Python interface to the Redis key-value store.
+%description -l pl.UTF-8
+Interfejs Ptyhona do usługi przechowywania danych klucz-wartość Redis.
+
%package -n python3-%{module}
Summary: A Python client for redis
+Summary(pl.UTF-8): Pythonowy klient usługi redis
Group: Libraries/Python
Requires: python3-modules
%description -n python3-%{module}
This is a Python interface to the Redis key-value store.
+%description -n python3-%{module} -l pl.UTF-8
+Interfejs Ptyhona do usługi przechowywania danych klucz-wartość Redis.
+
%prep
%setup -q -n %{module}-%{version}
%build
%if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python} -m pytest tests
+%endif
%endif
%if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
%endif
%install
@@ -68,12 +95,12 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CHANGES README.rst
+%doc CHANGES LICENSE README.rst
%{py_sitescriptdir}/%{module}
%{py_sitescriptdir}/%{module}-%{version}-*.egg-info
%files -n python3-%{module}
%defattr(644,root,root,755)
-%doc CHANGES README.rst
+%doc CHANGES LICENSE README.rst
%{py3_sitescriptdir}/%{module}
%{py3_sitescriptdir}/%{module}-%{version}-*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-redis.git/commitdiff/50c561dd6f3439e0c06ef7d2771698dbd7698da6
More information about the pld-cvs-commit
mailing list