From 266acc343d71bcadbd847f7b2960ec1dc58f13e4 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 4 Jun 2021 12:51:27 +0200 Subject: [PATCH 01/37] Rebuilt for Python 3.10 --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index e6d349e..add1540 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 21.1.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -94,6 +94,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Jun 04 2021 Python Maint - 21.1.2-2 +- Rebuilt for Python 3.10 + * Mon Apr 26 2021 Dan Callaghan - 21.1.2-1 - new upstream bug fix release 21.1.2 From 114bdce017a8a7dc7acb40136f11ab197f216e78 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 23 Jul 2021 06:33:22 +0000 Subject: [PATCH 02/37] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index add1540..1d08ab6 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 21.1.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -94,6 +94,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Jul 23 2021 Fedora Release Engineering - 21.1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Fri Jun 04 2021 Python Maint - 21.1.2-2 - Rebuilt for Python 3.10 From 7f60bd3c51070203c643396ea4501ae81fc0c4d1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jan 2022 12:22:16 +0000 Subject: [PATCH 03/37] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 1d08ab6..f2cdebf 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 21.1.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -94,6 +94,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Jan 21 2022 Fedora Release Engineering - 21.1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Jul 23 2021 Fedora Release Engineering - 21.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 8da351f93e2f3ed34b8ea07d6d0dc48063eb1601 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sun, 6 Mar 2022 12:45:24 -0700 Subject: [PATCH 04/37] Update to 21.12.0 Add BR zope-event --- .gitignore | 1 + python-gevent.spec | 8 ++++++-- sources | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index aba8dfa..4088ce5 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ gevent-0.13.0.tar.gz /gevent-20.6.1.tar.gz /gevent-20.9.0.tar.gz /gevent-21.1.2.tar.gz +/gevent-21.12.0.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index f2cdebf..5da01e9 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,8 +3,8 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 21.1.2 -Release: 4%{?dist} +Version: 21.12.0 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -39,6 +39,7 @@ BuildRequires: python3-setuptools # For tests BuildRequires: python3-dns BuildRequires: python3-psutil +BuildRequires: python3-zope-event BuildRequires: python3-zope-interface Requires: python3-greenlet >= 0.4.17 @@ -94,6 +95,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Sun Mar 06 2022 Orion Poplawski - 21.12.0-1 +- Update to 21.12.0 + * Fri Jan 21 2022 Fedora Release Engineering - 21.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index b852880..74da035 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-21.1.2.tar.gz) = 1ee2b748a97fa40f67ad2c3b83c6b9f48dbfaae9f2b4f1c118919cfd642c1ca27de0e33a00d950f003f90131354b56a4868ce3051864dbe2ea9b7f22eeafc1eb +SHA512 (gevent-21.12.0.tar.gz) = 805ddb475281b6c4c46cdf5a714915b6612512745121e7b153f3d33f3460135efa4994e0ff1601402d4f7b80d285cbfdc0d5d93799fbeb8ddbf2a52888cd91ad From 06bf9a29a4513cdfe43150172a1a8cf95c2abd40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 1 Jun 2022 11:26:36 +0200 Subject: [PATCH 05/37] Support Python 3.11 --- master...hroncok:py311b3.patch | 267 +++++++++++++++++++++++++++++++++ python-gevent.spec | 13 +- 2 files changed, 277 insertions(+), 3 deletions(-) create mode 100644 master...hroncok:py311b3.patch diff --git a/master...hroncok:py311b3.patch b/master...hroncok:py311b3.patch new file mode 100644 index 0000000..31dbd5c --- /dev/null +++ b/master...hroncok:py311b3.patch @@ -0,0 +1,267 @@ +From af14567992dfc709a6732ec8830e6840cb83f609 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= +Date: Wed, 8 Jun 2022 15:09:35 +0200 +Subject: [PATCH 1/3] Update greenlet for Python 3.11 + +From https://github.com/python-greenlet/greenlet/pull/306 + +Co-Authored-By: Victor Stinner +--- + deps/greenlet/greenlet.h | 17 ++++++++++++++++- + 1 file changed, 16 insertions(+), 1 deletion(-) + +diff --git a/deps/greenlet/greenlet.h b/deps/greenlet/greenlet.h +index 830bef8dd..4a26ace78 100644 +--- a/deps/greenlet/greenlet.h ++++ b/deps/greenlet/greenlet.h +@@ -14,6 +14,15 @@ extern "C" { + /* This is deprecated and undocumented. It does not change. */ + #define GREENLET_VERSION "1.0.0" + ++#if PY_VERSION_HEX >= 0x30B00A6 ++# define GREENLET_PY311 1 ++/* We need this for _PyInterpreterFrame apparently */ ++#include ++#else ++#define GREENLET_PY311 0 ++#define _PyCFrame CFrame ++#endif ++ + typedef struct _greenlet { + PyObject_HEAD + char* stack_start; +@@ -25,6 +34,12 @@ typedef struct _greenlet { + PyObject* run_info; + struct _frame* top_frame; + int recursion_depth; ++#if GREENLET_PY311 ++ _PyInterpreterFrame *current_frame; ++ _PyStackChunk *datastack_chunk; ++ PyObject **datastack_top; ++ PyObject **datastack_limit; ++#endif + PyObject* weakreflist; + #if PY_VERSION_HEX >= 0x030700A3 + _PyErr_StackItem* exc_info; +@@ -39,7 +54,7 @@ typedef struct _greenlet { + PyObject* context; + #endif + #if PY_VERSION_HEX >= 0x30A00B1 +- CFrame* cframe; ++ _PyCFrame* cframe; + #endif + } PyGreenlet; + + +From 4c3c5842bfb2982bf8560821db723b354eeede66 Mon Sep 17 00:00:00 2001 +From: Victor Stinner +Date: Tue, 1 Mar 2022 22:28:40 +0100 +Subject: [PATCH 2/3] Add Python 3.11 beta 3 support + +Co-Authored-By: Petr Viktorin +--- + _setuputils.py | 3 ++ + src/gevent/_gevent_cgreenlet.pxd | 47 ++++++++++++++++++++------------ + src/gevent/greenlet.py | 3 +- + 3 files changed, 35 insertions(+), 18 deletions(-) + +diff --git a/_setuputils.py b/_setuputils.py +index 7257b3eea..62748571e 100644 +--- a/_setuputils.py ++++ b/_setuputils.py +@@ -244,6 +244,9 @@ def cythonize1(ext): + 'infer_types': True, + 'nonecheck': False, + }, ++ compile_time_env={ ++ 'PY39B1': sys.hexversion >= 0x030900B1, ++ }, + # The common_utility_include_dir (not well documented) + # causes Cython to emit separate files for much of the + # static support code. Each of the modules then includes +diff --git a/src/gevent/_gevent_cgreenlet.pxd b/src/gevent/_gevent_cgreenlet.pxd +index cbb81a638..06ca25e5c 100644 +--- a/src/gevent/_gevent_cgreenlet.pxd ++++ b/src/gevent/_gevent_cgreenlet.pxd +@@ -52,35 +52,48 @@ cdef inline void greenlet_init(): + PyGreenlet_Import() + _greenlet_imported = True + +-cdef extern from "Python.h": ++ctypedef object CodeType + +- ctypedef class types.CodeType [object PyCodeObject]: +- pass ++IF PY39B1: ++ ctypedef object FrameType + +-cdef extern from "frameobject.h": ++ cdef extern from "Python.h": ++ CodeType PyFrame_GetCode(FrameType frame) ++ void* PyFrame_GetBack(FrameType frame) ++ ++ELSE: ++ cdef extern from "frameobject.h": ++ ctypedef class types.FrameType [object PyFrameObject]: ++ # We don't have PyFrame_GetCode, need to use the pointer directly ++ cdef CodeType f_code + +- ctypedef class types.FrameType [object PyFrameObject]: +- cdef CodeType f_code +- # Accessing the f_lineno directly doesn't work. There is an accessor +- # function, PyFrame_GetLineNumber that is needed to turn the raw line number +- # into the executing line number. +- # cdef int f_lineno +- # We can't declare this in the object as an object, because it's +- # allowed to be NULL, and Cython can't handle that. +- # We have to go through the python machinery to get a +- # proper None instead, or use an inline function. +- cdef void* f_back ++ # We can't declare this in the object as an object, because it's ++ # allowed to be NULL, and Cython can't handle that. ++ # We have to go through the python machinery to get a ++ # proper None instead, or use a function. ++ cdef void* f_back + ++cdef extern from "frameobject.h": + int PyFrame_GetLineNumber(FrameType frame) + + @cython.nonecheck(False) + cdef inline FrameType get_f_back(FrameType frame): +- if frame.f_back != NULL: +- return frame.f_back ++ IF PY39B1: ++ f_back = PyFrame_GetBack(frame) ++ ELSE: ++ f_back = frame.f_back ++ if f_back != NULL: ++ return f_back + + cdef inline int get_f_lineno(FrameType frame): + return PyFrame_GetLineNumber(frame) + ++cdef inline CodeType get_f_code(FrameType frame): ++ IF PY39B1: ++ return PyFrame_GetCode(frame) ++ ELSE: ++ return frame.f_code ++ + cdef void _init() + + cdef class SpawnedLink: +diff --git a/src/gevent/greenlet.py b/src/gevent/greenlet.py +index bed12ed44..612a8fd3a 100644 +--- a/src/gevent/greenlet.py ++++ b/src/gevent/greenlet.py +@@ -58,6 +58,7 @@ + # Frame access + locals()['get_f_back'] = lambda frame: frame.f_back + locals()['get_f_lineno'] = lambda frame: frame.f_lineno ++locals()['get_f_code'] = lambda frame: frame.f_code + + if _PYPY: + import _continuation # pylint:disable=import-error +@@ -157,7 +158,7 @@ def _extract_stack(limit): + # Arguments are always passed to the constructor as Python objects, + # meaning we wind up boxing the f_lineno just to unbox it if we pass it. + # It's faster to simply assign once the object is created. +- older_Frame.f_code = frame.f_code ++ older_Frame.f_code = get_f_code(frame) + older_Frame.f_lineno = get_f_lineno(frame) # pylint:disable=undefined-variable + if newer_Frame is not None: + newer_Frame.f_back = older_Frame + +From 70ad874dc8d17da81b356d02b9772bee68898f1c Mon Sep 17 00:00:00 2001 +From: Petr Viktorin +Date: Wed, 8 Jun 2022 15:08:45 +0200 +Subject: [PATCH 3/3] Amend tests for Python 3.11: No more U file mode, no more + inspect.getargspec() + +--- + src/gevent/testing/testcase.py | 15 ++++++++++----- + src/gevent/tests/test__fileobject.py | 16 +++++++++++++--- + 2 files changed, 23 insertions(+), 8 deletions(-) + +diff --git a/src/gevent/testing/testcase.py b/src/gevent/testing/testcase.py +index cd5db8033..e3a9775fc 100644 +--- a/src/gevent/testing/testcase.py ++++ b/src/gevent/testing/testcase.py +@@ -383,6 +383,7 @@ def assert_error(self, kind=None, value=None, error=None, where_type=None): + return error + + def assertMonkeyPatchedFuncSignatures(self, mod_name, func_names=(), exclude=()): ++ # If inspect.getfullargspec is not available, + # We use inspect.getargspec because it's the only thing available + # in Python 2.7, but it is deprecated + # pylint:disable=deprecated-method,too-many-locals +@@ -409,9 +410,13 @@ def assertMonkeyPatchedFuncSignatures(self, mod_name, func_names=(), exclude=()) + + try: + with warnings.catch_warnings(): +- warnings.simplefilter("ignore") +- gevent_sig = inspect.getargspec(gevent_func) +- sig = inspect.getargspec(func) ++ try: ++ getfullargspec = inspect.getfullargspec ++ except AttributeError: ++ warnings.simplefilter("ignore") ++ getfullargspec = inspect.getargspec ++ gevent_sig = getfullargspec(gevent_func) ++ sig = getfullargspec(func) + except TypeError: + if funcs_given: + raise +@@ -420,10 +425,10 @@ def assertMonkeyPatchedFuncSignatures(self, mod_name, func_names=(), exclude=()) + # Python 3 can check a lot more than Python 2 can. + continue + self.assertEqual(sig.args, gevent_sig.args, func_name) +- # The next three might not actually matter? ++ # The next two might not actually matter? + self.assertEqual(sig.varargs, gevent_sig.varargs, func_name) +- self.assertEqual(sig.keywords, gevent_sig.keywords, func_name) + self.assertEqual(sig.defaults, gevent_sig.defaults, func_name) ++ # Should deal with others: https://docs.python.org/3/library/inspect.html#inspect.getfullargspec + + def assertEqualFlakyRaceCondition(self, a, b): + try: +diff --git a/src/gevent/tests/test__fileobject.py b/src/gevent/tests/test__fileobject.py +index afe8d7479..1f4e664a0 100644 +--- a/src/gevent/tests/test__fileobject.py ++++ b/src/gevent/tests/test__fileobject.py +@@ -200,6 +200,8 @@ def test_does_not_leak_on_exception(self): + + @skipUnlessWorksWithRegularFiles + def test_rbU_produces_bytes_readline(self): ++ if sys.version_info > (3, 11): ++ self.skipTest("U file mode was removed in 3.11") + # Including U in rb still produces bytes. + # Note that the universal newline behaviour is + # essentially ignored in explicit bytes mode. +@@ -213,6 +215,8 @@ def test_rbU_produces_bytes_readline(self): + + @skipUnlessWorksWithRegularFiles + def test_rU_produces_native(self): ++ if sys.version_info > (3, 11): ++ self.skipTest("U file mode was removed in 3.11") + gevent_data = self.__check_native_matches( + b'line1\nline2\r\nline3\rlastline\n\n', + 'rU', +@@ -362,9 +366,15 @@ def test_newlines(self): + + try: + with warnings.catch_warnings(): +- warnings.simplefilter('ignore', DeprecationWarning) +- # U is deprecated in Python 3, shows up on FileObjectThread +- fobj = self._makeOne(r, 'rU') ++ if sys.version_info > (3, 11): ++ # U is removed in Python 3.11 ++ mode = 'r' ++ self.skipTest("U file mode was removed in 3.11") ++ else: ++ # U is deprecated in Python 3, shows up on FileObjectThread ++ warnings.simplefilter('ignore', DeprecationWarning) ++ mode = 'rU' ++ fobj = self._makeOne(r, mode) + result = fobj.read() + fobj.close() + self.assertEqual('line1\nline2\nline3\nline4\nline5\nline6', result) diff --git a/python-gevent.spec b/python-gevent.spec index 5da01e9..c73b031 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,13 +4,17 @@ Name: python-%{modname} Version: 21.12.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ Source0: %{pypi_source %{modname} %{version} tar.gz} +# Support Python 3.11 +# Discussion in https://github.com/gevent/gevent/pull/1872.patch +Patch: https://github.com/gevent/gevent/compare/master...hroncok:py311b3.patch + BuildRequires: gcc BuildRequires: c-ares-devel BuildRequires: libev-devel @@ -34,14 +38,13 @@ Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel BuildRequires: python3-Cython -BuildRequires: python3-greenlet-devel >= 0.4.17 +BuildRequires: python3-greenlet-devel >= 1.1.0 BuildRequires: python3-setuptools # For tests BuildRequires: python3-dns BuildRequires: python3-psutil BuildRequires: python3-zope-event BuildRequires: python3-zope-interface -Requires: python3-greenlet >= 0.4.17 %description -n python3-%{modname} gevent is a coroutine-based Python networking library that uses greenlet to @@ -69,6 +72,7 @@ sed -i -e 's/include_package_data=True/include_package_data=False/' setup.py # Force re-cythonizing the sources rm $(grep -rl '/\* Generated by Cython') +rm src/gevent/_generated_include/* %build export GEVENTSETUP_EMBED=0 @@ -95,6 +99,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Wed Jun 01 2022 Miro Hrončok - 21.12.0-2 +- Support Python 3.11 + * Sun Mar 06 2022 Orion Poplawski - 21.12.0-1 - Update to 21.12.0 From ca7a74d8fd4a2aeb318cafd8b3316a26df6baf5b Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 14 Jun 2022 11:20:46 +0200 Subject: [PATCH 06/37] Rebuilt for Python 3.11 --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index c73b031..4ab63b8 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 21.12.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -99,6 +99,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Tue Jun 14 2022 Python Maint - 21.12.0-3 +- Rebuilt for Python 3.11 + * Wed Jun 01 2022 Miro Hrončok - 21.12.0-2 - Support Python 3.11 From af00be16f00b3660c6fe5e932eec5ae5e372b0e8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 18:44:38 +0000 Subject: [PATCH 07/37] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 4ab63b8..ce1b302 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 21.12.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -99,6 +99,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Jul 22 2022 Fedora Release Engineering - 21.12.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Tue Jun 14 2022 Python Maint - 21.12.0-3 - Rebuilt for Python 3.11 From 325397682d155c2be6c811ec80496e5cd814f7fa Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 13:27:24 +0000 Subject: [PATCH 08/37] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index ce1b302..2f87660 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 21.12.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -99,6 +99,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 21.12.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Fri Jul 22 2022 Fedora Release Engineering - 21.12.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 26ea9cf11c1183475f1d36ba9ae7514378e5a737 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 15 Jun 2023 11:48:32 +0200 Subject: [PATCH 09/37] Update to 22.10.2 --- .gitignore | 1 + master...hroncok:py311b3.patch | 267 --------------------------------- python-gevent.spec | 11 +- sources | 2 +- 4 files changed, 7 insertions(+), 274 deletions(-) delete mode 100644 master...hroncok:py311b3.patch diff --git a/.gitignore b/.gitignore index 4088ce5..dbc8c37 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ gevent-0.13.0.tar.gz /gevent-20.9.0.tar.gz /gevent-21.1.2.tar.gz /gevent-21.12.0.tar.gz +/gevent-22.10.2.tar.gz diff --git a/master...hroncok:py311b3.patch b/master...hroncok:py311b3.patch deleted file mode 100644 index 31dbd5c..0000000 --- a/master...hroncok:py311b3.patch +++ /dev/null @@ -1,267 +0,0 @@ -From af14567992dfc709a6732ec8830e6840cb83f609 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= -Date: Wed, 8 Jun 2022 15:09:35 +0200 -Subject: [PATCH 1/3] Update greenlet for Python 3.11 - -From https://github.com/python-greenlet/greenlet/pull/306 - -Co-Authored-By: Victor Stinner ---- - deps/greenlet/greenlet.h | 17 ++++++++++++++++- - 1 file changed, 16 insertions(+), 1 deletion(-) - -diff --git a/deps/greenlet/greenlet.h b/deps/greenlet/greenlet.h -index 830bef8dd..4a26ace78 100644 ---- a/deps/greenlet/greenlet.h -+++ b/deps/greenlet/greenlet.h -@@ -14,6 +14,15 @@ extern "C" { - /* This is deprecated and undocumented. It does not change. */ - #define GREENLET_VERSION "1.0.0" - -+#if PY_VERSION_HEX >= 0x30B00A6 -+# define GREENLET_PY311 1 -+/* We need this for _PyInterpreterFrame apparently */ -+#include -+#else -+#define GREENLET_PY311 0 -+#define _PyCFrame CFrame -+#endif -+ - typedef struct _greenlet { - PyObject_HEAD - char* stack_start; -@@ -25,6 +34,12 @@ typedef struct _greenlet { - PyObject* run_info; - struct _frame* top_frame; - int recursion_depth; -+#if GREENLET_PY311 -+ _PyInterpreterFrame *current_frame; -+ _PyStackChunk *datastack_chunk; -+ PyObject **datastack_top; -+ PyObject **datastack_limit; -+#endif - PyObject* weakreflist; - #if PY_VERSION_HEX >= 0x030700A3 - _PyErr_StackItem* exc_info; -@@ -39,7 +54,7 @@ typedef struct _greenlet { - PyObject* context; - #endif - #if PY_VERSION_HEX >= 0x30A00B1 -- CFrame* cframe; -+ _PyCFrame* cframe; - #endif - } PyGreenlet; - - -From 4c3c5842bfb2982bf8560821db723b354eeede66 Mon Sep 17 00:00:00 2001 -From: Victor Stinner -Date: Tue, 1 Mar 2022 22:28:40 +0100 -Subject: [PATCH 2/3] Add Python 3.11 beta 3 support - -Co-Authored-By: Petr Viktorin ---- - _setuputils.py | 3 ++ - src/gevent/_gevent_cgreenlet.pxd | 47 ++++++++++++++++++++------------ - src/gevent/greenlet.py | 3 +- - 3 files changed, 35 insertions(+), 18 deletions(-) - -diff --git a/_setuputils.py b/_setuputils.py -index 7257b3eea..62748571e 100644 ---- a/_setuputils.py -+++ b/_setuputils.py -@@ -244,6 +244,9 @@ def cythonize1(ext): - 'infer_types': True, - 'nonecheck': False, - }, -+ compile_time_env={ -+ 'PY39B1': sys.hexversion >= 0x030900B1, -+ }, - # The common_utility_include_dir (not well documented) - # causes Cython to emit separate files for much of the - # static support code. Each of the modules then includes -diff --git a/src/gevent/_gevent_cgreenlet.pxd b/src/gevent/_gevent_cgreenlet.pxd -index cbb81a638..06ca25e5c 100644 ---- a/src/gevent/_gevent_cgreenlet.pxd -+++ b/src/gevent/_gevent_cgreenlet.pxd -@@ -52,35 +52,48 @@ cdef inline void greenlet_init(): - PyGreenlet_Import() - _greenlet_imported = True - --cdef extern from "Python.h": -+ctypedef object CodeType - -- ctypedef class types.CodeType [object PyCodeObject]: -- pass -+IF PY39B1: -+ ctypedef object FrameType - --cdef extern from "frameobject.h": -+ cdef extern from "Python.h": -+ CodeType PyFrame_GetCode(FrameType frame) -+ void* PyFrame_GetBack(FrameType frame) -+ -+ELSE: -+ cdef extern from "frameobject.h": -+ ctypedef class types.FrameType [object PyFrameObject]: -+ # We don't have PyFrame_GetCode, need to use the pointer directly -+ cdef CodeType f_code - -- ctypedef class types.FrameType [object PyFrameObject]: -- cdef CodeType f_code -- # Accessing the f_lineno directly doesn't work. There is an accessor -- # function, PyFrame_GetLineNumber that is needed to turn the raw line number -- # into the executing line number. -- # cdef int f_lineno -- # We can't declare this in the object as an object, because it's -- # allowed to be NULL, and Cython can't handle that. -- # We have to go through the python machinery to get a -- # proper None instead, or use an inline function. -- cdef void* f_back -+ # We can't declare this in the object as an object, because it's -+ # allowed to be NULL, and Cython can't handle that. -+ # We have to go through the python machinery to get a -+ # proper None instead, or use a function. -+ cdef void* f_back - -+cdef extern from "frameobject.h": - int PyFrame_GetLineNumber(FrameType frame) - - @cython.nonecheck(False) - cdef inline FrameType get_f_back(FrameType frame): -- if frame.f_back != NULL: -- return frame.f_back -+ IF PY39B1: -+ f_back = PyFrame_GetBack(frame) -+ ELSE: -+ f_back = frame.f_back -+ if f_back != NULL: -+ return f_back - - cdef inline int get_f_lineno(FrameType frame): - return PyFrame_GetLineNumber(frame) - -+cdef inline CodeType get_f_code(FrameType frame): -+ IF PY39B1: -+ return PyFrame_GetCode(frame) -+ ELSE: -+ return frame.f_code -+ - cdef void _init() - - cdef class SpawnedLink: -diff --git a/src/gevent/greenlet.py b/src/gevent/greenlet.py -index bed12ed44..612a8fd3a 100644 ---- a/src/gevent/greenlet.py -+++ b/src/gevent/greenlet.py -@@ -58,6 +58,7 @@ - # Frame access - locals()['get_f_back'] = lambda frame: frame.f_back - locals()['get_f_lineno'] = lambda frame: frame.f_lineno -+locals()['get_f_code'] = lambda frame: frame.f_code - - if _PYPY: - import _continuation # pylint:disable=import-error -@@ -157,7 +158,7 @@ def _extract_stack(limit): - # Arguments are always passed to the constructor as Python objects, - # meaning we wind up boxing the f_lineno just to unbox it if we pass it. - # It's faster to simply assign once the object is created. -- older_Frame.f_code = frame.f_code -+ older_Frame.f_code = get_f_code(frame) - older_Frame.f_lineno = get_f_lineno(frame) # pylint:disable=undefined-variable - if newer_Frame is not None: - newer_Frame.f_back = older_Frame - -From 70ad874dc8d17da81b356d02b9772bee68898f1c Mon Sep 17 00:00:00 2001 -From: Petr Viktorin -Date: Wed, 8 Jun 2022 15:08:45 +0200 -Subject: [PATCH 3/3] Amend tests for Python 3.11: No more U file mode, no more - inspect.getargspec() - ---- - src/gevent/testing/testcase.py | 15 ++++++++++----- - src/gevent/tests/test__fileobject.py | 16 +++++++++++++--- - 2 files changed, 23 insertions(+), 8 deletions(-) - -diff --git a/src/gevent/testing/testcase.py b/src/gevent/testing/testcase.py -index cd5db8033..e3a9775fc 100644 ---- a/src/gevent/testing/testcase.py -+++ b/src/gevent/testing/testcase.py -@@ -383,6 +383,7 @@ def assert_error(self, kind=None, value=None, error=None, where_type=None): - return error - - def assertMonkeyPatchedFuncSignatures(self, mod_name, func_names=(), exclude=()): -+ # If inspect.getfullargspec is not available, - # We use inspect.getargspec because it's the only thing available - # in Python 2.7, but it is deprecated - # pylint:disable=deprecated-method,too-many-locals -@@ -409,9 +410,13 @@ def assertMonkeyPatchedFuncSignatures(self, mod_name, func_names=(), exclude=()) - - try: - with warnings.catch_warnings(): -- warnings.simplefilter("ignore") -- gevent_sig = inspect.getargspec(gevent_func) -- sig = inspect.getargspec(func) -+ try: -+ getfullargspec = inspect.getfullargspec -+ except AttributeError: -+ warnings.simplefilter("ignore") -+ getfullargspec = inspect.getargspec -+ gevent_sig = getfullargspec(gevent_func) -+ sig = getfullargspec(func) - except TypeError: - if funcs_given: - raise -@@ -420,10 +425,10 @@ def assertMonkeyPatchedFuncSignatures(self, mod_name, func_names=(), exclude=()) - # Python 3 can check a lot more than Python 2 can. - continue - self.assertEqual(sig.args, gevent_sig.args, func_name) -- # The next three might not actually matter? -+ # The next two might not actually matter? - self.assertEqual(sig.varargs, gevent_sig.varargs, func_name) -- self.assertEqual(sig.keywords, gevent_sig.keywords, func_name) - self.assertEqual(sig.defaults, gevent_sig.defaults, func_name) -+ # Should deal with others: https://docs.python.org/3/library/inspect.html#inspect.getfullargspec - - def assertEqualFlakyRaceCondition(self, a, b): - try: -diff --git a/src/gevent/tests/test__fileobject.py b/src/gevent/tests/test__fileobject.py -index afe8d7479..1f4e664a0 100644 ---- a/src/gevent/tests/test__fileobject.py -+++ b/src/gevent/tests/test__fileobject.py -@@ -200,6 +200,8 @@ def test_does_not_leak_on_exception(self): - - @skipUnlessWorksWithRegularFiles - def test_rbU_produces_bytes_readline(self): -+ if sys.version_info > (3, 11): -+ self.skipTest("U file mode was removed in 3.11") - # Including U in rb still produces bytes. - # Note that the universal newline behaviour is - # essentially ignored in explicit bytes mode. -@@ -213,6 +215,8 @@ def test_rbU_produces_bytes_readline(self): - - @skipUnlessWorksWithRegularFiles - def test_rU_produces_native(self): -+ if sys.version_info > (3, 11): -+ self.skipTest("U file mode was removed in 3.11") - gevent_data = self.__check_native_matches( - b'line1\nline2\r\nline3\rlastline\n\n', - 'rU', -@@ -362,9 +366,15 @@ def test_newlines(self): - - try: - with warnings.catch_warnings(): -- warnings.simplefilter('ignore', DeprecationWarning) -- # U is deprecated in Python 3, shows up on FileObjectThread -- fobj = self._makeOne(r, 'rU') -+ if sys.version_info > (3, 11): -+ # U is removed in Python 3.11 -+ mode = 'r' -+ self.skipTest("U file mode was removed in 3.11") -+ else: -+ # U is deprecated in Python 3, shows up on FileObjectThread -+ warnings.simplefilter('ignore', DeprecationWarning) -+ mode = 'rU' -+ fobj = self._makeOne(r, mode) - result = fobj.read() - fobj.close() - self.assertEqual('line1\nline2\nline3\nline4\nline5\nline6', result) diff --git a/python-gevent.spec b/python-gevent.spec index 2f87660..3a321b9 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,18 +3,14 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 21.12.0 -Release: 5%{?dist} +Version: 22.10.2 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ Source0: %{pypi_source %{modname} %{version} tar.gz} -# Support Python 3.11 -# Discussion in https://github.com/gevent/gevent/pull/1872.patch -Patch: https://github.com/gevent/gevent/compare/master...hroncok:py311b3.patch - BuildRequires: gcc BuildRequires: c-ares-devel BuildRequires: libev-devel @@ -99,6 +95,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Thu Jun 15 2023 Petr Viktorin - 22.10.2-1 +- Update to 22.10.2 + * Fri Jan 20 2023 Fedora Release Engineering - 21.12.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index 74da035..3d8d6aa 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-21.12.0.tar.gz) = 805ddb475281b6c4c46cdf5a714915b6612512745121e7b153f3d33f3460135efa4994e0ff1601402d4f7b80d285cbfdc0d5d93799fbeb8ddbf2a52888cd91ad +SHA512 (gevent-22.10.2.tar.gz) = e4cf1ca94269a7418cd8c1fcc7efaa1b393921ec4d9f50b9a29f1059db102d6a41b6d7f4602b215b877d29696bf235c883ea7e3e52480133366afa839ec4bcd8 From e14374a2e529c73f6b7cb9288b629ba9cdf2043e Mon Sep 17 00:00:00 2001 From: Python Maint Date: Thu, 15 Jun 2023 18:54:47 +0200 Subject: [PATCH 10/37] Rebuilt for Python 3.12 --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 3a321b9..89ea7a0 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 22.10.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -95,6 +95,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Thu Jun 15 2023 Python Maint - 22.10.2-2 +- Rebuilt for Python 3.12 + * Thu Jun 15 2023 Petr Viktorin - 22.10.2-1 - Update to 22.10.2 From 3d835c996dbb5081384f68fca4f1c0f992b18160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 16 Jun 2023 09:21:26 +0200 Subject: [PATCH 11/37] Remove the usage of assertRaisesRegexp unit test alias removed in Python 3.12 --- 1944.patch | 69 ++++++++++++++++++++++++++++++++++++++++++++++ python-gevent.spec | 3 ++ 2 files changed, 72 insertions(+) create mode 100644 1944.patch diff --git a/1944.patch b/1944.patch new file mode 100644 index 0000000..e0b31df --- /dev/null +++ b/1944.patch @@ -0,0 +1,69 @@ +From 5718d7f72eab3ac64a207ab6256e2810549f86cf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= +Date: Wed, 17 May 2023 09:34:35 +0200 +Subject: [PATCH] Remove the usage of assertRaisesRegexp unit test alias + removed in Python 3.12 + +--- + src/gevent/testing/testcase.py | 3 +-- + src/gevent/tests/test___config.py | 3 +-- + src/gevent/tests/test__close_backend_fd.py | 3 +-- + src/gevent/tests/test__contextvars.py | 3 --- + 4 files changed, 3 insertions(+), 9 deletions(-) + +diff --git a/src/gevent/testing/testcase.py b/src/gevent/testing/testcase.py +index 474840942..c96d57249 100644 +--- a/src/gevent/testing/testcase.py ++++ b/src/gevent/testing/testcase.py +@@ -453,8 +453,7 @@ def assertEqualFlakyRaceCondition(self, a, b): + except AssertionError: + flaky.reraiseFlakyTestRaceCondition() + +- assertRaisesRegex = getattr(BaseTestCase, 'assertRaisesRegex', +- getattr(BaseTestCase, 'assertRaisesRegexp')) ++ assertRaisesRegex = BaseTestCase.assertRaisesRegex + + def assertStartsWith(self, it, has_prefix): + self.assertTrue(it.startswith(has_prefix), (it, has_prefix)) +diff --git a/src/gevent/tests/test___config.py b/src/gevent/tests/test___config.py +index 382ffd4a0..c5f6a9b5d 100644 +--- a/src/gevent/tests/test___config.py ++++ b/src/gevent/tests/test___config.py +@@ -121,8 +121,7 @@ def test_set_invalid(self): + + class TestImportableSetting(unittest.TestCase): + +- assertRaisesRegex = getattr(unittest.TestCase, 'assertRaisesRegex', +- unittest.TestCase.assertRaisesRegexp) ++ assertRaisesRegex = unittest.TestCase.assertRaisesRegex + def test_empty_list(self): + i = _config.ImportableSetting() + with self.assertRaisesRegex(ImportError, +diff --git a/src/gevent/tests/test__close_backend_fd.py b/src/gevent/tests/test__close_backend_fd.py +index 46406caf7..4fd7f5519 100644 +--- a/src/gevent/tests/test__close_backend_fd.py ++++ b/src/gevent/tests/test__close_backend_fd.py +@@ -21,8 +21,7 @@ class Test(unittest.TestCase): + # NOTE that we extend unittest.TestCase, not greentest.TestCase + # Extending the later causes the wrong hub to get used. + +- assertRaisesRegex = getattr(unittest.TestCase, 'assertRaisesRegex', +- getattr(unittest.TestCase, 'assertRaisesRegexp')) ++ assertRaisesRegex = unittest.TestCase.assertRaisesRegex + + BACKENDS_THAT_SUCCEED_WHEN_FD_CLOSED = ( + 'kqueue', +diff --git a/src/gevent/tests/test__contextvars.py b/src/gevent/tests/test__contextvars.py +index 3d6611b9c..10b24968c 100644 +--- a/src/gevent/tests/test__contextvars.py ++++ b/src/gevent/tests/test__contextvars.py +@@ -36,9 +36,6 @@ def wrapper(*args, **kwargs): + + class ContextTest(unittest.TestCase): + +- if not hasattr(unittest.TestCase, 'assertRaisesRegex'): +- assertRaisesRegex = unittest.TestCase.assertRaisesRegexp +- + def test_context_var_new_1(self): + with self.assertRaises(TypeError): + contextvars.ContextVar() diff --git a/python-gevent.spec b/python-gevent.spec index 89ea7a0..72b6ec9 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -11,6 +11,9 @@ License: MIT URL: http://www.gevent.org/ Source0: %{pypi_source %{modname} %{version} tar.gz} +# Remove the usage of assertRaisesRegexp unit test alias removed in Python 3.12 +Patch: https://github.com/gevent/gevent/pull/1944.patch + BuildRequires: gcc BuildRequires: c-ares-devel BuildRequires: libev-devel From 609d2e91be5659bc5c9c9aa01f7a8c1809439822 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 26 Jun 2023 21:22:21 -0600 Subject: [PATCH 12/37] Add patch to remove match_hostname import --- python-gevent-py312.patch | 19 +++++++++++++++++++ python-gevent.spec | 11 ++++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 python-gevent-py312.patch diff --git a/python-gevent-py312.patch b/python-gevent-py312.patch new file mode 100644 index 0000000..1461cc4 --- /dev/null +++ b/python-gevent-py312.patch @@ -0,0 +1,19 @@ +diff -up gevent-22.10.2/src/gevent/_ssl3.py.py312 gevent-22.10.2/src/gevent/_ssl3.py +--- gevent-22.10.2/src/gevent/_ssl3.py.py312 2022-10-31 12:53:52.000000000 -0600 ++++ gevent-22.10.2/src/gevent/_ssl3.py 2023-06-26 19:07:10.247869058 -0600 +@@ -50,7 +50,6 @@ from ssl import SSL_ERROR_WANT_READ + from ssl import SSL_ERROR_WANT_WRITE + from ssl import PROTOCOL_SSLv23 + from ssl import SSLObject +-from ssl import match_hostname + from ssl import CHANNEL_BINDING_TYPES + from ssl import CERT_REQUIRED + from ssl import DER_cert_to_PEM_cert +@@ -680,6 +679,7 @@ class SSLSocket(socket): + if not self.server_hostname: + raise ValueError("check_hostname needs server_hostname " + "argument") ++ from ssl import match_hostname + match_hostname(self.getpeercert(), self.server_hostname) # pylint:disable=deprecated-method + + if hasattr(SSLObject, '_create'): diff --git a/python-gevent.spec b/python-gevent.spec index 72b6ec9..8e80997 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 22.10.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -13,6 +13,9 @@ Source0: %{pypi_source %{modname} %{version} tar.gz} # Remove the usage of assertRaisesRegexp unit test alias removed in Python 3.12 Patch: https://github.com/gevent/gevent/pull/1944.patch +# Remove the import of match_hostname deprecated in 3.7 and removed in Python 3.12 +# https://github.com/gevent/gevent/pull/1963 +Patch: python-gevent-py312.patch BuildRequires: gcc BuildRequires: c-ares-devel @@ -34,10 +37,9 @@ Features include: %package -n python3-%{modname} Summary: %{summary} -%{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel BuildRequires: python3-Cython -BuildRequires: python3-greenlet-devel >= 1.1.0 +BuildRequires: python3-greenlet-devel >= 2.0.0 BuildRequires: python3-setuptools # For tests BuildRequires: python3-dns @@ -98,6 +100,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Tue Jun 27 2023 Orion Poplawski - 22.10.2-3 +- Add patch to remove match_hostname import + * Thu Jun 15 2023 Python Maint - 22.10.2-2 - Rebuilt for Python 3.12 From 105fb5978994e7a53aad17cd0430252bd902331d Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sun, 16 Jul 2023 21:35:37 -0600 Subject: [PATCH 13/37] Update to 23.7.0 --- .gitignore | 1 + 1944.patch | 69 --------------------------------------- python-gevent-py312.patch | 19 ----------- python-gevent.spec | 15 +++------ sources | 2 +- 5 files changed, 7 insertions(+), 99 deletions(-) delete mode 100644 1944.patch delete mode 100644 python-gevent-py312.patch diff --git a/.gitignore b/.gitignore index dbc8c37..45b001a 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ gevent-0.13.0.tar.gz /gevent-21.1.2.tar.gz /gevent-21.12.0.tar.gz /gevent-22.10.2.tar.gz +/gevent-23.7.0.tar.gz diff --git a/1944.patch b/1944.patch deleted file mode 100644 index e0b31df..0000000 --- a/1944.patch +++ /dev/null @@ -1,69 +0,0 @@ -From 5718d7f72eab3ac64a207ab6256e2810549f86cf Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= -Date: Wed, 17 May 2023 09:34:35 +0200 -Subject: [PATCH] Remove the usage of assertRaisesRegexp unit test alias - removed in Python 3.12 - ---- - src/gevent/testing/testcase.py | 3 +-- - src/gevent/tests/test___config.py | 3 +-- - src/gevent/tests/test__close_backend_fd.py | 3 +-- - src/gevent/tests/test__contextvars.py | 3 --- - 4 files changed, 3 insertions(+), 9 deletions(-) - -diff --git a/src/gevent/testing/testcase.py b/src/gevent/testing/testcase.py -index 474840942..c96d57249 100644 ---- a/src/gevent/testing/testcase.py -+++ b/src/gevent/testing/testcase.py -@@ -453,8 +453,7 @@ def assertEqualFlakyRaceCondition(self, a, b): - except AssertionError: - flaky.reraiseFlakyTestRaceCondition() - -- assertRaisesRegex = getattr(BaseTestCase, 'assertRaisesRegex', -- getattr(BaseTestCase, 'assertRaisesRegexp')) -+ assertRaisesRegex = BaseTestCase.assertRaisesRegex - - def assertStartsWith(self, it, has_prefix): - self.assertTrue(it.startswith(has_prefix), (it, has_prefix)) -diff --git a/src/gevent/tests/test___config.py b/src/gevent/tests/test___config.py -index 382ffd4a0..c5f6a9b5d 100644 ---- a/src/gevent/tests/test___config.py -+++ b/src/gevent/tests/test___config.py -@@ -121,8 +121,7 @@ def test_set_invalid(self): - - class TestImportableSetting(unittest.TestCase): - -- assertRaisesRegex = getattr(unittest.TestCase, 'assertRaisesRegex', -- unittest.TestCase.assertRaisesRegexp) -+ assertRaisesRegex = unittest.TestCase.assertRaisesRegex - def test_empty_list(self): - i = _config.ImportableSetting() - with self.assertRaisesRegex(ImportError, -diff --git a/src/gevent/tests/test__close_backend_fd.py b/src/gevent/tests/test__close_backend_fd.py -index 46406caf7..4fd7f5519 100644 ---- a/src/gevent/tests/test__close_backend_fd.py -+++ b/src/gevent/tests/test__close_backend_fd.py -@@ -21,8 +21,7 @@ class Test(unittest.TestCase): - # NOTE that we extend unittest.TestCase, not greentest.TestCase - # Extending the later causes the wrong hub to get used. - -- assertRaisesRegex = getattr(unittest.TestCase, 'assertRaisesRegex', -- getattr(unittest.TestCase, 'assertRaisesRegexp')) -+ assertRaisesRegex = unittest.TestCase.assertRaisesRegex - - BACKENDS_THAT_SUCCEED_WHEN_FD_CLOSED = ( - 'kqueue', -diff --git a/src/gevent/tests/test__contextvars.py b/src/gevent/tests/test__contextvars.py -index 3d6611b9c..10b24968c 100644 ---- a/src/gevent/tests/test__contextvars.py -+++ b/src/gevent/tests/test__contextvars.py -@@ -36,9 +36,6 @@ def wrapper(*args, **kwargs): - - class ContextTest(unittest.TestCase): - -- if not hasattr(unittest.TestCase, 'assertRaisesRegex'): -- assertRaisesRegex = unittest.TestCase.assertRaisesRegexp -- - def test_context_var_new_1(self): - with self.assertRaises(TypeError): - contextvars.ContextVar() diff --git a/python-gevent-py312.patch b/python-gevent-py312.patch deleted file mode 100644 index 1461cc4..0000000 --- a/python-gevent-py312.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -up gevent-22.10.2/src/gevent/_ssl3.py.py312 gevent-22.10.2/src/gevent/_ssl3.py ---- gevent-22.10.2/src/gevent/_ssl3.py.py312 2022-10-31 12:53:52.000000000 -0600 -+++ gevent-22.10.2/src/gevent/_ssl3.py 2023-06-26 19:07:10.247869058 -0600 -@@ -50,7 +50,6 @@ from ssl import SSL_ERROR_WANT_READ - from ssl import SSL_ERROR_WANT_WRITE - from ssl import PROTOCOL_SSLv23 - from ssl import SSLObject --from ssl import match_hostname - from ssl import CHANNEL_BINDING_TYPES - from ssl import CERT_REQUIRED - from ssl import DER_cert_to_PEM_cert -@@ -680,6 +679,7 @@ class SSLSocket(socket): - if not self.server_hostname: - raise ValueError("check_hostname needs server_hostname " - "argument") -+ from ssl import match_hostname - match_hostname(self.getpeercert(), self.server_hostname) # pylint:disable=deprecated-method - - if hasattr(SSLObject, '_create'): diff --git a/python-gevent.spec b/python-gevent.spec index 8e80997..da2755b 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,20 +3,14 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 22.10.2 -Release: 3%{?dist} +Version: 23.7.0 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ Source0: %{pypi_source %{modname} %{version} tar.gz} -# Remove the usage of assertRaisesRegexp unit test alias removed in Python 3.12 -Patch: https://github.com/gevent/gevent/pull/1944.patch -# Remove the import of match_hostname deprecated in 3.7 and removed in Python 3.12 -# https://github.com/gevent/gevent/pull/1963 -Patch: python-gevent-py312.patch - BuildRequires: gcc BuildRequires: c-ares-devel BuildRequires: libev-devel @@ -83,8 +77,6 @@ export GEVENTSETUP_EMBED=0 %install export GEVENTSETUP_EMBED=0 %py3_install -rm %{buildroot}%{python3_sitearch}/%{modname}/_*2.py -rm %{buildroot}%{python3_sitearch}/%{modname}/__pycache__/_*2.* find %{buildroot} -name '.buildinfo' -delete # Correct the permissions. find %{buildroot} -name '*.so' -exec chmod 755 {} ';' @@ -100,6 +92,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Mon Jul 17 2023 Orion Poplawski - 23.7.0-1 +- Update to 23.7.0 + * Tue Jun 27 2023 Orion Poplawski - 22.10.2-3 - Add patch to remove match_hostname import diff --git a/sources b/sources index 3d8d6aa..4b8f562 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-22.10.2.tar.gz) = e4cf1ca94269a7418cd8c1fcc7efaa1b393921ec4d9f50b9a29f1059db102d6a41b6d7f4602b215b877d29696bf235c883ea7e3e52480133366afa839ec4bcd8 +SHA512 (gevent-23.7.0.tar.gz) = d452e58e96ba5b7f995b9a762fe378cef24a728a5291b3df069ff50815b336c6ad7bdbe0341c6c9c821dea6fc1a6601aec9d8c9c18aea8045bbcddb2f9240198 From 1a0d0d08527f826a060bffa799bdd41f9f3d7aeb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 09:59:06 +0000 Subject: [PATCH 14/37] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index da2755b..7ed9259 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 23.7.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -92,6 +92,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 23.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Mon Jul 17 2023 Orion Poplawski - 23.7.0-1 - Update to 23.7.0 From 9e372d44b398b637adc30136a4d3c5d404bc55e3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 01:42:47 +0000 Subject: [PATCH 15/37] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 7ed9259..62d19d4 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 23.7.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -92,6 +92,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 23.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jul 21 2023 Fedora Release Engineering - 23.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From b7f0a326ef2730617ebf07a2b5f7b79e4e4f9ce3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jan 2024 04:45:13 +0000 Subject: [PATCH 16/37] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 62d19d4..ec5022f 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 23.7.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -92,6 +92,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Jan 26 2024 Fedora Release Engineering - 23.7.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Mon Jan 22 2024 Fedora Release Engineering - 23.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 2ddfb8eb10a91f4d2c438a8fa60e7dcdb9009741 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sat, 17 Feb 2024 19:19:36 -0700 Subject: [PATCH 17/37] Update to 23.9.1 --- .gitignore | 1 + python-gevent.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 45b001a..61df46e 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ gevent-0.13.0.tar.gz /gevent-21.12.0.tar.gz /gevent-22.10.2.tar.gz /gevent-23.7.0.tar.gz +/gevent-23.9.1.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index ec5022f..c0a6fe0 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,8 +3,8 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 23.7.0 -Release: 4%{?dist} +Version: 23.9.1 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -92,6 +92,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Sat Feb 17 2024 Orion Poplawski - 23.9.1-1 +- Update to 23.9.1 CVE-2023-41419 (bz#2242244) + * Fri Jan 26 2024 Fedora Release Engineering - 23.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git a/sources b/sources index 4b8f562..18ce008 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-23.7.0.tar.gz) = d452e58e96ba5b7f995b9a762fe378cef24a728a5291b3df069ff50815b336c6ad7bdbe0341c6c9c821dea6fc1a6601aec9d8c9c18aea8045bbcddb2f9240198 +SHA512 (gevent-23.9.1.tar.gz) = c0600a5f9e50040009c3467ad802dda8a48422dca4e781acc9ca3428446399932da2f07d7345936ef634783611cf664d219f614980ed6b936f4a510e56ea753c From 2061eebcdb19d964381a1c6ba98a5da5d07786e6 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 7 Jun 2024 23:24:00 +0200 Subject: [PATCH 18/37] Rebuilt for Python 3.13 --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index c0a6fe0..42d8173 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 23.9.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -92,6 +92,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Jun 07 2024 Python Maint - 23.9.1-2 +- Rebuilt for Python 3.13 + * Sat Feb 17 2024 Orion Poplawski - 23.9.1-1 - Update to 23.9.1 CVE-2023-41419 (bz#2242244) From fe180eb9e7e6240ff4c6a27907e72cd42ccc4973 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Thu, 13 Jun 2024 22:12:29 -0600 Subject: [PATCH 19/37] Update to 24.2.1 Update to 24.2.1 --- .gitignore | 1 + python-gevent.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 61df46e..a40c87d 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ gevent-0.13.0.tar.gz /gevent-22.10.2.tar.gz /gevent-23.7.0.tar.gz /gevent-23.9.1.tar.gz +/gevent-24.2.1.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 42d8173..be4b4a1 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,8 +3,8 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 23.9.1 -Release: 2%{?dist} +Version: 24.2.1 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -92,6 +92,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Jun 14 2024 Orion Poplawski - 24.2.1-1 +- Update to 24.2.1 + * Fri Jun 07 2024 Python Maint - 23.9.1-2 - Rebuilt for Python 3.13 diff --git a/sources b/sources index 18ce008..fcd8a9b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-23.9.1.tar.gz) = c0600a5f9e50040009c3467ad802dda8a48422dca4e781acc9ca3428446399932da2f07d7345936ef634783611cf664d219f614980ed6b936f4a510e56ea753c +SHA512 (gevent-24.2.1.tar.gz) = 4fcef5295fa332c560dc96a0c1643bb03ea25f10a7f386f7779bc1a79d209b0017b18c56f28ff3f9ae6b2b8836d572cd5790ea021e10e016d2148be741621bed From b23d186d0f5d5615deb07447d36ea81c719e5890 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 11:53:54 +0000 Subject: [PATCH 20/37] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index be4b4a1..a03d8f2 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 24.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -92,6 +92,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 24.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri Jun 14 2024 Orion Poplawski - 24.2.1-1 - Update to 24.2.1 From 8e0113b937544135870879be0469f59976bad2cd Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 23 Sep 2024 11:55:30 -0400 Subject: [PATCH 21/37] Fix build with Cython 3.0.10 https://github.com/gevent/gevent/issues/2031 --- cython3010.patch | 12 ++++++++++++ python-gevent.spec | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 cython3010.patch diff --git a/cython3010.patch b/cython3010.patch new file mode 100644 index 0000000..87fdcd1 --- /dev/null +++ b/cython3010.patch @@ -0,0 +1,12 @@ +https://github.com/gevent/gevent/issues/2031 + +--- a/src/gevent/_gevent_cqueue.pxd ++++ b/src/gevent/_gevent_cqueue.pxd +@@ -75,7 +75,6 @@ cdef class ItemWaiter(Waiter): + cdef readonly Queue queue + + +-@cython.final + cdef class UnboundQueue(Queue): + pass + diff --git a/python-gevent.spec b/python-gevent.spec index a03d8f2..7a07e83 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -10,6 +10,9 @@ Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ Source0: %{pypi_source %{modname} %{version} tar.gz} +# avoid incompatible types error with Cython 3.0.10 +# https://github.com/gevent/gevent/issues/2031 +Patch0: cython3010.patch BuildRequires: gcc BuildRequires: c-ares-devel From e7ce3959d9c4fe8ecf044494dbc85bb7b2bab0e7 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 23 Sep 2024 20:18:03 -0600 Subject: [PATCH 22/37] Bump release --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 7a07e83..a6fafb5 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 24.2.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -95,6 +95,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Tue Sep 24 2024 Orion Poplawski - 24.2.1-3 +- Add patch to fix build with Cython 3.0.10 (FTBFS rhbz#2275488) + * Fri Jul 19 2024 Fedora Release Engineering - 24.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 25d0d2fcf6f8453a2d01354b75f21aeb8b8021af Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 9 Oct 2024 20:46:23 -0600 Subject: [PATCH 23/37] Update to 24.10.1 --- .gitignore | 1 + python-gevent.spec | 21 +++++++++++++++------ sources | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index a40c87d..3c38af5 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ gevent-0.13.0.tar.gz /gevent-23.7.0.tar.gz /gevent-23.9.1.tar.gz /gevent-24.2.1.tar.gz +/gevent-24.10.1.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index a6fafb5..977686b 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,13 +3,15 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 24.2.1 -Release: 3%{?dist} +Version: 24.10.1 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ -Source0: %{pypi_source %{modname} %{version} tar.gz} +Source0: https://github.com/gevent/gevent/archive/%{version}/%{modname}-%{version}.tar.gz +# No pypi source for 24.10.1 yet - https://github.com/gevent/gevent/issues/2063 +#Source0: %{pypi_source %{modname} %{version} tar.gz} # avoid incompatible types error with Cython 3.0.10 # https://github.com/gevent/gevent/issues/2031 Patch0: cython3010.patch @@ -68,9 +70,12 @@ rm -r deps # go into debuginfo as normal. sed -i -e 's/include_package_data=True/include_package_data=False/' setup.py -# Force re-cythonizing the sources -rm $(grep -rl '/\* Generated by Cython') -rm src/gevent/_generated_include/* +# Force re-cythonizing the sources - missing with github tarballs +rm -f $(grep -rl '/\* Generated by Cython') +rm -f src/gevent/_generated_include/* + +# Test requires network, fails in mock/koji +mv src/gevent/tests/test__resolver_dnspython.py{,.needsnetwork} %build export GEVENTSETUP_EMBED=0 @@ -86,6 +91,7 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %check export PYTHONPATH=%{buildroot}%{python3_sitearch} +# test_resolution is failing - https://github.com/gevent/gevent/issues/2064 %__python3 -m gevent.tests || : cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subprocess*.py @@ -95,6 +101,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Thu Oct 10 2024 Orion Poplawski - 24.10.1-1 +- Update to 24.10.1 + * Tue Sep 24 2024 Orion Poplawski - 24.2.1-3 - Add patch to fix build with Cython 3.0.10 (FTBFS rhbz#2275488) diff --git a/sources b/sources index fcd8a9b..6899ee4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-24.2.1.tar.gz) = 4fcef5295fa332c560dc96a0c1643bb03ea25f10a7f386f7779bc1a79d209b0017b18c56f28ff3f9ae6b2b8836d572cd5790ea021e10e016d2148be741621bed +SHA512 (gevent-24.10.1.tar.gz) = 46f72091b6e8a8b86fd83031401b88878f72e549f81eff429f6f95f7dc8061d8f2b1ea82c73c402523babf4e5c4d9f8881ef36d83ab6278322ce03e7f59914f3 From b9b30dac338e776d64b3fee1ec3c0901f1a2cf83 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Fri, 11 Oct 2024 07:43:54 -0600 Subject: [PATCH 24/37] Update to 24.10.2 --- .gitignore | 1 + cython3010.patch | 12 ------------ python-gevent.spec | 12 +++++------- sources | 2 +- 4 files changed, 7 insertions(+), 20 deletions(-) delete mode 100644 cython3010.patch diff --git a/.gitignore b/.gitignore index 3c38af5..892cfd5 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ gevent-0.13.0.tar.gz /gevent-23.9.1.tar.gz /gevent-24.2.1.tar.gz /gevent-24.10.1.tar.gz +/gevent-24.10.2.tar.gz diff --git a/cython3010.patch b/cython3010.patch deleted file mode 100644 index 87fdcd1..0000000 --- a/cython3010.patch +++ /dev/null @@ -1,12 +0,0 @@ -https://github.com/gevent/gevent/issues/2031 - ---- a/src/gevent/_gevent_cqueue.pxd -+++ b/src/gevent/_gevent_cqueue.pxd -@@ -75,7 +75,6 @@ cdef class ItemWaiter(Waiter): - cdef readonly Queue queue - - --@cython.final - cdef class UnboundQueue(Queue): - pass - diff --git a/python-gevent.spec b/python-gevent.spec index 977686b..273bedc 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,18 +3,13 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 24.10.1 +Version: 24.10.2 Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ -Source0: https://github.com/gevent/gevent/archive/%{version}/%{modname}-%{version}.tar.gz -# No pypi source for 24.10.1 yet - https://github.com/gevent/gevent/issues/2063 -#Source0: %{pypi_source %{modname} %{version} tar.gz} -# avoid incompatible types error with Cython 3.0.10 -# https://github.com/gevent/gevent/issues/2031 -Patch0: cython3010.patch +Source0: %{pypi_source %{modname} %{version} tar.gz} BuildRequires: gcc BuildRequires: c-ares-devel @@ -101,6 +96,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Oct 11 2024 Orion Poplawski - 24.10.2-1 +- Update to 24.10.2 + * Thu Oct 10 2024 Orion Poplawski - 24.10.1-1 - Update to 24.10.1 diff --git a/sources b/sources index 6899ee4..a5530d7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-24.10.1.tar.gz) = 46f72091b6e8a8b86fd83031401b88878f72e549f81eff429f6f95f7dc8061d8f2b1ea82c73c402523babf4e5c4d9f8881ef36d83ab6278322ce03e7f59914f3 +SHA512 (gevent-24.10.2.tar.gz) = b1dc525d25434301d5b774745fc9870cc3d5b24cb8cddae425291635a1a78b1d8db957e9faa3edce020a3727f5a833efb5a52cfdd2312e6e30129744474933da From a10bffa1dbf52049df6f0a8c8ef8b615acc06f65 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 11 Nov 2024 08:50:58 -0700 Subject: [PATCH 25/37] Update to 24.11.1 --- .gitignore | 1 + python-gevent.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 892cfd5..d85fd18 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ gevent-0.13.0.tar.gz /gevent-24.2.1.tar.gz /gevent-24.10.1.tar.gz /gevent-24.10.2.tar.gz +/gevent-24.11.1.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 273bedc..847f19b 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,7 +3,7 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 24.10.2 +Version: 24.11.1 Release: 1%{?dist} Summary: A coroutine-based Python networking library @@ -96,6 +96,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Mon Nov 11 2024 Orion Poplawski - 24.11.1-1 +- Update to 24.11.1 + * Fri Oct 11 2024 Orion Poplawski - 24.10.2-1 - Update to 24.10.2 diff --git a/sources b/sources index a5530d7..35091ad 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-24.10.2.tar.gz) = b1dc525d25434301d5b774745fc9870cc3d5b24cb8cddae425291635a1a78b1d8db957e9faa3edce020a3727f5a833efb5a52cfdd2312e6e30129744474933da +SHA512 (gevent-24.11.1.tar.gz) = 7507bd754e6c862cd5e7821ded8dd05422d09cc26d0b7e6d889cb91f27661fff09a1949bf6d21c35aee63fa9f520b840f236adb6b4c19aa7da46971eb51a1b22 From 06c90b3a9025fcdf1deb69282185e8b9fa2e5db4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 14:39:43 +0000 Subject: [PATCH 26/37] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 847f19b..7945a81 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 24.11.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -96,6 +96,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 24.11.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Mon Nov 11 2024 Orion Poplawski - 24.11.1-1 - Update to 24.11.1 From a5bd047a9928386c8909414ce92b3436ec579aef Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 4 Jun 2025 21:30:40 +0200 Subject: [PATCH 27/37] Rebuilt for Python 3.14 --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 7945a81..5fb3c7a 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 24.11.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -96,6 +96,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Wed Jun 04 2025 Python Maint - 24.11.1-3 +- Rebuilt for Python 3.14 + * Sat Jan 18 2025 Fedora Release Engineering - 24.11.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From d1d2833eb99ccb907b9511ae1c645bb8632fc118 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 08:05:43 +0000 Subject: [PATCH 28/37] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 5fb3c7a..3629d44 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 24.11.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -96,6 +96,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 24.11.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Wed Jun 04 2025 Python Maint - 24.11.1-3 - Rebuilt for Python 3.14 From 68f41e891749597dfaead0c792a9b0aeb3615d16 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 13:48:56 +0200 Subject: [PATCH 29/37] Rebuilt for Python 3.14.0rc2 bytecode --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 3629d44..d4be78d 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 24.11.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -96,6 +96,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* Fri Aug 15 2025 Python Maint - 24.11.1-5 +- Rebuilt for Python 3.14.0rc2 bytecode + * Fri Jul 25 2025 Fedora Release Engineering - 24.11.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From b4a904db8d1c38d76e53ffa3bf9cd70e559f0047 Mon Sep 17 00:00:00 2001 From: Antonio Trande Date: Sat, 23 Aug 2025 13:05:42 +0200 Subject: [PATCH 30/37] Use pyproject macros --- python-gevent.spec | 314 +++------------------------------------------ 1 file changed, 15 insertions(+), 299 deletions(-) diff --git a/python-gevent.spec b/python-gevent.spec index d4be78d..3a74b08 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 24.11.1 -Release: 5%{?dist} +Release: %autorelease Summary: A coroutine-based Python networking library License: MIT @@ -32,14 +32,8 @@ Features include: %package -n python3-%{modname} Summary: %{summary} BuildRequires: python3-devel -BuildRequires: python3-Cython BuildRequires: python3-greenlet-devel >= 2.0.0 -BuildRequires: python3-setuptools -# For tests -BuildRequires: python3-dns -BuildRequires: python3-psutil BuildRequires: python3-zope-event -BuildRequires: python3-zope-interface %description -n python3-%{modname} gevent is a coroutine-based Python networking library that uses greenlet to @@ -54,16 +48,16 @@ Features include: * DNS requests done through libevent-dns * monkey patching utility to get pure Python modules to cooperate -Python 3 version. - %prep -%autosetup -p1 -n %{modname}-%{version} +%autosetup -n %{modname}-%{version} # Remove bundled libraries rm -r deps # Upstream intentionally includes C extension sources in the built package, # because... reasons (PyPy I think?) however we do not want that. Sources will # go into debuginfo as normal. sed -i -e 's/include_package_data=True/include_package_data=False/' setup.py +# No linters +sed -i -e '/coverage/d' -e '/objgraph/d' setup.py # Force re-cythonizing the sources - missing with github tarballs rm -f $(grep -rl '/\* Generated by Cython') @@ -72,308 +66,30 @@ rm -f src/gevent/_generated_include/* # Test requires network, fails in mock/koji mv src/gevent/tests/test__resolver_dnspython.py{,.needsnetwork} +%generate_buildrequires +%pyproject_buildrequires -t + %build export GEVENTSETUP_EMBED=0 -# Build Python 3 first to use Python 3 Cython -%py3_build +%pyproject_wheel %install export GEVENTSETUP_EMBED=0 -%py3_install +%pyproject_install find %{buildroot} -name '.buildinfo' -delete # Correct the permissions. find %{buildroot} -name '*.so' -exec chmod 755 {} ';' +%pyproject_save_files -l %{modname} %check +%pyproject_check_import -t export PYTHONPATH=%{buildroot}%{python3_sitearch} # test_resolution is failing - https://github.com/gevent/gevent/issues/2064 -%__python3 -m gevent.tests || : -cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subprocess*.py +%{py3_test_envvars} %{python3} -m gevent.tests --verbose || : +cd src/gevent/tests && GEVENT_FILE=thread %{python3} -mgevent.tests test__*subprocess*.py -%files -n python3-%{modname} -%license LICENSE +%files -n python3-%{modname} -f %{pyproject_files} %doc README.rst -%{python3_sitearch}/%{modname}* %changelog -* Fri Aug 15 2025 Python Maint - 24.11.1-5 -- Rebuilt for Python 3.14.0rc2 bytecode - -* Fri Jul 25 2025 Fedora Release Engineering - 24.11.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Wed Jun 04 2025 Python Maint - 24.11.1-3 -- Rebuilt for Python 3.14 - -* Sat Jan 18 2025 Fedora Release Engineering - 24.11.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Mon Nov 11 2024 Orion Poplawski - 24.11.1-1 -- Update to 24.11.1 - -* Fri Oct 11 2024 Orion Poplawski - 24.10.2-1 -- Update to 24.10.2 - -* Thu Oct 10 2024 Orion Poplawski - 24.10.1-1 -- Update to 24.10.1 - -* Tue Sep 24 2024 Orion Poplawski - 24.2.1-3 -- Add patch to fix build with Cython 3.0.10 (FTBFS rhbz#2275488) - -* Fri Jul 19 2024 Fedora Release Engineering - 24.2.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Fri Jun 14 2024 Orion Poplawski - 24.2.1-1 -- Update to 24.2.1 - -* Fri Jun 07 2024 Python Maint - 23.9.1-2 -- Rebuilt for Python 3.13 - -* Sat Feb 17 2024 Orion Poplawski - 23.9.1-1 -- Update to 23.9.1 CVE-2023-41419 (bz#2242244) - -* Fri Jan 26 2024 Fedora Release Engineering - 23.7.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Mon Jan 22 2024 Fedora Release Engineering - 23.7.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jul 21 2023 Fedora Release Engineering - 23.7.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Mon Jul 17 2023 Orion Poplawski - 23.7.0-1 -- Update to 23.7.0 - -* Tue Jun 27 2023 Orion Poplawski - 22.10.2-3 -- Add patch to remove match_hostname import - -* Thu Jun 15 2023 Python Maint - 22.10.2-2 -- Rebuilt for Python 3.12 - -* Thu Jun 15 2023 Petr Viktorin - 22.10.2-1 -- Update to 22.10.2 - -* Fri Jan 20 2023 Fedora Release Engineering - 21.12.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Fri Jul 22 2022 Fedora Release Engineering - 21.12.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Tue Jun 14 2022 Python Maint - 21.12.0-3 -- Rebuilt for Python 3.11 - -* Wed Jun 01 2022 Miro Hrončok - 21.12.0-2 -- Support Python 3.11 - -* Sun Mar 06 2022 Orion Poplawski - 21.12.0-1 -- Update to 21.12.0 - -* Fri Jan 21 2022 Fedora Release Engineering - 21.1.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jul 23 2021 Fedora Release Engineering - 21.1.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint - 21.1.2-2 -- Rebuilt for Python 3.10 - -* Mon Apr 26 2021 Dan Callaghan - 21.1.2-1 -- new upstream bug fix release 21.1.2 - -* Wed Jan 27 2021 Fedora Release Engineering - 20.9.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Mon Nov 16 2020 Fabien Boucher - 20.9.0-1 -- new upstream release 20.9.0 - -* Mon Oct 05 2020 Orion Poplawski - 20.6.1-3 -- BR python3-setuptools - -* Wed Jul 29 2020 Fedora Release Engineering - 20.6.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Sat Jun 13 2020 Dan Callaghan - 20.6.1-1 -- new upstream release 20.6.1 - -* Sat Jun 06 2020 Orion Poplawski - 20.6.0-1 -- Update to 20.6.0 (bz#1840109) -- Resolve Python 3.9 issue (bz#1838696) -- Only remove Cython generated .c files -- Add BR on libuv-devel -- Use updated build variables -- Run tests, but do not fail on them for now - -* Sun May 24 2020 Miro Hrončok - 20.5.0-2 -- Rebuilt for Python 3.9 - -* Sun May 17 2020 Dan Callaghan - 20.5.0-1 -- new upstream release 20.5.0: - https://github.com/gevent/gevent/blob/20.5.0/CHANGES.rst - -* Thu Jan 30 2020 Fedora Release Engineering - 1.5-0.2.a3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Wed Jan 08 2020 Robert-André Mauchin - 1.5-0.1.a3 -- Update to 1.5a3 (#1705661) - -* Thu Oct 03 2019 Miro Hrončok - 1.3.6-7 -- Rebuilt for Python 3.8.0rc1 (#1748018) - -* Sat Aug 17 2019 Miro Hrončok - 1.3.6-6 -- Rebuilt for Python 3.8 - -* Mon Aug 12 2019 Miro Hrončok - 1.3.6-5 -- Subpackage python2-gevent has been removed - See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal - -* Fri Jul 26 2019 Fedora Release Engineering - 1.3.6-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Tue Jun 11 2019 Victor Stinner - 1.3.6-3 -- Add Python 3.8 support, backport upstream change to use CodeType.replace() if - available (rhbz#1716342) - -* Sat Feb 02 2019 Fedora Release Engineering - 1.3.6-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Mon Sep 17 2018 Dan Callaghan - 1.3.6-1 -- Upstream bug fix release 1.3.6: http://www.gevent.org/changelog.html - -* Sat Jul 14 2018 Fedora Release Engineering - 1.3.4-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Mon Jul 02 2018 Miro Hrončok - 1.3.4-2 -- Rebuilt for Python 3.7 - -* Tue Jun 26 2018 Dan Callaghan - 1.3.4-1 -- Update to 1.3.4 (RHBZ#1593266) - -* Mon Jun 18 2018 Miro Hrončok - 1.3.3-2 -- Rebuilt for Python 3.7 - -* Wed Jun 13 2018 Dan Callaghan - 1.3.3-1 -- Update to 1.3.3 (RHBZ#1589102) - -* Mon Jun 04 2018 Dan Callaghan - 1.3.2-1 -- Update to 1.3.2 (RHBZ#1583647) - -* Tue May 29 2018 Dan Callaghan - 1.3.1-1 -- Update to 1.3.1 (RHBZ#1552352) - http://www.gevent.org/whatsnew_1_3.html - -* Fri Feb 09 2018 Fedora Release Engineering - 1.2.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Aug 09 2017 Dan Callaghan - 1.2.2-1 -- Update to 1.2.2 (RHBZ#1389634) - -* Thu Aug 03 2017 Fedora Release Engineering - 1.1.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 1.1.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 1.1.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Mon Dec 19 2016 Miro Hrončok - 1.1.2-2 -- Rebuild for Python 3.6 - -* Sun Jul 24 2016 Igor Gnatenko - 1.1.2-1 -- Update to 1.1.2 (RHBZ #1359455) - -* Tue Jul 19 2016 Fedora Release Engineering - 1.1.1-2 -- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages - -* Tue Apr 05 2016 Igor Gnatenko - 1.1.1-1 -- Update to 1.1.1 (RHBZ #1323855) - -* Tue Mar 15 2016 Dan Callaghan - 1.1.0-1 -- Update to 1.1.0 final release - -* Wed Feb 17 2016 Igor Gnatenko - 1.1-0.8.rc4 -- Update to 1.1rc4 (RHBZ #1309141) - -* Thu Feb 04 2016 Fedora Release Engineering - 1.1-0.7.rc3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jan 20 2016 Dan Callaghan - 1.1-0.6.rc3 -- Update to 1.1rc3 - -* Tue Nov 10 2015 Fedora Release Engineering - 1.1-0.5.b6 -- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 - -* Sat Oct 24 2015 Igor Gnatenko - 1.1-0.4.b6 -- Fix description in spec - -* Sun Oct 18 2015 Igor Gnatenko - 1.1-0.3.b6 -- Update to 1.1b6 (RHBZ #1272717) - -* Tue Oct 06 2015 Orion Poplawski - 1.1-0.2.b5 -- Drop use of unneeded %%{py3dir} - -* Mon Oct 05 2015 Igor Gnatenko - 1.1-0.1.b5 -- Update to 1.1b5 (RHBZ #1244452) -- Add python3 support -- Follow modern RPM packaging guidelines - -* Fri Jun 26 2015 Dan Callaghan - 1.0.2-2 -- removed version requirement for greenlet - -* Mon Jun 22 2015 Dan Callaghan - 1.0.2-1 -- bug fix release 1.0.2: - https://github.com/gevent/gevent/blob/v1.0.2/changelog.rst#release-102-may-23-2015 - -* Thu Jun 18 2015 Fedora Release Engineering - 1.0.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sun Aug 17 2014 Fedora Release Engineering - 1.0.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Fri Aug 15 2014 Orion Poplawski - 1.0.1-1 -- Update to 1.0.1 - -* Sat Jun 07 2014 Fedora Release Engineering - 1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Wed Jan 22 2014 Orion Poplawski - 1.0-1 -- Update to 1.0 - -* Sun Aug 04 2013 Fedora Release Engineering - 0.13.8-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Thu Feb 14 2013 Fedora Release Engineering - 0.13.8-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Thu Dec 27 2012 Silas Sewell - 0.13.8-1 -- Update to 0.13.8 - -* Sat Jul 21 2012 Fedora Release Engineering - 0.13.6-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Sat Jan 14 2012 Fedora Release Engineering - 0.13.6-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Sun Jul 24 2011 Silas Sewell - 0.13.6-1 -- Update to 0.13.6 - -* Wed Feb 16 2011 Silas Sewell - 0.13.3-1 -- Update to 0.13.3 - -* Tue Feb 08 2011 Fedora Release Engineering - 0.13.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Sat Oct 09 2010 Silas Sewell - 0.13.1-1 -- Update to 0.13.1 - -* Tue Jul 27 2010 David Malcolm - 0.13.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild - -* Wed Jul 14 2010 Silas Sewell - 0.13.0-1 -- Update to 0.13.0 - -* Fri Apr 23 2010 Silas Sewell - 0.12.2-2 -- Remove setuptools requirement - -* Wed Mar 17 2010 Silas Sewell - 0.12.2-1 -- Initial build +%autochangelog From cdda167e27825e7c9e5e2bab9f2805880bc27415 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 13:22:51 +0200 Subject: [PATCH 31/37] Rebuilt for Python 3.14.0rc3 bytecode From 29687cb716532de83c4d058d6d41acacc4a30aa6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 17 Jan 2026 07:37:50 +0000 Subject: [PATCH 32/37] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild From 8bacc1b4ca7a89b49f21eb57a3f0b7cf875d0219 Mon Sep 17 00:00:00 2001 From: Antonio Trande Date: Sat, 24 Jan 2026 12:45:06 +0100 Subject: [PATCH 33/37] Release 25.9.1 --- .gitignore | 1 + python-gevent.spec | 4 ++-- sources | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d85fd18..9593234 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ gevent-0.13.0.tar.gz /gevent-24.10.1.tar.gz /gevent-24.10.2.tar.gz /gevent-24.11.1.tar.gz +/gevent-25.9.1.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 3a74b08..8ee2779 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,7 +3,7 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 24.11.1 +Version: 25.9.1 Release: %autorelease Summary: A coroutine-based Python networking library @@ -32,7 +32,7 @@ Features include: %package -n python3-%{modname} Summary: %{summary} BuildRequires: python3-devel -BuildRequires: python3-greenlet-devel >= 2.0.0 +BuildRequires: python3-greenlet-devel >= 3.2.2 BuildRequires: python3-zope-event %description -n python3-%{modname} diff --git a/sources b/sources index 35091ad..0df3544 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-24.11.1.tar.gz) = 7507bd754e6c862cd5e7821ded8dd05422d09cc26d0b7e6d889cb91f27661fff09a1949bf6d21c35aee63fa9f520b840f236adb6b4c19aa7da46971eb51a1b22 +SHA512 (gevent-25.9.1.tar.gz) = 8c7f6030020fd6d762ebb1afccb7fb8306e2cf1a45dabf8a471709264acc35003ea2be44f4e0733a75c703256776b4f22a96be50e926c9dc053f453f0b1f3522 From b46368e094351ad50999a7aa413cacaada39d1e4 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Thu, 4 Jun 2026 00:31:42 +0200 Subject: [PATCH 34/37] Rebuilt for Python 3.15 From ca4069738b053a875c6869e1753e22e7472a1df9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jul 2026 19:34:26 +0000 Subject: [PATCH 35/37] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild From 9776b812b1581a88c84a6d7c6b5da107ec0d54cd Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 22 Jul 2026 16:31:02 +0200 Subject: [PATCH 36/37] Rebuilt for Python 3.15.0b4 ABI change From fdec20e3eca6d9df2bad63c1b78f9bda0eeadec3 Mon Sep 17 00:00:00 2001 From: Antonio Trande Date: Sun, 26 Jul 2026 18:56:54 +0200 Subject: [PATCH 37/37] Release 26.7.0 --- .gitignore | 1 + python-gevent.spec | 7 +------ sources | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 9593234..df8d51a 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ gevent-0.13.0.tar.gz /gevent-24.10.2.tar.gz /gevent-24.11.1.tar.gz /gevent-25.9.1.tar.gz +/gevent-26.7.0.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 8ee2779..f6252ac 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,10 +3,9 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 25.9.1 +Version: 26.7.0 Release: %autorelease Summary: A coroutine-based Python networking library - License: MIT URL: http://www.gevent.org/ Source0: %{pypi_source %{modname} %{version} tar.gz} @@ -15,11 +14,9 @@ BuildRequires: gcc BuildRequires: c-ares-devel BuildRequires: libev-devel BuildRequires: libuv-devel - %description gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent event loop. - Features include: * convenient API around greenlets @@ -34,11 +31,9 @@ Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-greenlet-devel >= 3.2.2 BuildRequires: python3-zope-event - %description -n python3-%{modname} gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent event loop. - Features include: * convenient API around greenlets diff --git a/sources b/sources index 0df3544..8506c38 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-25.9.1.tar.gz) = 8c7f6030020fd6d762ebb1afccb7fb8306e2cf1a45dabf8a471709264acc35003ea2be44f4e0733a75c703256776b4f22a96be50e926c9dc053f453f0b1f3522 +SHA512 (gevent-26.7.0.tar.gz) = 70e7a21874c77990884e46a5e849ee4e065c4b918544bf8a11f665412d101a94c81bae713c7202ebbe81fd5439e57248b23f098aec7b16b6f05d99ce1a6ec4a8