Compare commits

...

21 Commits
master ... f36

Author SHA1 Message Date
Fedora Release Engineering 7f60bd3c51 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 12:22:16 +00:00
Fedora Release Engineering 114bdce017 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 06:33:22 +00:00
Python Maint 266acc343d Rebuilt for Python 3.10 2021-06-04 12:51:27 +02:00
Dan Callaghan 6043e845b6 update to 21.1.2 2021-04-26 20:12:35 +10:00
Fedora Release Engineering a3f3d5013c - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 10:52:50 +00:00
Fabien Boucher 768cc1436f Bump to 20.9.0 2020-12-12 18:57:01 +10:00
Orion Poplawski 26c4f8eb2a BR python3-setuptools 2020-10-05 19:19:41 -06:00
Fedora Release Engineering 444b6c612a - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 01:16:54 +00:00
Dan Callaghan 3dc393efb9 new upstream release 20.6.1 2020-06-13 16:35:18 +10:00
Orion Poplawski 1939196383 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
2020-06-06 12:31:19 -06:00
Miro Hrončok 0c1017a83c Rebuilt for Python 3.9 2020-05-24 18:34:39 +02:00
Dan Callaghan e1decccb1d new upstream release 20.5.0 2020-05-17 14:41:20 +10:00
Fedora Release Engineering 5c5f0b8169 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 12:26:49 +00:00
Robert-André Mauchin 229a023977 Update to 1.5a3 (#1705661)
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2020-01-08 21:01:33 +01:00
Miro Hrončok f5736d1243 Rebuilt for Python 3.8.0rc1 (#1748018) 2019-10-03 14:13:20 +02:00
Miro Hrončok 2500947a6a Rebuilt for Python 3.8 2019-08-18 00:38:10 +02:00
Miro Hrončok 2a87dd2f03 Subpackage python2-gevent has been removed 2019-08-12 14:09:14 +02:00
Fedora Release Engineering 60452f2fa8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 13:42:47 +00:00
Victor Stinner 9ac63267e9 Add Python 3.8 support: use CodeType.replace() if available
Backport upstream change:
806713333a

Remove also 0001-always-obey-GEVENT_NO_CFFI_BUILD.patch, the change
has bene merged into gevent 1.3:
14b28c678f
2019-06-11 17:27:20 +02:00
Miro Hrončok 1c32ec07c1 Force re-cythonizing the sources 2019-05-15 14:28:49 +02:00
Fedora Release Engineering db9cb2d1e8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 07:00:34 +00:00
4 changed files with 100 additions and 86 deletions

6
.gitignore vendored
View File

@ -19,3 +19,9 @@ 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
/gevent-20.5.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

View File

@ -1,42 +0,0 @@
From 05650624fe2524ecb1bdbbd4facc5d988275e542 Mon Sep 17 00:00:00 2001
From: Dan Callaghan <dcallagh@redhat.com>
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

View File

@ -1,19 +1,20 @@
%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: 1%{?dist}
Version: 21.1.2
Release: 4%{?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
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
@ -28,34 +29,18 @@ 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}}
BuildRequires: python3-devel
BuildRequires: python3-greenlet-devel
Requires: python3-greenlet
BuildRequires: python3-Cython
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.17
%description -n python3-%{modname}
gevent is a coroutine-based Python networking library that uses greenlet to
@ -73,7 +58,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,
@ -81,30 +66,27 @@ 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')
%build
export LIBEV_EMBED=0
export CARES_EMBED=0
export GEVENT_NO_CFFI_BUILD=1
%py2_build
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
%py2_install
export GEVENTSETUP_EMBED=0
%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}*
%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
@ -112,6 +94,74 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
%{python3_sitearch}/%{modname}*
%changelog
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 21.1.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 21.1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 21.1.2-2
- Rebuilt for Python 3.10
* Mon Apr 26 2021 Dan Callaghan <djc@djc.id.au> - 21.1.2-1
- new upstream bug fix release 21.1.2
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Nov 16 2020 Fabien Boucher <fboucher@redhat.com> - 20.9.0-1
- new upstream release 20.9.0
* Mon Oct 05 2020 Orion Poplawski <orion@nwra.com> - 20.6.1-3
- BR python3-setuptools
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sat Jun 13 2020 Dan Callaghan <djc@djc.id.au> - 20.6.1-1
- new upstream release 20.6.1
* Sat Jun 06 2020 Orion Poplawski <orion@nwra.com> - 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 <mhroncok@redhat.com> - 20.5.0-2
- Rebuilt for Python 3.9
* Sun May 17 2020 Dan Callaghan <djc@djc.id.au> - 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 <releng@fedoraproject.org> - 1.5-0.2.a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jan 08 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.5-0.1.a3
- Update to 1.5a3 (#1705661)
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.6-7
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.6-6
- Rebuilt for Python 3.8
* Mon Aug 12 2019 Miro Hrončok <mhroncok@redhat.com> - 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 <releng@fedoraproject.org> - 1.3.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Tue Jun 11 2019 Victor Stinner <vstinner@redhat.com> - 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 <releng@fedoraproject.org> - 1.3.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Sep 17 2018 Dan Callaghan <dcallagh@redhat.com> - 1.3.6-1
- Upstream bug fix release 1.3.6: http://www.gevent.org/changelog.html

View File

@ -1 +1 @@
SHA512 (gevent-1.3.6.tar.gz) = 9ad6bf8a939a3cf812fd33c9f55813c0a3ee281ccb38e42ec8c68c3fbb4ba07623d7dfb7104d3e343713ee93b4b4d7e29de06a2992b171166b003985f2b49e2a
SHA512 (gevent-21.1.2.tar.gz) = 1ee2b748a97fa40f67ad2c3b83c6b9f48dbfaae9f2b4f1c118919cfd642c1ca27de0e33a00d950f003f90131354b56a4868ce3051864dbe2ea9b7f22eeafc1eb