[packages/python-gevent] - updated to 22.10.2

qboosh qboosh at pld-linux.org
Fri Jun 27 18:33:07 CEST 2025


commit 71f857c1fe3a75fb6420b12abfadacd8f20ab1c9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jun 27 18:34:29 2025 +0200

    - updated to 22.10.2

 32bit.patch                        | 52 --------------------------
 python-gevent-sphinx-python3.patch |  2 +-
 python-gevent.spec                 | 76 ++++++++++++++++++--------------------
 3 files changed, 37 insertions(+), 93 deletions(-)
---
diff --git a/python-gevent.spec b/python-gevent.spec
index f56e4d9..c50f414 100644
--- a/python-gevent.spec
+++ b/python-gevent.spec
@@ -8,7 +8,7 @@
 
 # Conditional build:
 %bcond_without	doc		# Sphinx documentation
-%bcond_with	tests		# testing
+%bcond_with	tests		# testing (using network, many failures)
 %bcond_with	system_libev	# system libev [test__core_stat.py test fails]
 %bcond_without	system_c_ares	# system c_ares
 %bcond_without	python2		# CPython 2.x module
@@ -18,77 +18,77 @@
 Summary:	A coroutine-based Python 2 networking library
 Summary(pl.UTF-8):	Biblioteka sieciowa dla Pythona 2 oparta na korutynach
 Name:		python-%{module}
-Version:	21.12.0
-Release:	8
+# keep 22.x here for python2 support
+Version:	22.10.2
+Release:	1
 Epoch:		1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/gevent/
 Source0:	https://files.pythonhosted.org/packages/source/g/gevent/%{module}-%{version}.tar.gz
-# Source0-md5:	84014946a25407706cbe9ecb088f1e9c
+# Source0-md5:	9a29b3d7e17fc32bc70858116d76fa6a
 Patch0:		%{name}-sphinx-python3.patch
 Patch1:		known_failures-pld.patch
 Patch2:		not-final.patch
-Patch3:		32bit.patch
 URL:		http://www.gevent.org/
 %{?with_system_c_ares:BuildRequires:	c-ares-devel >= 1.10.0}
 %{?with_system_libev:BuildRequires:	libev-devel >= 4.23}
 %if %{with python2}
-BuildRequires:	python-Cython >= 0.29
-BuildRequires:	python-cffi >= 1.12.2
+BuildRequires:	python-Cython >= 3.0
+BuildRequires:	python-cffi >= 1.12.3
 BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-greenlet-devel >= 1.1.0
-BuildRequires:	python-greenlet-devel < 2
-BuildRequires:	python-setuptools >= 1:24.2.0
+BuildRequires:	python-greenlet-devel >= 2.0.0
+BuildRequires:	python-setuptools >= 1:40.8.0
 %if %{with tests}
-BuildRequires:	python-coverage >= 4.0
+BuildRequires:	python-coverage >= 5.0
 BuildRequires:	python-devel-src >= 1:2.7
 BuildRequires:	python-dns >= 1.16.0
 BuildRequires:	python-dns < 2
 BuildRequires:	python-futures
-BuildRequires:	python-greenlet >= 1.1.0
-BuildRequires:	python-greenlet < 2
-BuildRequires:  python-idna
-BuildRequires:  python-mock
-BuildRequires:  python-objgraph
-BuildRequires:  python-psutil >= 5.7.0
-BuildRequires:  python-requests
+BuildRequires:	python-greenlet >= 2.0.0
+BuildRequires:	python-idna
+BuildRequires:	python-mock
+BuildRequires:	python-objgraph
+BuildRequires:	python-psutil >= 5.7.0
+BuildRequires:	python-requests
+BuildRequires:	python-selectors2
 BuildRequires:	python-test
 BuildRequires:	python-zope.event
 BuildRequires:	python-zope.interface
+BuildConflicts:	pyhton-gevent < 1:22
 %endif
 %endif
 %if %{with python3}
-BuildRequires:	python3-Cython >= 0.29
-BuildRequires:	python3-cffi >= 1.12.2
+BuildRequires:	python3-Cython >= 3.0
+BuildRequires:	python3-cffi >= 1.12.3
 BuildRequires:	python3-devel >= 1:3.6
-BuildRequires:	python3-greenlet-devel >= 1.1.0
-BuildRequires:	python3-greenlet-devel < 2
-BuildRequires:	python3-setuptools >= 1:24.2.0
+BuildRequires:	python3-greenlet-devel >= 2.0.0
+BuildRequires:	python3-setuptools >= 1:40.8.0
 %if %{with tests}
 BuildRequires:	python3-coverage >= 4.0
 BuildRequires:	python3-dns >= 1.16.0
-#BuildRequires:	python3-dns < 2
-BuildRequires:	python3-greenlet >= 1.1.0
-BuildRequires:	python3-greenlet < 2
-BuildRequires:  python3-idna
-BuildRequires:  python3-objgraph
-BuildRequires:  python3-psutil >= 5.7.0
-BuildRequires:  python3-requests
+BuildRequires:	python3-dns < 2
+BuildRequires:	python3-greenlet >= 2.0.0
+%if "%{_ver_lt %{py3_ver} 3.10}" == "1"
+BuildRequires:	python3-idna
+%endif
+BuildRequires:	python3-objgraph
+BuildRequires:	python3-psutil >= 5.7.0
+BuildRequires:	python3-requests
 BuildRequires:	python3-test
 BuildRequires:	python3-zope.event
 BuildRequires:	python3-zope.interface
