From 1e6710e4f63ae04801c4c92dd631130d9e70bf8b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 10:22:33 +0000 Subject: [PATCH 001/103] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- import.log | 2 -- 3 files changed, 23 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 84c37ac..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: python-gevent -# $Id$ -NAME := python-gevent -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/import.log b/import.log deleted file mode 100644 index 683574a..0000000 --- a/import.log +++ /dev/null @@ -1,2 +0,0 @@ -python-gevent-0_12_2-2_fc13:HEAD:python-gevent-0.12.2-2.fc13.src.rpm:1273091621 -python-gevent-0_13_0-1_fc14:HEAD:python-gevent-0.13.0-1.fc14.src.rpm:1279158324 From 6ed40632ec157298e7ff9c0e68d2829f82993186 Mon Sep 17 00:00:00 2001 From: Silas Sewell Date: Sat, 9 Oct 2010 10:32:23 -0400 Subject: [PATCH 002/103] * Sat Oct 09 2010 Silas Sewell - 0.13.1-1 - Update to 0.13.1 --- .gitignore | 1 + python-gevent.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 4f02de9..eaf7190 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ gevent-0.13.0.tar.gz +/gevent-0.13.1.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index aba0a22..783ccb3 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -7,8 +7,8 @@ %global upstream_name gevent Name: python-%{upstream_name} -Version: 0.13.0 -Release: 2%{?dist} +Version: 0.13.1 +Release: 1%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -56,6 +56,9 @@ rm -rf %{buildroot} %{python_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 diff --git a/sources b/sources index 4749e3a..007dec2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8f687002c6fcbdf8b323319f451ba4af gevent-0.13.0.tar.gz +5c1b03d9ce39fee4cfe5ea8befb1d4c4 gevent-0.13.1.tar.gz From bfa888e25196a5ef9694d3d809b1c128258f3bdc Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Tue, 8 Feb 2011 22:05:13 -0600 Subject: [PATCH 003/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 783ccb3..5f725ee 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -8,7 +8,7 @@ Name: python-%{upstream_name} Version: 0.13.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -56,6 +56,9 @@ rm -rf %{buildroot} %{python_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 From 3e59188f1f840aa490fa6cc2b5f4933d8b9bdbc4 Mon Sep 17 00:00:00 2001 From: Silas Sewell Date: Thu, 17 Feb 2011 01:29:02 -0500 Subject: [PATCH 004/103] Update to 0.13.3 --- python-gevent.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-gevent.spec b/python-gevent.spec index 5f725ee..3c562de 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -7,8 +7,8 @@ %global upstream_name gevent Name: python-%{upstream_name} -Version: 0.13.1 -Release: 2%{?dist} +Version: 0.13.3 +Release: 1%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -56,6 +56,9 @@ rm -rf %{buildroot} %{python_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 From b29b1c33bca174038c151eb2513847518aac72e2 Mon Sep 17 00:00:00 2001 From: Silas Sewell Date: Thu, 17 Feb 2011 01:29:47 -0500 Subject: [PATCH 005/103] Upload sources --- .gitignore | 1 + sources | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index eaf7190..40ee694 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ gevent-0.13.0.tar.gz /gevent-0.13.1.tar.gz +/gevent-0.13.3.tar.gz diff --git a/sources b/sources index 007dec2..25043d2 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 5c1b03d9ce39fee4cfe5ea8befb1d4c4 gevent-0.13.1.tar.gz +af1b6438ac62e10ab521f51366e3f0e4 gevent-0.13.3.tar.gz From 561e260886d51614076e92042f9dd055d8b0e9d8 Mon Sep 17 00:00:00 2001 From: Silas Sewell Date: Sun, 24 Jul 2011 20:23:37 -0400 Subject: [PATCH 006/103] Update to 0.13.6 --- .gitignore | 1 + python-gevent.spec | 5 ++++- sources | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 40ee694..f80d3e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ gevent-0.13.0.tar.gz /gevent-0.13.1.tar.gz /gevent-0.13.3.tar.gz +/gevent-0.13.6.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 3c562de..8a4be65 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -7,7 +7,7 @@ %global upstream_name gevent Name: python-%{upstream_name} -Version: 0.13.3 +Version: 0.13.6 Release: 1%{?dist} Summary: A coroutine-based Python networking library @@ -56,6 +56,9 @@ rm -rf %{buildroot} %{python_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 diff --git a/sources b/sources index 25043d2..c68c9db 100644 --- a/sources +++ b/sources @@ -1,2 +1,3 @@ 5c1b03d9ce39fee4cfe5ea8befb1d4c4 gevent-0.13.1.tar.gz af1b6438ac62e10ab521f51366e3f0e4 gevent-0.13.3.tar.gz +7c836ce2315d44ba0af6134efbcd38c9 gevent-0.13.6.tar.gz From 73810613e70ee64401b6f2d7daa0237d82722570 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 13 Jan 2012 19:45:40 -0600 Subject: [PATCH 007/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 8a4be65..eba5ef5 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -8,7 +8,7 @@ Name: python-%{upstream_name} Version: 0.13.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -56,6 +56,9 @@ rm -rf %{buildroot} %{python_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 From 502fb3e3ddd3f5a9eb3bc7d790f9aed3e83b6c30 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 21 Jul 2012 01:26:57 -0500 Subject: [PATCH 008/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index eba5ef5..bf869df 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -8,7 +8,7 @@ Name: python-%{upstream_name} Version: 0.13.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -56,6 +56,9 @@ rm -rf %{buildroot} %{python_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 From 5c921e3397720179aec5d20afafb7c5c5affe59d Mon Sep 17 00:00:00 2001 From: Silas Sewell Date: Thu, 27 Dec 2012 12:36:37 -0500 Subject: [PATCH 009/103] Update to 0.13.8 --- .gitignore | 1 + python-gevent.spec | 7 +++++-- sources | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f80d3e1..1549526 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ gevent-0.13.0.tar.gz /gevent-0.13.1.tar.gz /gevent-0.13.3.tar.gz /gevent-0.13.6.tar.gz +/gevent-0.13.8.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index bf869df..95176b0 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -7,8 +7,8 @@ %global upstream_name gevent Name: python-%{upstream_name} -Version: 0.13.6 -Release: 3%{?dist} +Version: 0.13.8 +Release: 1%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -56,6 +56,9 @@ rm -rf %{buildroot} %{python_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 diff --git a/sources b/sources index c68c9db..2df0651 100644 --- a/sources +++ b/sources @@ -1,3 +1,4 @@ 5c1b03d9ce39fee4cfe5ea8befb1d4c4 gevent-0.13.1.tar.gz af1b6438ac62e10ab521f51366e3f0e4 gevent-0.13.3.tar.gz 7c836ce2315d44ba0af6134efbcd38c9 gevent-0.13.6.tar.gz +ca9dcaa7880762d8ebbc266b11252960 gevent-0.13.8.tar.gz From 1ef3f79b34ab379eb2eeb0c16d455ffdbb7b781d Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 14 Feb 2013 13:36:30 -0600 Subject: [PATCH 010/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 95176b0..16b5beb 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -8,7 +8,7 @@ Name: python-%{upstream_name} Version: 0.13.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -56,6 +56,9 @@ rm -rf %{buildroot} %{python_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 From f7edc62ba5529166149bd72aa80bcc9a332a9b16 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sun, 4 Aug 2013 02:50:44 -0500 Subject: [PATCH 011/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 16b5beb..452a9a2 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -8,7 +8,7 @@ Name: python-%{upstream_name} Version: 0.13.8 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -56,6 +56,9 @@ rm -rf %{buildroot} %{python_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 From 02eaf668548106ff592bb2831ecec53e9c2777a8 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 14 Oct 2013 13:54:42 -0600 Subject: [PATCH 012/103] Remove old sources --- sources | 3 --- 1 file changed, 3 deletions(-) diff --git a/sources b/sources index 2df0651..f14793d 100644 --- a/sources +++ b/sources @@ -1,4 +1 @@ -5c1b03d9ce39fee4cfe5ea8befb1d4c4 gevent-0.13.1.tar.gz -af1b6438ac62e10ab521f51366e3f0e4 gevent-0.13.3.tar.gz -7c836ce2315d44ba0af6134efbcd38c9 gevent-0.13.6.tar.gz ca9dcaa7880762d8ebbc266b11252960 gevent-0.13.8.tar.gz From 0bc9b47c062a13af880e23573a8c05334a934ba9 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 22 Jan 2014 16:36:29 -0700 Subject: [PATCH 013/103] Update to 1.0 --- .gitignore | 1 + python-gevent.spec | 16 +++++++++++----- sources | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 1549526..dbf17b3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ gevent-0.13.0.tar.gz /gevent-0.13.3.tar.gz /gevent-0.13.6.tar.gz /gevent-0.13.8.tar.gz +/gevent-1.0.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 452a9a2..8091b77 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -7,8 +7,8 @@ %global upstream_name gevent Name: python-%{upstream_name} -Version: 0.13.8 -Release: 3%{?dist} +Version: 1.0 +Release: 1%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -17,8 +17,9 @@ URL: http://www.gevent.org/ Source0: http://pypi.python.org/packages/source/g/gevent/gevent-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: python-devel -BuildRequires: libevent-devel >= 1.4.0 +BuildRequires: python2-devel +BuildRequires: c-ares-devel +BuildRequires: libev-devel Requires: python-greenlet %description @@ -36,9 +37,11 @@ Features include: %prep %setup -q -n %{upstream_name}-%{version} +# Remove bundled libraries +rm -r c-ares libev %build -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags} -I%{_includedir}/libev" %{__python} setup.py build %install rm -rf %{buildroot} @@ -56,6 +59,9 @@ rm -rf %{buildroot} %{python_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 diff --git a/sources b/sources index f14793d..bbc2096 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ca9dcaa7880762d8ebbc266b11252960 gevent-0.13.8.tar.gz +33aef51a06268f5903fea378e1388e4d gevent-1.0.tar.gz From 3eda8aded73fe5ac0bcbedab0ecee779988fdee8 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 7 Jun 2014 15:39:11 -0500 Subject: [PATCH 014/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 8091b77..4917ae4 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -8,7 +8,7 @@ Name: python-%{upstream_name} Version: 1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -59,6 +59,9 @@ rm -rf %{buildroot} %{python_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 From d437001768d5894549a71dac0ceb090490d69cd7 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Fri, 15 Aug 2014 09:54:59 -0600 Subject: [PATCH 015/103] Update to 1.0.1 --- .gitignore | 1 + python-gevent.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index dbf17b3..5116eab 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ gevent-0.13.0.tar.gz /gevent-0.13.6.tar.gz /gevent-0.13.8.tar.gz /gevent-1.0.tar.gz +/gevent-1.0.1.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 4917ae4..defda73 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -7,8 +7,8 @@ %global upstream_name gevent Name: python-%{upstream_name} -Version: 1.0 -Release: 2%{?dist} +Version: 1.0.1 +Release: 1%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -59,6 +59,9 @@ rm -rf %{buildroot} %{python_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 diff --git a/sources b/sources index bbc2096..a18e91c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -33aef51a06268f5903fea378e1388e4d gevent-1.0.tar.gz +7b952591d1a0174d6eb6ac47bd975ab6 gevent-1.0.1.tar.gz From 53f2f42221a268b7652f272286e5a0e6ab4435ba Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Fri, 15 Aug 2014 10:02:10 -0600 Subject: [PATCH 016/103] Modernize and cleanup spec file --- python-gevent.spec | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/python-gevent.spec b/python-gevent.spec index defda73..1d6d6a1 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -1,8 +1,6 @@ -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%{!?python2_sitearch: %global python_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%global _use_internal_dependency_generator 0 -%global __find_provides %{_rpmconfigdir}/find-provides | grep -v core.so -%global __find_requires %{_rpmconfigdir}/find-requires | grep -v core.so +%global __provides_exclude_from ^%{python2_sitearch}/.*\\.so$ %global upstream_name gevent @@ -15,7 +13,6 @@ Group: Development/Languages License: MIT URL: http://www.gevent.org/ Source0: http://pypi.python.org/packages/source/g/gevent/gevent-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python2-devel BuildRequires: c-ares-devel @@ -41,22 +38,17 @@ Features include: rm -r c-ares libev %build -CFLAGS="%{optflags} -I%{_includedir}/libev" %{__python} setup.py build +CFLAGS="%{optflags} -I%{_includedir}/libev" %{__python2} setup.py build %install -rm -rf %{buildroot} -%{__python} setup.py install -O1 --skip-build --root %{buildroot} +%{__python2} setup.py install -O1 --skip-build --root %{buildroot} # Fix non-standard-executable-perm error -%{__chmod} 0755 %{buildroot}%{python_sitearch}/%{upstream_name}/core.so - -%clean -rm -rf %{buildroot} +%{__chmod} 0755 %{buildroot}%{python2_sitearch}/%{upstream_name}/core.so %files -%defattr(-,root,root,-) %doc LICENSE README.rst -%{python_sitearch}/%{upstream_name} -%{python_sitearch}/%{upstream_name}-%{version}-*.egg-info +%{python2_sitearch}/%{upstream_name} +%{python2_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog * Fri Aug 15 2014 Orion Poplawski - 1.0.1-1 From 52a1da3b1a6125d95ee607b74c455c269468ae7e Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Sun, 17 Aug 2014 21:10:17 +0000 Subject: [PATCH 017/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 1d6d6a1..09f1d9d 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -6,7 +6,7 @@ Name: python-%{upstream_name} Version: 1.0.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -51,6 +51,9 @@ CFLAGS="%{optflags} -I%{_includedir}/libev" %{__python2} setup.py build %{python2_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 From 6f141cf695915a2234fa4f6865e91483bc30cdae Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 18 Nov 2014 15:53:39 -0700 Subject: [PATCH 018/103] Fix python2_sitearch definition --- python-gevent.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 09f1d9d..604df06 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -1,4 +1,4 @@ -%{!?python2_sitearch: %global python_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %global __provides_exclude_from ^%{python2_sitearch}/.*\\.so$ From 48469bd9145783a293b6751973369a9543a0f40a Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 18 Jun 2015 19:30:22 +0000 Subject: [PATCH 019/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 604df06..38828f4 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -6,7 +6,7 @@ Name: python-%{upstream_name} Version: 1.0.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -51,6 +51,9 @@ CFLAGS="%{optflags} -I%{_includedir}/libev" %{__python2} setup.py build %{python2_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 From 5290c1f55309b07b113dbbf28e2451e4f080a5a2 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Mon, 22 Jun 2015 16:50:29 +1000 Subject: [PATCH 020/103] bug fix release 1.0.2: https://github.com/gevent/gevent/blob/v1.0.2/changelog.rst#release-102-may-23-2015 --- .gitignore | 1 + python-gevent.spec | 8 ++++++-- sources | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5116eab..5b331cc 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ gevent-0.13.0.tar.gz /gevent-0.13.8.tar.gz /gevent-1.0.tar.gz /gevent-1.0.1.tar.gz +/gevent-1.0.2.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 38828f4..c52f1b7 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -5,8 +5,8 @@ %global upstream_name gevent Name: python-%{upstream_name} -Version: 1.0.1 -Release: 3%{?dist} +Version: 1.0.2 +Release: 1%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -51,6 +51,10 @@ CFLAGS="%{optflags} -I%{_includedir}/libev" %{__python2} setup.py build %{python2_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 diff --git a/sources b/sources index a18e91c..88ea819 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7b952591d1a0174d6eb6ac47bd975ab6 gevent-1.0.1.tar.gz +117f135d57ca7416203fba3720bf71c1 gevent-1.0.2.tar.gz From 74e1293642ad9d191864929074185616f7157432 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Fri, 26 Jun 2015 14:10:55 +1000 Subject: [PATCH 021/103] removed version requirement for greenlet --- ...ove-version-requirement-for-greenlet.patch | 27 +++++++++++++++++++ python-gevent.spec | 11 +++++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 0002-remove-version-requirement-for-greenlet.patch diff --git a/0002-remove-version-requirement-for-greenlet.patch b/0002-remove-version-requirement-for-greenlet.patch new file mode 100644 index 0000000..01664be --- /dev/null +++ b/0002-remove-version-requirement-for-greenlet.patch @@ -0,0 +1,27 @@ +From 8805203cabef9919b5e2173dab85bde762f1d842 Mon Sep 17 00:00:00 2001 +From: Dan Callaghan +Date: Fri, 26 Jun 2015 13:29:04 +1000 +Subject: [PATCH 2/2] remove version requirement for greenlet + +We currently have 0.4.5 in Fedora which is also fine (Python 2.5 support +is not relevant for us). +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 1e7fbfa..5793eb9 100755 +--- a/setup.py ++++ b/setup.py +@@ -307,7 +307,7 @@ def run_setup(ext_modules): + packages=['gevent'], + ext_modules=ext_modules, + cmdclass=dict(build_ext=my_build_ext, sdist=sdist), +- install_requires=['greenlet>=0.4.7'], ++ install_requires=['greenlet'], + classifiers=[ + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 2.5", +-- +1.9.3 + diff --git a/python-gevent.spec b/python-gevent.spec index c52f1b7..6fb814a 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -6,7 +6,7 @@ Name: python-%{upstream_name} Version: 1.0.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library Group: Development/Languages @@ -14,6 +14,11 @@ License: MIT URL: http://www.gevent.org/ Source0: http://pypi.python.org/packages/source/g/gevent/gevent-%{version}.tar.gz +# gevent requires greenlet >= 0.4.7 but we have 0.4.5 in Fedora. +# The version requirement is only related to Python 2.5 support +# so we are fine with any version. +Patch2: 0002-remove-version-requirement-for-greenlet.patch + BuildRequires: python2-devel BuildRequires: c-ares-devel BuildRequires: libev-devel @@ -36,6 +41,7 @@ Features include: %setup -q -n %{upstream_name}-%{version} # Remove bundled libraries rm -r c-ares libev +%patch2 -p1 %build CFLAGS="%{optflags} -I%{_includedir}/libev" %{__python2} setup.py build @@ -51,6 +57,9 @@ CFLAGS="%{optflags} -I%{_includedir}/libev" %{__python2} setup.py build %{python2_sitearch}/%{upstream_name}-%{version}-*.egg-info %changelog +* 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 From a32b043a4a80dbd339f7dee905f81fc621b3970d Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 6 Oct 2015 10:02:47 +0200 Subject: [PATCH 022/103] Update to 1.1b5; Add python3 support Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1244452 Signed-off-by: Igor Gnatenko --- .gitignore | 1 + ...ove-version-requirement-for-greenlet.patch | 27 ------ python-gevent.spec | 97 ++++++++++++------- sources | 2 +- 4 files changed, 66 insertions(+), 61 deletions(-) delete mode 100644 0002-remove-version-requirement-for-greenlet.patch diff --git a/.gitignore b/.gitignore index 5b331cc..0790420 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ gevent-0.13.0.tar.gz /gevent-1.0.tar.gz /gevent-1.0.1.tar.gz /gevent-1.0.2.tar.gz +/gevent-1.1b5.tar.gz diff --git a/0002-remove-version-requirement-for-greenlet.patch b/0002-remove-version-requirement-for-greenlet.patch deleted file mode 100644 index 01664be..0000000 --- a/0002-remove-version-requirement-for-greenlet.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 8805203cabef9919b5e2173dab85bde762f1d842 Mon Sep 17 00:00:00 2001 -From: Dan Callaghan -Date: Fri, 26 Jun 2015 13:29:04 +1000 -Subject: [PATCH 2/2] remove version requirement for greenlet - -We currently have 0.4.5 in Fedora which is also fine (Python 2.5 support -is not relevant for us). ---- - setup.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/setup.py b/setup.py -index 1e7fbfa..5793eb9 100755 ---- a/setup.py -+++ b/setup.py -@@ -307,7 +307,7 @@ def run_setup(ext_modules): - packages=['gevent'], - ext_modules=ext_modules, - cmdclass=dict(build_ext=my_build_ext, sdist=sdist), -- install_requires=['greenlet>=0.4.7'], -+ install_requires=['greenlet'], - classifiers=[ - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 2.5", --- -1.9.3 - diff --git a/python-gevent.spec b/python-gevent.spec index 6fb814a..c74bd0b 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -1,28 +1,20 @@ -%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%global __provides_exclude_from ^%{python2_sitearch}/.*\\.so$ ^%{python3_sitearch}/.*\\.so$ +%global realver 1.1b5 +%global modname gevent +%global optflags %(echo %{optflags} -I%{_includedir}/libev) -%global __provides_exclude_from ^%{python2_sitearch}/.*\\.so$ +Name: python-%{modname} +Version: 1.1 +Release: 0.1.b5%{?dist} +Summary: A coroutine-based Python networking library -%global upstream_name gevent +License: MIT +URL: http://www.gevent.org/ +#Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz +Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modname}-%{realver}.tar.gz -Name: python-%{upstream_name} -Version: 1.0.2 -Release: 2%{?dist} -Summary: A coroutine-based Python networking library - -Group: Development/Languages -License: MIT -URL: http://www.gevent.org/ -Source0: http://pypi.python.org/packages/source/g/gevent/gevent-%{version}.tar.gz - -# gevent requires greenlet >= 0.4.7 but we have 0.4.5 in Fedora. -# The version requirement is only related to Python 2.5 support -# so we are fine with any version. -Patch2: 0002-remove-version-requirement-for-greenlet.patch - -BuildRequires: python2-devel -BuildRequires: c-ares-devel -BuildRequires: libev-devel -Requires: python-greenlet +BuildRequires: c-ares-devel +BuildRequires: libev-devel %description gevent is a coroutine-based Python networking library that uses greenlet to @@ -37,26 +29,65 @@ Features include: * DNS requests done through libevent-dns * monkey patching utility to get pure Python modules to cooperate +%package -n python2-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{modname}} +BuildRequires: python2-devel +Requires: python-greenlet + +%description -n python2-%{modname} +%{description} + +%package -n python3-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: python3-devel +Requires: python3-greenlet + +%description -n python3-%{modname} +%{description} + %prep -%setup -q -n %{upstream_name}-%{version} +%autosetup -n %{modname}-%{realver} # Remove bundled libraries -rm -r c-ares libev -%patch2 -p1 +rm -rf c-ares libev + +rm -rf %{py3dir} +cp -a . %{py3dir} %build -CFLAGS="%{optflags} -I%{_includedir}/libev" %{__python2} setup.py build +%py2_build +pushd %{py3dir} + %py3_build +popd %install -%{__python2} setup.py install -O1 --skip-build --root %{buildroot} -# Fix non-standard-executable-perm error -%{__chmod} 0755 %{buildroot}%{python2_sitearch}/%{upstream_name}/core.so +%py2_install +pushd %{py3dir} + %py3_install +popd +rm -f %{buildroot}%{python2_sitearch}/%{modname}/_*3.py +rm -f %{buildroot}%{python3_sitearch}/%{modname}/_*2.py +find %{buildroot} -name '.buildinfo' -delete +# Correct the permissions. +find %{buildroot} -name '*.so' -exec chmod 755 {} ';' -%files -%doc LICENSE README.rst -%{python2_sitearch}/%{upstream_name} -%{python2_sitearch}/%{upstream_name}-%{version}-*.egg-info +%files -n python2-%{modname} +%license LICENSE +%doc README.rst +%{python2_sitearch}/%{modname}* + +%files -n python3-%{modname} +%license LICENSE +%doc README.rst +%{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index 88ea819..614a3d2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -117f135d57ca7416203fba3720bf71c1 gevent-1.0.2.tar.gz +e120a6672feecbbc38b2fe1757ae6099 gevent-1.1b5.tar.gz From b52b31857ee94ec111bbfff6d54f062c9924ec03 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 6 Oct 2015 08:09:09 -0600 Subject: [PATCH 023/103] Drop use of unneeded %{py3dir} --- python-gevent.spec | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/python-gevent.spec b/python-gevent.spec index c74bd0b..334e7a6 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -5,7 +5,7 @@ Name: python-%{modname} Version: 1.1 -Release: 0.1.b5%{?dist} +Release: 0.2.b5%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -52,20 +52,13 @@ Requires: python3-greenlet # Remove bundled libraries rm -rf c-ares libev -rm -rf %{py3dir} -cp -a . %{py3dir} - %build %py2_build -pushd %{py3dir} - %py3_build -popd +%py3_build %install %py2_install -pushd %{py3dir} - %py3_install -popd +%py3_install rm -f %{buildroot}%{python2_sitearch}/%{modname}/_*3.py rm -f %{buildroot}%{python3_sitearch}/%{modname}/_*2.py find %{buildroot} -name '.buildinfo' -delete @@ -83,6 +76,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 From c13e16c7e0846a9353983aec399c9c6b9eaa8ca9 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 18 Oct 2015 02:18:17 +0200 Subject: [PATCH 024/103] Update to 1.1b6 (RHBZ #1272717) Signed-off-by: Igor Gnatenko --- .gitignore | 1 + python-gevent.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0790420..f1fa5de 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ gevent-0.13.0.tar.gz /gevent-1.0.1.tar.gz /gevent-1.0.2.tar.gz /gevent-1.1b5.tar.gz +/gevent-1.1b6.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 334e7a6..affaa98 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -1,11 +1,11 @@ %global __provides_exclude_from ^%{python2_sitearch}/.*\\.so$ ^%{python3_sitearch}/.*\\.so$ -%global realver 1.1b5 +%global realver 1.1b6 %global modname gevent %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} Version: 1.1 -Release: 0.2.b5%{?dist} +Release: 0.3.b6%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -76,6 +76,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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} diff --git a/sources b/sources index 614a3d2..10e15c1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e120a6672feecbbc38b2fe1757ae6099 gevent-1.1b5.tar.gz +17013e68e6560169c0a5724f475f2187 gevent-1.1b6.tar.gz From e671e5f65aa764d8def479fa680b22dfa7d99373 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 24 Oct 2015 15:26:45 +0200 Subject: [PATCH 025/103] Fix description in spec Signed-off-by: Igor Gnatenko --- python-gevent.spec | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/python-gevent.spec b/python-gevent.spec index affaa98..b11a0fb 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -5,7 +5,7 @@ Name: python-%{modname} Version: 1.1 -Release: 0.3.b6%{?dist} +Release: 0.4.b6%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -36,7 +36,17 @@ BuildRequires: python2-devel Requires: python-greenlet %description -n python2-%{modname} -%{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 + * familiar synchronization primitives (gevent.event, gevent.queue) + * socket module that cooperates + * WSGI server on top of libevent-http + * DNS requests done through libevent-dns + * monkey patching utility to get pure Python modules to cooperate %package -n python3-%{modname} Summary: %{summary} @@ -45,7 +55,17 @@ BuildRequires: python3-devel Requires: python3-greenlet %description -n python3-%{modname} -%{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 + * familiar synchronization primitives (gevent.event, gevent.queue) + * socket module that cooperates + * WSGI server on top of libevent-http + * DNS requests done through libevent-dns + * monkey patching utility to get pure Python modules to cooperate %prep %autosetup -n %{modname}-%{realver} @@ -76,6 +96,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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) From fd22697c79a38621d176e9a07c08d81ec994327d Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Tue, 10 Nov 2015 16:00:52 +0000 Subject: [PATCH 026/103] - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index b11a0fb..1fbd2ef 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -5,7 +5,7 @@ Name: python-%{modname} Version: 1.1 -Release: 0.4.b6%{?dist} +Release: 0.5.b6%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -96,6 +96,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 From 282e2a0ff694f1c1a2d791f8656811aa133791a9 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Wed, 20 Jan 2016 12:10:54 +1000 Subject: [PATCH 027/103] Update to 1.1rc3 --- .gitignore | 1 + python-gevent.spec | 13 ++++++++----- sources | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index f1fa5de..30420df 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ gevent-0.13.0.tar.gz /gevent-1.0.2.tar.gz /gevent-1.1b5.tar.gz /gevent-1.1b6.tar.gz +/gevent-1.1rc3.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 1fbd2ef..8eead34 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -1,16 +1,15 @@ %global __provides_exclude_from ^%{python2_sitearch}/.*\\.so$ ^%{python3_sitearch}/.*\\.so$ -%global realver 1.1b6 +%global realver 1.1rc3 %global modname gevent %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} Version: 1.1 -Release: 0.5.b6%{?dist} +Release: 0.6.rc3%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ -#Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modname}-%{realver}.tar.gz BuildRequires: c-ares-devel @@ -79,8 +78,9 @@ rm -rf c-ares libev %install %py2_install %py3_install -rm -f %{buildroot}%{python2_sitearch}/%{modname}/_*3.py -rm -f %{buildroot}%{python3_sitearch}/%{modname}/_*2.py +rm %{buildroot}%{python2_sitearch}/%{modname}/_*3.py* +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 {} ';' @@ -96,6 +96,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index 10e15c1..5f3c159 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -17013e68e6560169c0a5724f475f2187 gevent-1.1b6.tar.gz +cc96707c13ce2014dad386784fa105f5 gevent-1.1rc3.tar.gz From 3458300a7048a3c759aa2b0cc8c54a0b711ff0a9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 4 Feb 2016 19:47:43 +0000 Subject: [PATCH 028/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 8eead34..ed11515 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -5,7 +5,7 @@ Name: python-%{modname} Version: 1.1 -Release: 0.6.rc3%{?dist} +Release: 0.7.rc3%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -96,6 +96,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 From d57057950b46d0eced48c5adece46a628be2b116 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 17 Feb 2016 10:06:34 +0100 Subject: [PATCH 029/103] Update to 1.1rc4 (RHBZ #1309141) Signed-off-by: Igor Gnatenko --- .gitignore | 1 + python-gevent.spec | 13 ++++++++++--- sources | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 30420df..8f509b7 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ gevent-0.13.0.tar.gz /gevent-1.1b5.tar.gz /gevent-1.1b6.tar.gz /gevent-1.1rc3.tar.gz +/gevent-1.1rc4.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index ed11515..fee049b 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -1,11 +1,11 @@ %global __provides_exclude_from ^%{python2_sitearch}/.*\\.so$ ^%{python3_sitearch}/.*\\.so$ -%global realver 1.1rc3 +%global realver 1.1rc4 %global modname gevent %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} Version: 1.1 -Release: 0.7.rc3%{?dist} +Release: 0.8.rc4%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -32,7 +32,7 @@ Features include: Summary: %{summary} %{?python_provide:%python_provide python2-%{modname}} BuildRequires: python2-devel -Requires: python-greenlet +Requires: python2-greenlet %description -n python2-%{modname} gevent is a coroutine-based Python networking library that uses greenlet to @@ -47,6 +47,8 @@ Features include: * DNS requests done through libevent-dns * monkey patching utility to get pure Python modules to cooperate +Python 2 version. + %package -n python3-%{modname} Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} @@ -66,6 +68,8 @@ Features include: * DNS requests done through libevent-dns * monkey patching utility to get pure Python modules to cooperate +Python 3 version. + %prep %autosetup -n %{modname}-%{realver} # Remove bundled libraries @@ -96,6 +100,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index 5f3c159..33fcc88 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cc96707c13ce2014dad386784fa105f5 gevent-1.1rc3.tar.gz +4abe8a99979dd095b145bb2e083dc4ff gevent-1.1rc4.tar.gz From 1a94cfe50adcda0cfaa2c6b3ac3b482806cf50d3 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Tue, 15 Mar 2016 13:18:33 +1000 Subject: [PATCH 030/103] Update to 1.1.0 final release --- .gitignore | 1 + python-gevent.spec | 12 +++++++----- sources | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 8f509b7..6e7f0d3 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ gevent-0.13.0.tar.gz /gevent-1.1b6.tar.gz /gevent-1.1rc3.tar.gz /gevent-1.1rc4.tar.gz +/gevent-1.1.0.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index fee049b..8c309ec 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -1,16 +1,15 @@ %global __provides_exclude_from ^%{python2_sitearch}/.*\\.so$ ^%{python3_sitearch}/.*\\.so$ -%global realver 1.1rc4 %global modname gevent %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 1.1 -Release: 0.8.rc4%{?dist} +Version: 1.1.0 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ -Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modname}-%{realver}.tar.gz +Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz BuildRequires: c-ares-devel BuildRequires: libev-devel @@ -71,7 +70,7 @@ Features include: Python 3 version. %prep -%autosetup -n %{modname}-%{realver} +%autosetup -n %{modname}-%{version} # Remove bundled libraries rm -rf c-ares libev @@ -100,6 +99,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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) diff --git a/sources b/sources index 33fcc88..81aed90 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4abe8a99979dd095b145bb2e083dc4ff gevent-1.1rc4.tar.gz +24b3e44134fbff250526f3b949763f99 gevent-1.1.0.tar.gz From 0c2b125e27047da20081226ec127f9fe049044f2 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 5 Apr 2016 08:51:22 +0200 Subject: [PATCH 031/103] Update to 1.1.1 (RHBZ #1323855) Signed-off-by: Igor Gnatenko --- .gitignore | 1 + python-gevent.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6e7f0d3..194fd40 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ gevent-0.13.0.tar.gz /gevent-1.1rc3.tar.gz /gevent-1.1rc4.tar.gz /gevent-1.1.0.tar.gz +/gevent-1.1.1.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 8c309ec..d33645f 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,7 +3,7 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 1.1.0 +Version: 1.1.1 Release: 1%{?dist} Summary: A coroutine-based Python networking library @@ -99,6 +99,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index 81aed90..31876b6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -24b3e44134fbff250526f3b949763f99 gevent-1.1.0.tar.gz +1532f5396ab4d07a231f1935483be7c3 gevent-1.1.1.tar.gz From 6031b9c292309ed8f88d9740dae13459382720f6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 19 Jul 2016 09:53:46 +0000 Subject: [PATCH 032/103] - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index d33645f..345a74c 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.1.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -99,6 +99,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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) From dd1558b82a8fc002074438a80b17666acaf9ddc6 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 24 Jul 2016 08:55:47 +0200 Subject: [PATCH 033/103] Update to 1.1.2 (RHBZ #1359455) Signed-off-by: Igor Gnatenko --- .gitignore | 1 + python-gevent.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 194fd40..20703fb 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ gevent-0.13.0.tar.gz /gevent-1.1rc4.tar.gz /gevent-1.1.0.tar.gz /gevent-1.1.1.tar.gz +/gevent-1.1.2.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 345a74c..018ef52 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,13 +3,13 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 1.1.1 -Release: 2%{?dist} +Version: 1.1.2 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ -Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz +Source0: https://github.com/gevent/gevent/releases/download/v%{version}/%{modname}-%{version}.tar.gz BuildRequires: c-ares-devel BuildRequires: libev-devel @@ -99,6 +99,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index 31876b6..eb24331 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1532f5396ab4d07a231f1935483be7c3 gevent-1.1.1.tar.gz +bb32a2f852a4997138014d5007215c6e gevent-1.1.2.tar.gz From 4a406a9f2da83b46005c6239faba220aadd670dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 19 Dec 2016 18:20:37 +0100 Subject: [PATCH 034/103] Rebuild for Python 3.6 --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 018ef52..3ef5e89 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.1.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -99,6 +99,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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) From af2ed70b5c46e886a0641225428b6bbf49d726d0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 11 Feb 2017 09:10:05 +0000 Subject: [PATCH 035/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 3ef5e89..76592e3 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.1.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -99,6 +99,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 From 5551dbea1bd88f10eb95177274b099005e1c8db6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Jul 2017 10:28:56 +0000 Subject: [PATCH 036/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 76592e3..ca0e032 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.1.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -99,6 +99,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 From 86a4521fe15f2e7cfc892cdf1035dec3ee88ce9a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 3 Aug 2017 06:45:42 +0000 Subject: [PATCH 037/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index ca0e032..a4b6ac1 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.1.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -99,6 +99,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 From d198422b9dbfe7bca28fecc26b3d7579735038af Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Wed, 7 Jun 2017 15:14:32 +1000 Subject: [PATCH 038/103] Update to 1.2.2 (RHBZ#1389634) --- .gitignore | 1 + 0001-always-obey-GEVENT_NO_CFFI_BUILD.patch | 42 +++++++++++++++++++++ python-gevent.spec | 24 ++++++++++-- sources | 2 +- 4 files changed, 64 insertions(+), 5 deletions(-) create mode 100644 0001-always-obey-GEVENT_NO_CFFI_BUILD.patch diff --git a/.gitignore b/.gitignore index 20703fb..204e622 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ gevent-0.13.0.tar.gz /gevent-1.1.0.tar.gz /gevent-1.1.1.tar.gz /gevent-1.1.2.tar.gz +/gevent-1.2.2.tar.gz diff --git a/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch b/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch new file mode 100644 index 0000000..7f768ec --- /dev/null +++ b/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch @@ -0,0 +1,42 @@ +From 05650624fe2524ecb1bdbbd4facc5d988275e542 Mon Sep 17 00:00:00 2001 +From: Dan Callaghan +Date: Wed, 7 Jun 2017 13:55:53 +1000 +Subject: [PATCH] always obey GEVENT_NO_CFFI_BUILD + +If libev is not embedded, we still want to set GEVENT_NO_CFFI_BUILD=1 to +prevent setup.py from trying to configure libev, regardless whether cffi +modules will actually be built or not. +--- + setup.py | 11 ++++++----- + 1 file changed, 6 insertions(+), 5 deletions(-) + +diff --git a/setup.py b/setup.py +index 9c229ad..ea4dcaf 100755 +--- a/setup.py ++++ b/setup.py +@@ -90,16 +90,17 @@ + except ImportError: + pass + else: +- if IGNORE_CFFI and not PYPY: +- # Allow distributors to turn off CFFI builds +- # even if it's available, because CFFI always embeds +- # our copy of libev and they may not want that. +- del cffi_modules[:] + # Note that we don't add cffi to install_requires, it's + # optional. We tend to build and distribute wheels with the CFFI + # modules built and they can be imported if CFFI is installed. + # install_requires.append('cffi >= 1.3.0') ++ pass + ++if IGNORE_CFFI and not PYPY: ++ # Allow distributors to turn off CFFI builds ++ # even if it's available, because CFFI always embeds ++ # our copy of libev and they may not want that. ++ del cffi_modules[:] + + # If we are running info / help commands, or we're being imported by + # tools like pyroma, we don't need to build anything +-- +2.9.4 + diff --git a/python-gevent.spec b/python-gevent.spec index a4b6ac1..01625bf 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,13 +3,16 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 1.1.2 -Release: 5%{?dist} +Version: 1.2.2 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ -Source0: https://github.com/gevent/gevent/releases/download/v%{version}/%{modname}-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz + +# https://github.com/gevent/gevent/pull/979 +Patch1: 0001-always-obey-GEVENT_NO_CFFI_BUILD.patch BuildRequires: c-ares-devel BuildRequires: libev-devel @@ -72,13 +75,23 @@ Python 3 version. %prep %autosetup -n %{modname}-%{version} # Remove bundled libraries -rm -rf c-ares libev +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 %build +export LIBEV_EMBED=0 +export CARES_EMBED=0 +export GEVENT_NO_CFFI_BUILD=1 %py2_build %py3_build %install +export LIBEV_EMBED=0 +export CARES_EMBED=0 +export GEVENT_NO_CFFI_BUILD=1 %py2_install %py3_install rm %{buildroot}%{python2_sitearch}/%{modname}/_*3.py* @@ -99,6 +112,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index eb24331..52fb4b7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -bb32a2f852a4997138014d5007215c6e gevent-1.1.2.tar.gz +SHA512 (gevent-1.2.2.tar.gz) = 1e2dd544cffea62ee32de2e4066b3f4c121058a1211b89da281ec3882f3763217fe2d346ce38b66e27df9f59cfe05bb137d1608a681dd10eaf06a33dc22f531c From c75817c0b348b58bdfdd78edf87e0c8c71b61be6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 9 Feb 2018 08:07:13 +0000 Subject: [PATCH 039/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_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 01625bf..bd4a1d6 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.2.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -112,6 +112,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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) From 1afd657c41f44193ec16169d8ccdc71d20ef1340 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Tue, 29 May 2018 13:26:25 +1000 Subject: [PATCH 040/103] Update to 1.3.1 (RHBZ#1552352) --- .gitignore | 1 + python-gevent.spec | 13 ++++++++----- sources | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 204e622..a868573 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ gevent-0.13.0.tar.gz /gevent-1.1.1.tar.gz /gevent-1.1.2.tar.gz /gevent-1.2.2.tar.gz +/gevent-1.3.1.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index bd4a1d6..07cc65e 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,17 +3,14 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 1.2.2 -Release: 2%{?dist} +Version: 1.3.1 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ Source0: https://files.pythonhosted.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz -# https://github.com/gevent/gevent/pull/979 -Patch1: 0001-always-obey-GEVENT_NO_CFFI_BUILD.patch - BuildRequires: c-ares-devel BuildRequires: libev-devel @@ -34,6 +31,7 @@ Features include: Summary: %{summary} %{?python_provide:%python_provide python2-%{modname}} BuildRequires: python2-devel +BuildRequires: python2-greenlet-devel Requires: python2-greenlet %description -n python2-%{modname} @@ -55,6 +53,7 @@ Python 2 version. Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel +BuildRequires: python3-greenlet-devel Requires: python3-greenlet %description -n python3-%{modname} @@ -112,6 +111,10 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index 52fb4b7..8d08a53 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-1.2.2.tar.gz) = 1e2dd544cffea62ee32de2e4066b3f4c121058a1211b89da281ec3882f3763217fe2d346ce38b66e27df9f59cfe05bb137d1608a681dd10eaf06a33dc22f531c +SHA512 (gevent-1.3.1.tar.gz) = 9bc078e6d28b157e6b4a76b5f7221fe7b1b73d665888a16bf61fa035b5ec30d67f9680ef8b4490eced5cb865706722f8974e5e143803e7687eaed847e367dd4a From cdfc1c68c6f46136eb54317531b8876c18c4389e Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Mon, 4 Jun 2018 13:55:50 +1000 Subject: [PATCH 041/103] Update to 1.3.2 (RHBZ#1583647) --- .gitignore | 1 + python-gevent.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a868573..9a25328 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ gevent-0.13.0.tar.gz /gevent-1.1.2.tar.gz /gevent-1.2.2.tar.gz /gevent-1.3.1.tar.gz +/gevent-1.3.2.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 07cc65e..d385ff4 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,7 +3,7 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 1.3.1 +Version: 1.3.2 Release: 1%{?dist} Summary: A coroutine-based Python networking library @@ -111,6 +111,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index 8d08a53..da17707 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-1.3.1.tar.gz) = 9bc078e6d28b157e6b4a76b5f7221fe7b1b73d665888a16bf61fa035b5ec30d67f9680ef8b4490eced5cb865706722f8974e5e143803e7687eaed847e367dd4a +SHA512 (gevent-1.3.2.tar.gz) = 06ec9f550b6e718fcb278ec613296c98236f98c74fd7462c4be4e3f78f57023148ea4c74a40993beb424a3b88d26fc984a5ec4e469b3ffa926fa46b8a2a332f3 From f577f705b7911607715c3e503c16217a908f3e34 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Wed, 13 Jun 2018 12:34:43 +1000 Subject: [PATCH 042/103] Update to 1.3.3 (RHBZ#1589102) --- .gitignore | 1 + python-gevent.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9a25328..036c251 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ gevent-0.13.0.tar.gz /gevent-1.2.2.tar.gz /gevent-1.3.1.tar.gz /gevent-1.3.2.tar.gz +/gevent-1.3.3.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index d385ff4..b30ca66 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,7 +3,7 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 1.3.2 +Version: 1.3.3 Release: 1%{?dist} Summary: A coroutine-based Python networking library @@ -111,6 +111,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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) diff --git a/sources b/sources index da17707..7b25122 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-1.3.2.tar.gz) = 06ec9f550b6e718fcb278ec613296c98236f98c74fd7462c4be4e3f78f57023148ea4c74a40993beb424a3b88d26fc984a5ec4e469b3ffa926fa46b8a2a332f3 +SHA512 (gevent-1.3.3.tar.gz) = 478f99dbb7d7d9deea23e9a6ea29e8dd994b64a006cfd27e25fa248446050a565c137c3a97f9bb77e8f37c76c57e4a9a269f922c3d01e2d90e56f484a1740a0e From 6a44975b4ccbaed0aa8e809d1dc2ad827cffe839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 19 Jun 2018 00:08:44 +0200 Subject: [PATCH 043/103] Rebuilt for Python 3.7 --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index b30ca66..d5b3450 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.3.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -111,6 +111,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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) From 76b5995645b18fff67fccc39efd13faa38f98edc Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Tue, 26 Jun 2018 15:36:55 +1000 Subject: [PATCH 044/103] Update to 1.3.4 (RHBZ#1593266) --- .gitignore | 1 + python-gevent.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 036c251..d9b75e1 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ gevent-0.13.0.tar.gz /gevent-1.3.1.tar.gz /gevent-1.3.2.tar.gz /gevent-1.3.3.tar.gz +/gevent-1.3.4.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index d5b3450..7eb6270 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,8 +3,8 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 1.3.3 -Release: 2%{?dist} +Version: 1.3.4 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -111,6 +111,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index 7b25122..914a085 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-1.3.3.tar.gz) = 478f99dbb7d7d9deea23e9a6ea29e8dd994b64a006cfd27e25fa248446050a565c137c3a97f9bb77e8f37c76c57e4a9a269f922c3d01e2d90e56f484a1740a0e +SHA512 (gevent-1.3.4.tar.gz) = dcebb78c471046a7de3cd557d35877f915d7801e3dcdeaee2f3205af2e59dee071108015ec895105ea91deeb35c6a5bb7e91cf06664a31276b53bc85434f80ca From 0fee919df3dcc32fc3d79d46faa54dc53f9e2916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 2 Jul 2018 18:23:26 +0200 Subject: [PATCH 045/103] Rebuilt for Python 3.7 --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 7eb6270..cbbb261 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.3.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -111,6 +111,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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) From 6a503d2baf00f7471fa0514943cf8d5ca749cfc7 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 10 Jul 2018 15:56:25 +0200 Subject: [PATCH 046/103] add BuildRequires: gcc Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot --- python-gevent.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-gevent.spec b/python-gevent.spec index cbbb261..d7ddb77 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -11,6 +11,7 @@ License: MIT URL: http://www.gevent.org/ Source0: https://files.pythonhosted.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz +BuildRequires: gcc BuildRequires: c-ares-devel BuildRequires: libev-devel From 452824453a907cdfc7a82cddf26feee2ae268fb5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 14 Jul 2018 00:25:22 +0000 Subject: [PATCH 047/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_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 d7ddb77..769a2ef 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.3.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -112,6 +112,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 From b31feee338b8cac373edd0c225c6305d4952adca Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Mon, 17 Sep 2018 13:51:27 +1000 Subject: [PATCH 048/103] Upstream bug fix release 1.3.6: http://www.gevent.org/changelog.html --- .gitignore | 1 + python-gevent.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d9b75e1..b23e289 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ gevent-0.13.0.tar.gz /gevent-1.3.2.tar.gz /gevent-1.3.3.tar.gz /gevent-1.3.4.tar.gz +/gevent-1.3.6.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 769a2ef..231c44c 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,8 +3,8 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 1.3.4 -Release: 3%{?dist} +Version: 1.3.6 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -112,6 +112,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index 914a085..55a8ed9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-1.3.4.tar.gz) = dcebb78c471046a7de3cd557d35877f915d7801e3dcdeaee2f3205af2e59dee071108015ec895105ea91deeb35c6a5bb7e91cf06664a31276b53bc85434f80ca +SHA512 (gevent-1.3.6.tar.gz) = 9ad6bf8a939a3cf812fd33c9f55813c0a3ee281ccb38e42ec8c68c3fbb4ba07623d7dfb7104d3e343713ee93b4b4d7e29de06a2992b171166b003985f2b49e2a From db9cb2d1e89780040cbfbdacf20e35aa89a96d82 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 2 Feb 2019 07:00:34 +0000 Subject: [PATCH 049/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_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 231c44c..dfc80b0 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.3.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -112,6 +112,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 From 1c32ec07c15855e61c04b0b832dc0180f86819c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 15 May 2019 14:04:48 +0200 Subject: [PATCH 050/103] Force re-cythonizing the sources --- python-gevent.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index dfc80b0..a115ea8 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -54,6 +54,7 @@ Python 2 version. Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel +BuildRequires: python3-Cython BuildRequires: python3-greenlet-devel Requires: python3-greenlet @@ -81,12 +82,16 @@ 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 src/gevent/*.c src/gevent/libev/_*.c + %build export LIBEV_EMBED=0 export CARES_EMBED=0 export GEVENT_NO_CFFI_BUILD=1 -%py2_build +# Build Python 3 first to use Python 3 Cython %py3_build +%py2_build %install export LIBEV_EMBED=0 From 9ac63267e9b0dd1f38853079df783c82c40b0bc4 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 11 Jun 2019 17:16:05 +0200 Subject: [PATCH 051/103] Add Python 3.8 support: use CodeType.replace() if available Backport upstream change: https://github.com/gevent/gevent/commit/806713333afa9d490d31c0f9b534031c07467fc7 Remove also 0001-always-obey-GEVENT_NO_CFFI_BUILD.patch, the change has bene merged into gevent 1.3: https://github.com/gevent/gevent/commit/14b28c678f2f7ae5107dc2abeef1f512f7748887 --- 0001-always-obey-GEVENT_NO_CFFI_BUILD.patch | 42 --------------------- 0001-code-replace.patch | 26 +++++++++++++ python-gevent.spec | 13 ++++++- 3 files changed, 37 insertions(+), 44 deletions(-) delete mode 100644 0001-always-obey-GEVENT_NO_CFFI_BUILD.patch create mode 100644 0001-code-replace.patch diff --git a/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch b/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch deleted file mode 100644 index 7f768ec..0000000 --- a/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 05650624fe2524ecb1bdbbd4facc5d988275e542 Mon Sep 17 00:00:00 2001 -From: Dan Callaghan -Date: Wed, 7 Jun 2017 13:55:53 +1000 -Subject: [PATCH] always obey GEVENT_NO_CFFI_BUILD - -If libev is not embedded, we still want to set GEVENT_NO_CFFI_BUILD=1 to -prevent setup.py from trying to configure libev, regardless whether cffi -modules will actually be built or not. ---- - setup.py | 11 ++++++----- - 1 file changed, 6 insertions(+), 5 deletions(-) - -diff --git a/setup.py b/setup.py -index 9c229ad..ea4dcaf 100755 ---- a/setup.py -+++ b/setup.py -@@ -90,16 +90,17 @@ - except ImportError: - pass - else: -- if IGNORE_CFFI and not PYPY: -- # Allow distributors to turn off CFFI builds -- # even if it's available, because CFFI always embeds -- # our copy of libev and they may not want that. -- del cffi_modules[:] - # Note that we don't add cffi to install_requires, it's - # optional. We tend to build and distribute wheels with the CFFI - # modules built and they can be imported if CFFI is installed. - # install_requires.append('cffi >= 1.3.0') -+ pass - -+if IGNORE_CFFI and not PYPY: -+ # Allow distributors to turn off CFFI builds -+ # even if it's available, because CFFI always embeds -+ # our copy of libev and they may not want that. -+ del cffi_modules[:] - - # If we are running info / help commands, or we're being imported by - # tools like pyroma, we don't need to build anything --- -2.9.4 - diff --git a/0001-code-replace.patch b/0001-code-replace.patch new file mode 100644 index 0000000..8cbbe02 --- /dev/null +++ b/0001-code-replace.patch @@ -0,0 +1,26 @@ +commit 1b84da94c2aa2d171881482c22298ad189b79764 +Author: Victor Stinner +Date: Tue Jun 11 16:38:52 2019 +0200 + + Use CodeType.replace() if available + + Port _tblib.Traceback to Python 3.8: use code.replace() method if + available. + +diff --git a/src/gevent/_tblib.py b/src/gevent/_tblib.py +index 13364012..b9553a9e 100644 +--- a/src/gevent/_tblib.py ++++ b/src/gevent/_tblib.py +@@ -198,7 +198,11 @@ class Traceback(object): + while current: + f_code = current.tb_frame.f_code + code = compile('\n' * (current.tb_lineno - 1) + 'raise __traceback_maker', current.tb_frame.f_code.co_filename, 'exec') +- if PY3: ++ if hasattr(code, "replace"): ++ # Python 3.8 and newer ++ code = code.replace(co_argcount=0, ++ co_freevars=(), co_cellvars=()) ++ elif PY3: + code = CodeType( + 0, code.co_kwonlyargcount, + code.co_nlocals, code.co_stacksize, code.co_flags, diff --git a/python-gevent.spec b/python-gevent.spec index a115ea8..527f586 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,13 +4,18 @@ Name: python-%{modname} Version: 1.3.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ Source0: https://files.pythonhosted.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz +# Python 3.8 compatibility: use code.replace() method +# https://github.com/gevent/gevent/pull/1429 +# https://github.com/gevent/gevent/commit/806713333afa9d490d31c0f9b534031c07467fc7 +Patch1: 0001-code-replace.patch + BuildRequires: gcc BuildRequires: c-ares-devel BuildRequires: libev-devel @@ -74,7 +79,7 @@ Features include: Python 3 version. %prep -%autosetup -n %{modname}-%{version} +%autosetup -p1 -n %{modname}-%{version} # Remove bundled libraries rm -r deps # Upstream intentionally includes C extension sources in the built package, @@ -117,6 +122,10 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 From 60452f2fa8743664bf6c5f6eb358f7d3ae7c426b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jul 2019 13:42:47 +0000 Subject: [PATCH 052/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_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 527f586..7fa6977 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.3.6 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -122,6 +122,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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) From 2a87dd2f03ecad9cf074f9a5e3a17aa4e10d0bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 12 Aug 2019 13:53:47 +0200 Subject: [PATCH 053/103] Subpackage python2-gevent has been removed --- python-gevent.spec | 38 ++++++-------------------------------- 1 file changed, 6 insertions(+), 32 deletions(-) diff --git a/python-gevent.spec b/python-gevent.spec index 7fa6977..b749d5c 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -1,10 +1,10 @@ -%global __provides_exclude_from ^%{python2_sitearch}/.*\\.so$ ^%{python3_sitearch}/.*\\.so$ +%global __provides_exclude_from ^%{python3_sitearch}/.*\\.so$ %global modname gevent %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} Version: 1.3.6 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -33,28 +33,6 @@ Features include: * DNS requests done through libevent-dns * monkey patching utility to get pure Python modules to cooperate -%package -n python2-%{modname} -Summary: %{summary} -%{?python_provide:%python_provide python2-%{modname}} -BuildRequires: python2-devel -BuildRequires: python2-greenlet-devel -Requires: python2-greenlet - -%description -n python2-%{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 - * familiar synchronization primitives (gevent.event, gevent.queue) - * socket module that cooperates - * WSGI server on top of libevent-http - * DNS requests done through libevent-dns - * monkey patching utility to get pure Python modules to cooperate - -Python 2 version. - %package -n python3-%{modname} Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} @@ -96,32 +74,28 @@ export CARES_EMBED=0 export GEVENT_NO_CFFI_BUILD=1 # Build Python 3 first to use Python 3 Cython %py3_build -%py2_build %install export LIBEV_EMBED=0 export CARES_EMBED=0 export GEVENT_NO_CFFI_BUILD=1 -%py2_install %py3_install -rm %{buildroot}%{python2_sitearch}/%{modname}/_*3.py* 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 {} ';' -%files -n python2-%{modname} -%license LICENSE -%doc README.rst -%{python2_sitearch}/%{modname}* - %files -n python3-%{modname} %license LICENSE %doc README.rst %{python3_sitearch}/%{modname}* %changelog +* 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 From 2500947a6aec08e17ebdc55026dc7d762423fc80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sun, 18 Aug 2019 00:38:10 +0200 Subject: [PATCH 054/103] Rebuilt for Python 3.8 --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index b749d5c..025f190 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.3.6 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -92,6 +92,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 From f5736d1243b7052d8cb0bd382da706dde1adac44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 3 Oct 2019 14:13:20 +0200 Subject: [PATCH 055/103] Rebuilt for Python 3.8.0rc1 (#1748018) --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 025f190..a6a6a0e 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 1.3.6 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -92,6 +92,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 From 229a023977c489898f4a2e0591149c5257c8789e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Wed, 8 Jan 2020 20:46:40 +0100 Subject: [PATCH 056/103] Update to 1.5a3 (#1705661) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert-André Mauchin --- .gitignore | 1 + 0001-code-replace.patch | 26 -------------------------- python-gevent.spec | 17 ++++++++--------- sources | 2 +- 4 files changed, 10 insertions(+), 36 deletions(-) delete mode 100644 0001-code-replace.patch diff --git a/.gitignore b/.gitignore index b23e289..7e69963 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ gevent-0.13.0.tar.gz /gevent-1.3.3.tar.gz /gevent-1.3.4.tar.gz /gevent-1.3.6.tar.gz +/gevent-1.5a3.zip diff --git a/0001-code-replace.patch b/0001-code-replace.patch deleted file mode 100644 index 8cbbe02..0000000 --- a/0001-code-replace.patch +++ /dev/null @@ -1,26 +0,0 @@ -commit 1b84da94c2aa2d171881482c22298ad189b79764 -Author: Victor Stinner -Date: Tue Jun 11 16:38:52 2019 +0200 - - Use CodeType.replace() if available - - Port _tblib.Traceback to Python 3.8: use code.replace() method if - available. - -diff --git a/src/gevent/_tblib.py b/src/gevent/_tblib.py -index 13364012..b9553a9e 100644 ---- a/src/gevent/_tblib.py -+++ b/src/gevent/_tblib.py -@@ -198,7 +198,11 @@ class Traceback(object): - while current: - f_code = current.tb_frame.f_code - code = compile('\n' * (current.tb_lineno - 1) + 'raise __traceback_maker', current.tb_frame.f_code.co_filename, 'exec') -- if PY3: -+ if hasattr(code, "replace"): -+ # Python 3.8 and newer -+ code = code.replace(co_argcount=0, -+ co_freevars=(), co_cellvars=()) -+ elif PY3: - code = CodeType( - 0, code.co_kwonlyargcount, - code.co_nlocals, code.co_stacksize, code.co_flags, diff --git a/python-gevent.spec b/python-gevent.spec index a6a6a0e..24fd01d 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -1,20 +1,16 @@ %global __provides_exclude_from ^%{python3_sitearch}/.*\\.so$ %global modname gevent %global optflags %(echo %{optflags} -I%{_includedir}/libev) +%global extraver a3 Name: python-%{modname} -Version: 1.3.6 -Release: 7%{?dist} +Version: 1.5 +Release: 0.1.%{extraver}%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ -Source0: https://files.pythonhosted.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz - -# Python 3.8 compatibility: use code.replace() method -# https://github.com/gevent/gevent/pull/1429 -# https://github.com/gevent/gevent/commit/806713333afa9d490d31c0f9b534031c07467fc7 -Patch1: 0001-code-replace.patch +Source0: %{pypi_source %{modname} %{version}%{extraver} zip} BuildRequires: gcc BuildRequires: c-ares-devel @@ -57,7 +53,7 @@ Features include: Python 3 version. %prep -%autosetup -p1 -n %{modname}-%{version} +%autosetup -p1 -n %{modname}-%{version}%{extraver} # Remove bundled libraries rm -r deps # Upstream intentionally includes C extension sources in the built package, @@ -92,6 +88,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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) diff --git a/sources b/sources index 55a8ed9..5b47c5a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-1.3.6.tar.gz) = 9ad6bf8a939a3cf812fd33c9f55813c0a3ee281ccb38e42ec8c68c3fbb4ba07623d7dfb7104d3e343713ee93b4b4d7e29de06a2992b171166b003985f2b49e2a +SHA512 (gevent-1.5a3.zip) = 8f6785f200d8b405235fd98e3055a8ba2f58df48f5a58adda19b439e3acc09a8552649335ad06930e1aa2a625a6c195c54ff4eb840b6edee3b68d22bbbbf555e From 5c5f0b81692945644355cd3c40349658f60f33e9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 30 Jan 2020 12:26:49 +0000 Subject: [PATCH 057/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_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 24fd01d..a72fdd0 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -5,7 +5,7 @@ Name: python-%{modname} Version: 1.5 -Release: 0.1.%{extraver}%{?dist} +Release: 0.2.%{extraver}%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -88,6 +88,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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) From e1decccb1dee44f904f96bfeeae4ae00ec8f9aaf Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Sun, 17 May 2020 14:41:19 +1000 Subject: [PATCH 058/103] new upstream release 20.5.0 --- .gitignore | 1 + python-gevent.spec | 13 ++++++++----- sources | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 7e69963..7a0c623 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ gevent-0.13.0.tar.gz /gevent-1.3.4.tar.gz /gevent-1.3.6.tar.gz /gevent-1.5a3.zip +/gevent-20.5.0.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index a72fdd0..8e8316e 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -1,16 +1,15 @@ %global __provides_exclude_from ^%{python3_sitearch}/.*\\.so$ %global modname gevent %global optflags %(echo %{optflags} -I%{_includedir}/libev) -%global extraver a3 Name: python-%{modname} -Version: 1.5 -Release: 0.2.%{extraver}%{?dist} +Version: 20.5.0 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT URL: http://www.gevent.org/ -Source0: %{pypi_source %{modname} %{version}%{extraver} zip} +Source0: %{pypi_source %{modname} %{version} tar.gz} BuildRequires: gcc BuildRequires: c-ares-devel @@ -53,7 +52,7 @@ Features include: Python 3 version. %prep -%autosetup -p1 -n %{modname}-%{version}%{extraver} +%autosetup -p1 -n %{modname}-%{version} # Remove bundled libraries rm -r deps # Upstream intentionally includes C extension sources in the built package, @@ -88,6 +87,10 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index 5b47c5a..e73cd33 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-1.5a3.zip) = 8f6785f200d8b405235fd98e3055a8ba2f58df48f5a58adda19b439e3acc09a8552649335ad06930e1aa2a625a6c195c54ff4eb840b6edee3b68d22bbbbf555e +SHA512 (gevent-20.5.0.tar.gz) = 4571a60aa9bb3dfd0e4ba361eac1b28e828eac3ed1f3fd5dcd30a8a1cc39c28bc60ed2520cfbfd1eea296ac0e081a77001811f082a8dece55f6b93d240763ae8 From 0c1017a83cba776da29abeee33ed3dd1a3965b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sun, 24 May 2020 18:34:39 +0200 Subject: [PATCH 059/103] Rebuilt for Python 3.9 --- python-gevent.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 8e8316e..5964f17 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 20.5.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -87,6 +87,9 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';' %{python3_sitearch}/%{modname}* %changelog +* 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 From 193919638336d2e958a5d9dc3feeb1a66e623f2c Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sat, 6 Jun 2020 12:31:19 -0600 Subject: [PATCH 060/103] 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 --- .gitignore | 1 + python-gevent.spec | 38 ++++++++++++++++++++++++++------------ sources | 2 +- 3 files changed, 28 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 7a0c623..8216dcb 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ gevent-0.13.0.tar.gz /gevent-1.3.6.tar.gz /gevent-1.5a3.zip /gevent-20.5.0.tar.gz +/gevent-20.6.0.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 5964f17..db7458c 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,17 +3,18 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 20.5.0 -Release: 2%{?dist} +Version: 20.6.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} -BuildRequires: gcc +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 @@ -33,8 +34,12 @@ Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel BuildRequires: python3-Cython -BuildRequires: python3-greenlet-devel -Requires: python3-greenlet +BuildRequires: python3-greenlet-devel >= 0.4.16 +# For tests +BuildRequires: python3-dns +BuildRequires: python3-psutil +BuildRequires: python3-zope-interface +Requires: python3-greenlet >= 0.4.16 %description -n python3-%{modname} gevent is a coroutine-based Python networking library that uses greenlet to @@ -61,19 +66,15 @@ rm -r deps sed -i -e 's/include_package_data=True/include_package_data=False/' setup.py # Force re-cythonizing the sources -rm src/gevent/*.c src/gevent/libev/_*.c +rm $(grep -rl '/\* Generated by Cython') %build -export LIBEV_EMBED=0 -export CARES_EMBED=0 -export GEVENT_NO_CFFI_BUILD=1 +export GEVENTSETUP_EMBED=0 # Build Python 3 first to use Python 3 Cython %py3_build %install -export LIBEV_EMBED=0 -export CARES_EMBED=0 -export GEVENT_NO_CFFI_BUILD=1 +export GEVENTSETUP_EMBED=0 %py3_install rm %{buildroot}%{python3_sitearch}/%{modname}/_*2.py rm %{buildroot}%{python3_sitearch}/%{modname}/__pycache__/_*2.* @@ -81,12 +82,25 @@ find %{buildroot} -name '.buildinfo' -delete # Correct the permissions. find %{buildroot} -name '*.so' -exec chmod 755 {} ';' +%check +export PYTHONPATH=%{buildroot}%{python3_sitearch} +%__python3 -m gevent.tests || : +cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subprocess*.py + %files -n python3-%{modname} %license LICENSE %doc README.rst %{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index e73cd33..1018360 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-20.5.0.tar.gz) = 4571a60aa9bb3dfd0e4ba361eac1b28e828eac3ed1f3fd5dcd30a8a1cc39c28bc60ed2520cfbfd1eea296ac0e081a77001811f082a8dece55f6b93d240763ae8 +SHA512 (gevent-20.6.0.tar.gz) = 28ee030934d3c379577c9f86b76838e5d76c7ea7c0880cdeac9dc5ead497ae0600fb02b2984c7312fd42319142200c674b75da2e93b58fd4a99882d601a95108 From 3dc393efb94125c43cc658188b93fd9d75045379 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Sat, 13 Jun 2020 16:35:10 +1000 Subject: [PATCH 061/103] new upstream release 20.6.1 --- .gitignore | 1 + python-gevent.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8216dcb..647171a 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ gevent-0.13.0.tar.gz /gevent-1.5a3.zip /gevent-20.5.0.tar.gz /gevent-20.6.0.tar.gz +/gevent-20.6.1.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index db7458c..6dead35 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,7 +3,7 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 20.6.0 +Version: 20.6.1 Release: 1%{?dist} Summary: A coroutine-based Python networking library @@ -93,6 +93,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* 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) diff --git a/sources b/sources index 1018360..2812b6e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-20.6.0.tar.gz) = 28ee030934d3c379577c9f86b76838e5d76c7ea7c0880cdeac9dc5ead497ae0600fb02b2984c7312fd42319142200c674b75da2e93b58fd4a99882d601a95108 +SHA512 (gevent-20.6.1.tar.gz) = b7ceb5251b01972a11e3d51e1ebcaaca7c08d36b6ba7b138bee57f0d5da4553539a0ad538e8a433321bdac396788acbfb0ac294191e829df3f066d00816310bb From 444b6c612a235f9c8b230f80e64af7419b40ae62 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jul 2020 01:16:54 +0000 Subject: [PATCH 062/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_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 6dead35..63566dc 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 20.6.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -93,6 +93,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* 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 From 26c4f8eb2af8555a19ffe5263c0a668e59ddc6ae Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 5 Oct 2020 19:19:41 -0600 Subject: [PATCH 063/103] BR python3-setuptools --- python-gevent.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-gevent.spec b/python-gevent.spec index 63566dc..c1744cf 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 20.6.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -35,6 +35,7 @@ Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-Cython BuildRequires: python3-greenlet-devel >= 0.4.16 +BuildRequires: python3-setuptools # For tests BuildRequires: python3-dns BuildRequires: python3-psutil @@ -93,6 +94,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* 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 From 768cc1436f4cd7a70c0daab69f4382c55bea185a Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Mon, 16 Nov 2020 10:11:46 +0000 Subject: [PATCH 064/103] Bump to 20.9.0 --- .gitignore | 1 + python-gevent.spec | 11 +++++++---- sources | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 647171a..1f05c91 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ gevent-0.13.0.tar.gz /gevent-20.5.0.tar.gz /gevent-20.6.0.tar.gz /gevent-20.6.1.tar.gz +/gevent-20.9.0.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index c1744cf..f0346a4 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,8 +3,8 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 20.6.1 -Release: 3%{?dist} +Version: 20.9.0 +Release: 1%{?dist} Summary: A coroutine-based Python networking library License: MIT @@ -34,13 +34,13 @@ Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel BuildRequires: python3-Cython -BuildRequires: python3-greenlet-devel >= 0.4.16 +BuildRequires: python3-greenlet-devel >= 0.4.17 BuildRequires: python3-setuptools # For tests BuildRequires: python3-dns BuildRequires: python3-psutil BuildRequires: python3-zope-interface -Requires: python3-greenlet >= 0.4.16 +Requires: python3-greenlet >= 0.4.17 %description -n python3-%{modname} gevent is a coroutine-based Python networking library that uses greenlet to @@ -94,6 +94,9 @@ cd src/gevent/tests && GEVENT_FILE=thread %__python3 -mgevent.tests test__*subpr %{python3_sitearch}/%{modname}* %changelog +* 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 diff --git a/sources b/sources index 2812b6e..fdb00ce 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-20.6.1.tar.gz) = b7ceb5251b01972a11e3d51e1ebcaaca7c08d36b6ba7b138bee57f0d5da4553539a0ad538e8a433321bdac396788acbfb0ac294191e829df3f066d00816310bb +SHA512 (gevent-20.9.0.tar.gz) = 966efc945b623df2521fffadca3b7e56cae1efe6de904a724765e0593389e8b1305094baa6fbc9f4fa376b1157d0f230b01e2a90de21e4b9650614363edec9f4 From a3f3d5013c76f2b2562aaf8465cef00bbb1edfe5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 27 Jan 2021 10:52:50 +0000 Subject: [PATCH 065/103] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_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 f0346a4..95766bf 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -4,7 +4,7 @@ Name: python-%{modname} Version: 20.9.0 -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 +* 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 From 6043e845b6b68fa26e56de4f75e02d2b8cc48699 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Mon, 26 Apr 2021 20:12:35 +1000 Subject: [PATCH 066/103] update to 21.1.2 --- .gitignore | 1 + python-gevent.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1f05c91..aba8dfa 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ gevent-0.13.0.tar.gz /gevent-20.6.0.tar.gz /gevent-20.6.1.tar.gz /gevent-20.9.0.tar.gz +/gevent-21.1.2.tar.gz diff --git a/python-gevent.spec b/python-gevent.spec index 95766bf..e6d349e 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -3,8 +3,8 @@ %global optflags %(echo %{optflags} -I%{_includedir}/libev) Name: python-%{modname} -Version: 20.9.0 -Release: 2%{?dist} +Version: 21.1.2 +Release: 1%{?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 +* 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 diff --git a/sources b/sources index fdb00ce..b852880 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gevent-20.9.0.tar.gz) = 966efc945b623df2521fffadca3b7e56cae1efe6de904a724765e0593389e8b1305094baa6fbc9f4fa376b1157d0f230b01e2a90de21e4b9650614363edec9f4 +SHA512 (gevent-21.1.2.tar.gz) = 1ee2b748a97fa40f67ad2c3b83c6b9f48dbfaae9f2b4f1c118919cfd642c1ca27de0e33a00d950f003f90131354b56a4868ce3051864dbe2ea9b7f22eeafc1eb From 266acc343d71bcadbd847f7b2960ec1dc58f13e4 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 4 Jun 2021 12:51:27 +0200 Subject: [PATCH 067/103] 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 068/103] - 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 069/103] - 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 070/103] 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 071/103] 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 072/103] 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 073/103] 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 074/103] 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 075/103] 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 076/103] 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 077/103] 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 078/103] 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 079/103] 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 080/103] 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 081/103] 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 082/103] 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 083/103] 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 084/103] 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 085/103] 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 086/103] 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 087/103] 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 088/103] 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 089/103] 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 090/103] 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 091/103] 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 092/103] 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 093/103] 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 094/103] 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 095/103] 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 096/103] 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 097/103] 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 098/103] 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 099/103] 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 100/103] 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 101/103] 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 102/103] 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 103/103] 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