[packages/python3-redis] - python-redis.spec updated to 7.2.0 for python 3.10+

qboosh qboosh at pld-linux.org
Sun Feb 22 09:35:11 CET 2026


commit 2e2a6ae03a657e3c2136ea31f726a383acf2c2f4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 22 09:35:10 2026 +0100

    - python-redis.spec updated to 7.2.0 for python 3.10+

 python-redis.spec  | 106 -----------------------------------------------------
 python3-redis.spec |  79 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+), 106 deletions(-)
---
diff --git a/python-redis.spec b/python-redis.spec
deleted file mode 100644
index bfe1a2f..0000000
--- a/python-redis.spec
+++ /dev/null
@@ -1,106 +0,0 @@
-#
-# Conditional build:
-%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}
-# keep 3.x here for python2 support
-Version:	3.5.3
-Release:	1
-License:	MIT
-Group:		Development/Languages
-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.714
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-mock
-BuildRequires:	python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-mock
-BuildRequires:	python3-pytest
-%endif
-%endif
-BuildArch:	noarch
-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
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest tests
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(644,root,root,755)
-%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 LICENSE README.rst
-%{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{module}-%{version}-*.egg-info
diff --git a/python3-redis.spec b/python3-redis.spec
new file mode 100644
index 0000000..1777a23
--- /dev/null
+++ b/python3-redis.spec
@@ -0,0 +1,79 @@
+#
+# Conditional build:
+%bcond_with	tests	# test suite (requires redis server running)
+
+%define		module	redis
+Summary:	A Python client for redis
+Summary(pl.UTF-8):	Pythonowy klient usługi redis
+Name:		python3-%{module}
+Version:	7.2.0
+Release:	1
+License:	MIT
+Group:		Development/Languages
+Source0:	https://files.pythonhosted.org/packages/source/r/redis/redis-%{version}.tar.gz
+# Source0-md5:	04813e9cdfc93a8f263e0a83e13e25bf
+URL:		https://github.com/redis/redis-py
+BuildRequires:	python3-build
+BuildRequires:	python3-hatchling
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.10
+%if %{with tests}
+%if "%{py3_ver}" < "3.11.3"
+BuildRequires:	python3-async_timeout >= 4.0.3
+%endif
+BuildRequires:	python3-cryptography >= 36.0.1
+BuildRequires:	python3-hiredis >= 3.2.0
+BuildRequires:	python3-numpy >= 1.24.0
+BuildRequires:	python3-opentelemetry-api >= 1.30.0
+BuildRequires:	python3-opentelemetry-exporter-otlp >= 1.30.0
+BuildRequires:	python3-opentelemetry-sdk >= 1.30.0
+BuildRequires:	python3-pyOpenSSL >= 20.0.1
+BuildRequires:	python3-pybreaker >= 1.4.0
+BuildRequires:	python3-pyjwt >= 2.9.0
+BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-asyncio >= 0.24.0
+BuildRequires:	python3-pytest-cov
+BuildRequires:	python3-pytest-profiling >= 1.8.1
+BuildRequires:	python3-pytest-timeout
+BuildRequires:	python3-redis-entraid >= 1.0.0
+BuildRequires:	python3-requests >= 2.31.0
+BuildRequires:	python3-ujson >= 4.2.0
+BuildRequires:	python3-uvloop
+BuildRequires:	python3-xxhash >= 3.6.0
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.10
+BuildArch:	noarch
+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 Pythona do usługi przechowywania danych klucz-wartość Redis.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/redis
+%{py3_sitescriptdir}/redis-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-redis.git/commitdiff/2e2a6ae03a657e3c2136ea31f726a383acf2c2f4



More information about the pld-cvs-commit mailing list