+BuildConflicts:	pyhton3-gevent < 1:22
 %endif
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
-BuildRequires:	python3-repoze.sphinx.autointerface
-BuildRequires:	python3-sphinxcontrib-programoutput
-BuildRequires:	sphinx-pdg-3
+BuildRequires:	python-repoze.sphinx.autointerface
+BuildRequires:	python-sphinxcontrib-programoutput
+BuildRequires:	sphinx-pdg-2
 %endif
 %{?with_system_libev:Requires:	libev >= 4.23}
-Requires:	python-greenlet >= 1.1.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -118,7 +118,6 @@ Summary:	A coroutine-based Python 3 networking library
 Summary(pl.UTF-8):	Biblioteka sieciowa dla Pythona 3 oparta na korutynach
 Group:		Libraries/Python
 %{?with_system_libev:Requires:	libev >= 4.23}
-Requires:	python-greenlet >= 1.1.0
 
 %description -n python3-%{module}
 gevent is a coroutine-based Python networking library. Features
@@ -158,9 +157,6 @@ Dokumentacja API modułu Pythona gevent.
 %patch -P 0 -p1
 #%%patch -P 1 -p1
 %patch -P 2 -p1
-cd deps/libuv
-%patch -P 3 -p1
-cd ../..
 
 find . -type f -name '*.orig' | xargs -r %{__rm}
 
@@ -192,9 +188,9 @@ PYTHONPATH=$(echo $PWD/build-3/lib.*) \
 %endif
 
 %if %{with doc}
-PYTHONPATH=$(echo $PWD/build-3/lib.*) \
+PYTHONPATH=$(echo $PWD/build-2/lib.*) \
 %{__make} -C docs html \
-	SPHINXBUILD=sphinx-build-3
+	SPHINXBUILD=sphinx-build-2
 %endif
 
 %install
diff --git a/32bit.patch b/32bit.patch
deleted file mode 100644
index 33fc967..0000000
--- a/32bit.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From 07dddbeb44fe4e5a6bbbc9167ab00f0a8f8ddaca Mon Sep 17 00:00:00 2001
-From: Ben Noordhuis <info at bnoordhuis.nl>
-Date: Thu, 5 Nov 2020 09:33:03 +0100
-Subject: [PATCH] linux: fix -Wincompatible-pointer-types warning
-
-`ssize_t` is 32 bits on 32 bits architectures, `off_t` is 64 bits
-(because libuv builds with `-D_LARGEFILE_SOURCE`.)
-
-Introduced in commit ca10e36149 ("linux: use copy_file_range for
-uv_fs_copyfile when possible") merged in July of this year.
-
-Fixes: https://github.com/libuv/libuv/issues/3011
-PR-URL: https://github.com/libuv/libuv/pull/3028
-Reviewed-By: Colin Ihrig <cjihrig at gmail.com>
-Reviewed-By: Richard Lau <rlau at redhat.com>
----
- src/unix/linux-syscalls.c | 4 ++--
- src/unix/linux-syscalls.h | 4 ++--
- 2 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/unix/linux-syscalls.c b/src/unix/linux-syscalls.c
-index 44daaf12d49..5ba3ffd6b88 100644
---- a/src/unix/linux-syscalls.c
-+++ b/src/unix/linux-syscalls.c
-@@ -222,9 +222,9 @@ int uv__dup3(int oldfd, int newfd, int flags) {
- 
- ssize_t
- uv__fs_copy_file_range(int fd_in,
--                       ssize_t* off_in,
-+                       off_t* off_in,
-                        int fd_out,
--                       ssize_t* off_out,
-+                       off_t* off_out,
-                        size_t len,
-                        unsigned int flags)
- {
-diff --git a/src/unix/linux-syscalls.h b/src/unix/linux-syscalls.h
-index 761ff32e21b..c85231f6bf4 100644
---- a/src/unix/linux-syscalls.h
-+++ b/src/unix/linux-syscalls.h
-@@ -66,9 +66,9 @@ ssize_t uv__pwritev(int fd, const struct iovec *iov, int iovcnt, int64_t offset)
- int uv__dup3(int oldfd, int newfd, int flags);
- ssize_t
- uv__fs_copy_file_range(int fd_in,
--                       ssize_t* off_in,
-+                       off_t* off_in,
-                        int fd_out,
--                       ssize_t* off_out,
-+                       off_t* off_out,
-                        size_t len,
-                        unsigned int flags);
- int uv__statx(int dirfd,
diff --git a/python-gevent-sphinx-python3.patch b/python-gevent-sphinx-python3.patch
index 75e0cb9..5b2b90a 100644
--- a/python-gevent-sphinx-python3.patch
+++ b/python-gevent-sphinx-python3.patch
@@ -5,7 +5,7 @@
  The test runner has a number of options:
  
 -.. command-output:: python -mgevent.tests --help
-+.. command-output:: python3 -mgevent.tests --help
++.. command-output:: python2 -mgevent.tests --help
  
  The simplest way to run all the tests is just to invoke the test
  runner, typically from the root of the source checkout::
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-gevent.git/commitdiff/71f857c1fe3a75fb6420b12abfadacd8f20ab1c9



More information about the pld-cvs-commit mailing list