Compare commits
No commits in common. "rawhide" and "f31" have entirely different histories.
4 changed files with 219 additions and 50 deletions
16
.gitignore
vendored
16
.gitignore
vendored
|
|
@ -19,19 +19,3 @@ 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
|
||||
/gevent-21.12.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
|
||||
/gevent-24.10.1.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
|
||||
|
|
|
|||
26
0001-code-replace.patch
Normal file
26
0001-code-replace.patch
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
commit 1b84da94c2aa2d171881482c22298ad189b79764
|
||||
Author: Victor Stinner <vstinner@redhat.com>
|
||||
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,
|
||||
|
|
@ -3,20 +3,27 @@
|
|||
%global optflags %(echo %{optflags} -I%{_includedir}/libev)
|
||||
|
||||
Name: python-%{modname}
|
||||
Version: 26.7.0
|
||||
Release: %autorelease
|
||||
Version: 1.3.6
|
||||
Release: 5%{?dist}
|
||||
Summary: A coroutine-based Python networking library
|
||||
|
||||
License: MIT
|
||||
URL: http://www.gevent.org/
|
||||
Source0: %{pypi_source %{modname} %{version} tar.gz}
|
||||
Source0: https://files.pythonhosted.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc
|
||||
# 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
|
||||
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
|
||||
|
|
@ -28,12 +35,16 @@ Features include:
|
|||
|
||||
%package -n python3-%{modname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{modname}}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-greenlet-devel >= 3.2.2
|
||||
BuildRequires: python3-zope-event
|
||||
BuildRequires: python3-Cython
|
||||
BuildRequires: python3-greenlet-devel
|
||||
Requires: python3-greenlet
|
||||
|
||||
%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
|
||||
|
|
@ -43,48 +54,196 @@ 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}-%{version}
|
||||
%autosetup -p1 -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')
|
||||
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
|
||||
# Force re-cythonizing the sources
|
||||
rm src/gevent/*.c src/gevent/libev/_*.c
|
||||
|
||||
%build
|
||||
export GEVENTSETUP_EMBED=0
|
||||
%pyproject_wheel
|
||||
export LIBEV_EMBED=0
|
||||
export CARES_EMBED=0
|
||||
export GEVENT_NO_CFFI_BUILD=1
|
||||
# Build Python 3 first to use Python 3 Cython
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
export GEVENTSETUP_EMBED=0
|
||||
%pyproject_install
|
||||
export LIBEV_EMBED=0
|
||||
export CARES_EMBED=0
|
||||
export GEVENT_NO_CFFI_BUILD=1
|
||||
%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 {} ';'
|
||||
%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
|
||||
%{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} -f %{pyproject_files}
|
||||
%files -n python3-%{modname}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python3_sitearch}/%{modname}*
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
* 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
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.4-2
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Tue Jun 26 2018 Dan Callaghan <dcallagh@redhat.com> - 1.3.4-1
|
||||
- Update to 1.3.4 (RHBZ#1593266)
|
||||
|
||||
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.3-2
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Wed Jun 13 2018 Dan Callaghan <dcallagh@redhat.com> - 1.3.3-1
|
||||
- Update to 1.3.3 (RHBZ#1589102)
|
||||
|
||||
* Mon Jun 04 2018 Dan Callaghan <dcallagh@redhat.com> - 1.3.2-1
|
||||
- Update to 1.3.2 (RHBZ#1583647)
|
||||
|
||||
* Tue May 29 2018 Dan Callaghan <dcallagh@redhat.com> - 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 <releng@fedoraproject.org> - 1.2.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Aug 09 2017 Dan Callaghan <dcallagh@redhat.com> - 1.2.2-1
|
||||
- Update to 1.2.2 (RHBZ#1389634)
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-2
|
||||
- Rebuild for Python 3.6
|
||||
|
||||
* Sun Jul 24 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.1.2-1
|
||||
- Update to 1.1.2 (RHBZ #1359455)
|
||||
|
||||
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
|
||||
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||
|
||||
* Tue Apr 05 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.1.1-1
|
||||
- Update to 1.1.1 (RHBZ #1323855)
|
||||
|
||||
* Tue Mar 15 2016 Dan Callaghan <dcallagh@redhat.com> - 1.1.0-1
|
||||
- Update to 1.1.0 final release
|
||||
|
||||
* Wed Feb 17 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.1-0.8.rc4
|
||||
- Update to 1.1rc4 (RHBZ #1309141)
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-0.7.rc3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Jan 20 2016 Dan Callaghan <dcallagh@redhat.com> - 1.1-0.6.rc3
|
||||
- Update to 1.1rc3
|
||||
|
||||
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-0.5.b6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
||||
|
||||
* Sat Oct 24 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1-0.4.b6
|
||||
- Fix description in spec
|
||||
|
||||
* Sun Oct 18 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1-0.3.b6
|
||||
- Update to 1.1b6 (RHBZ #1272717)
|
||||
|
||||
* Tue Oct 06 2015 Orion Poplawski <orion@cora.nwra.com> - 1.1-0.2.b5
|
||||
- Drop use of unneeded %%{py3dir}
|
||||
|
||||
* Mon Oct 05 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 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 <dcallagh@redhat.com> - 1.0.2-2
|
||||
- removed version requirement for greenlet
|
||||
|
||||
* Mon Jun 22 2015 Dan Callaghan <dcallagh@redhat.com> - 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 <rel-eng@lists.fedoraproject.org> - 1.0.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Fri Aug 15 2014 Orion Poplawski <orion@cora.nwra.com> - 1.0.1-1
|
||||
- Update to 1.0.1
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Wed Jan 22 2014 Orion Poplawski <orion@cora.nwra.com> - 1.0-1
|
||||
- Update to 1.0
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.8-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.8-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Thu Dec 27 2012 Silas Sewell <silas@sewell.org> - 0.13.8-1
|
||||
- Update to 0.13.8
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.6-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.6-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Sun Jul 24 2011 Silas Sewell <silas@sewell.org> - 0.13.6-1
|
||||
- Update to 0.13.6
|
||||
|
||||
* Wed Feb 16 2011 Silas Sewell <silas@sewell.ch> - 0.13.3-1
|
||||
- Update to 0.13.3
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Sat Oct 09 2010 Silas Sewell <silas@sewell.ch> - 0.13.1-1
|
||||
- Update to 0.13.1
|
||||
|
||||
* Tue Jul 27 2010 David Malcolm <dmalcolm@redhat.com> - 0.13.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||
|
||||
* Wed Jul 14 2010 Silas Sewell <silas@sewell.ch> - 0.13.0-1
|
||||
- Update to 0.13.0
|
||||
|
||||
* Fri Apr 23 2010 Silas Sewell <silas@sewell.ch> - 0.12.2-2
|
||||
- Remove setuptools requirement
|
||||
|
||||
* Wed Mar 17 2010 Silas Sewell <silas@sewell.ch> - 0.12.2-1
|
||||
- Initial build
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (gevent-26.7.0.tar.gz) = 70e7a21874c77990884e46a5e849ee4e065c4b918544bf8a11f665412d101a94c81bae713c7202ebbe81fd5439e57248b23f098aec7b16b6f05d99ce1a6ec4a8
|
||||
SHA512 (gevent-1.3.6.tar.gz) = 9ad6bf8a939a3cf812fd33c9f55813c0a3ee281ccb38e42ec8c68c3fbb4ba07623d7dfb7104d3e343713ee93b4b4d7e29de06a2992b171166b003985f2b49e2a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue