forked from pool/python-gevent
- Version update to 1.4.0:
* generate with cython 0.29 * Refactored the gevent test runner and test suite to make them more reusable. In particular, the tests are now run with python -m gevent.tests. See issue #1293. * Formatting run info no longer includes gevent.local.local objects that have no value in the greenlet. See issue #1275. * Fixed negative length in pywsgi’s Input read functions for non chunked body. Reported in issue #1274 by tzickel. * Fix opening files in text mode in CPython 2 on Windows by patching libuv. See issue #1282 reported by wiggin15. * gevent now depends on greenlet 0.4.14 or above. * gevent.local.local subclasses correctly supports @staticmethod functions. Reported by Brendan Powers in issue #1266. - Do NOT bundle c-ares and libev OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gevent?expand=0&rev=47
This commit is contained in:
committed by
Git OBS Bridge
parent
e80cbd7b3b
commit
fb0d68427e
163
0001-always-obey-GEVENT_NO_CFFI_BUILD.patch
Normal file
163
0001-always-obey-GEVENT_NO_CFFI_BUILD.patch
Normal file
@@ -0,0 +1,163 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang='en'>
|
||||
<head>
|
||||
<title>0001-always-obey-GEVENT_NO_CFFI_BUILD.patch - rpms/python-gevent.git - python-gevent</title>
|
||||
<meta name='generator' content='cgit v1.1'/>
|
||||
<meta name='robots' content='index, nofollow'/>
|
||||
<link rel='stylesheet' type='text/css' href='/cgit-data/cgit.css'/>
|
||||
<link rel='shortcut icon' href='/favicon.ico'/>
|
||||
<link rel='alternate' title='Atom feed' href='http://src.fedoraproject.org/cgit/rpms/python-gevent.git/atom/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch?h=master' type='application/atom+xml'/>
|
||||
<link rel='vcs-git' href='https://src.fedoraproject.org/git/rpms/python-gevent.git' title='rpms/python-gevent.git Git repository'/>
|
||||
</head>
|
||||
<body>
|
||||
<script src="https://apps.fedoraproject.org/fedmenu/js/jquery-1.11.2.min.js"></script>
|
||||
<script src="https://apps.fedoraproject.org/fedmenu/js/fedmenu.js"></script>
|
||||
|
||||
<script>
|
||||
var base = 'https://apps.fedoraproject.org/';
|
||||
var tokens = window.location.href.split('/');
|
||||
var repo = null;
|
||||
if (tokens.length > 5 && tokens[4] == 'rpms' && tokens[5] != '') {
|
||||
repo = tokens[5].split('.')[0];
|
||||
}
|
||||
fedmenu({
|
||||
'url': base + 'js/data.js',
|
||||
'mimeType': 'application/javascript',
|
||||
'position': 'bottom-right',
|
||||
'package': repo,
|
||||
});
|
||||
</script>
|
||||
<div id='cgit'><table id='header'>
|
||||
<tr>
|
||||
<td class='logo' rowspan='2'><a href='/cgit/'><img src='/cgit-data/cgit.png' alt='cgit logo'/></a></td>
|
||||
<td class='main'><a href='/cgit/'>index</a> : <a title='rpms/python-gevent.git' href='/cgit/rpms/python-gevent.git/'>rpms/python-gevent.git</a></td><td class='form'><form method='get'>
|
||||
<select name='h' onchange='this.form.submit();'>
|
||||
<option value='el5'>el5</option>
|
||||
<option value='el6'>el6</option>
|
||||
<option value='epel7'>epel7</option>
|
||||
<option value='f12'>f12</option>
|
||||
<option value='f13'>f13</option>
|
||||
<option value='f14'>f14</option>
|
||||
<option value='f15'>f15</option>
|
||||
<option value='f16'>f16</option>
|
||||
<option value='f17'>f17</option>
|
||||
<option value='f18'>f18</option>
|
||||
<option value='f19'>f19</option>
|
||||
<option value='f20'>f20</option>
|
||||
<option value='f21'>f21</option>
|
||||
<option value='f22'>f22</option>
|
||||
<option value='f23'>f23</option>
|
||||
<option value='f24'>f24</option>
|
||||
<option value='f25'>f25</option>
|
||||
<option value='f26'>f26</option>
|
||||
<option value='f27'>f27</option>
|
||||
<option value='f28'>f28</option>
|
||||
<option value='f29'>f29</option>
|
||||
<option value='master' selected='selected'>master</option>
|
||||
</select> <input type='submit' value='switch'/></form></td></tr>
|
||||
<tr><td class='sub'>python-gevent</td><td class='sub right'>Jesse Keating</td></tr></table>
|
||||
<table class='tabs'><tr><td>
|
||||
<a href='/cgit/rpms/python-gevent.git/'>summary</a><a href='/cgit/rpms/python-gevent.git/refs/'>refs</a><a href='/cgit/rpms/python-gevent.git/log/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch'>log</a><a class='active' href='/cgit/rpms/python-gevent.git/tree/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch'>tree</a><a href='/cgit/rpms/python-gevent.git/commit/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch'>commit</a><a href='/cgit/rpms/python-gevent.git/diff/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch'>diff</a><a href='/cgit/rpms/python-gevent.git/stats/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch'>stats</a></td><td class='form'><form class='right' method='get' action='/cgit/rpms/python-gevent.git/log/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch'>
|
||||
<select name='qt'>
|
||||
<option value='grep'>log msg</option>
|
||||
<option value='author'>author</option>
|
||||
<option value='committer'>committer</option>
|
||||
<option value='range'>range</option>
|
||||
</select>
|
||||
<input class='txt' type='text' size='10' name='q' value=''/>
|
||||
<input type='submit' value='search'/>
|
||||
</form>
|
||||
</td></tr></table>
|
||||
<div class='path'>path: <a href='/cgit/rpms/python-gevent.git/tree/'>root</a>/<a href='/cgit/rpms/python-gevent.git/tree/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch'>0001-always-obey-GEVENT_NO_CFFI_BUILD.patch</a></div><div class='content'>blob: 7f768eca75310bd7119bc30a1770296e9f6dbba1 (<a href='/cgit/rpms/python-gevent.git/plain/0001-always-obey-GEVENT_NO_CFFI_BUILD.patch'>plain</a>)
|
||||
<table summary='blob content' class='blob'>
|
||||
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
|
||||
<a id='n2' href='#n2'>2</a>
|
||||
<a id='n3' href='#n3'>3</a>
|
||||
<a id='n4' href='#n4'>4</a>
|
||||
<a id='n5' href='#n5'>5</a>
|
||||
<a id='n6' href='#n6'>6</a>
|
||||
<a id='n7' href='#n7'>7</a>
|
||||
<a id='n8' href='#n8'>8</a>
|
||||
<a id='n9' href='#n9'>9</a>
|
||||
<a id='n10' href='#n10'>10</a>
|
||||
<a id='n11' href='#n11'>11</a>
|
||||
<a id='n12' href='#n12'>12</a>
|
||||
<a id='n13' href='#n13'>13</a>
|
||||
<a id='n14' href='#n14'>14</a>
|
||||
<a id='n15' href='#n15'>15</a>
|
||||
<a id='n16' href='#n16'>16</a>
|
||||
<a id='n17' href='#n17'>17</a>
|
||||
<a id='n18' href='#n18'>18</a>
|
||||
<a id='n19' href='#n19'>19</a>
|
||||
<a id='n20' href='#n20'>20</a>
|
||||
<a id='n21' href='#n21'>21</a>
|
||||
<a id='n22' href='#n22'>22</a>
|
||||
<a id='n23' href='#n23'>23</a>
|
||||
<a id='n24' href='#n24'>24</a>
|
||||
<a id='n25' href='#n25'>25</a>
|
||||
<a id='n26' href='#n26'>26</a>
|
||||
<a id='n27' href='#n27'>27</a>
|
||||
<a id='n28' href='#n28'>28</a>
|
||||
<a id='n29' href='#n29'>29</a>
|
||||
<a id='n30' href='#n30'>30</a>
|
||||
<a id='n31' href='#n31'>31</a>
|
||||
<a id='n32' href='#n32'>32</a>
|
||||
<a id='n33' href='#n33'>33</a>
|
||||
<a id='n34' href='#n34'>34</a>
|
||||
<a id='n35' href='#n35'>35</a>
|
||||
<a id='n36' href='#n36'>36</a>
|
||||
<a id='n37' href='#n37'>37</a>
|
||||
<a id='n38' href='#n38'>38</a>
|
||||
<a id='n39' href='#n39'>39</a>
|
||||
<a id='n40' href='#n40'>40</a>
|
||||
<a id='n41' href='#n41'>41</a>
|
||||
<a id='n42' href='#n42'>42</a>
|
||||
</pre></td>
|
||||
<td class='lines'><pre><code>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.
|
||||
<span class="hl kwb">---</span>
|
||||
setup.py | 11 ++++++-----
|
||||
1 file changed, 6 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 9c229ad..ea4dcaf 100755
|
||||
<span class="hl kwb">--- a/setup.py</span>
|
||||
<span class="hl kwa">+++ b/setup.py</span>
|
||||
<span class="hl kwd">@@ -90,16 +90,17 @@</span>
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
<span class="hl kwb">- if IGNORE_CFFI and not PYPY:</span>
|
||||
<span class="hl kwb">- # Allow distributors to turn off CFFI builds</span>
|
||||
<span class="hl kwb">- # even if it's available, because CFFI always embeds</span>
|
||||
<span class="hl kwb">- # our copy of libev and they may not want that.</span>
|
||||
<span class="hl kwb">- del cffi_modules[:]</span>
|
||||
# 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')
|
||||
<span class="hl kwa">+ pass</span>
|
||||
|
||||
<span class="hl kwa">+if IGNORE_CFFI and not PYPY:</span>
|
||||
<span class="hl kwa">+ # Allow distributors to turn off CFFI builds</span>
|
||||
<span class="hl kwa">+ # even if it's available, because CFFI always embeds</span>
|
||||
<span class="hl kwa">+ # our copy of libev and they may not want that.</span>
|
||||
<span class="hl kwa">+ del cffi_modules[:]</span>
|
||||
|
||||
# If we are running info / help commands, or we're being imported by
|
||||
# tools like pyroma, we don't need to build anything
|
||||
<span class="hl kwb">-- </span>
|
||||
2.9.4
|
||||
|
||||
</code></pre></td></tr></table>
|
||||
</div> <!-- class=content -->
|
||||
<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit v1.1</a> at 2019-01-31 09:49:21 +0000</div>
|
||||
</div> <!-- id=cgit -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7f15861f3cc92f49663ca88c4774d26d8044783a65fbc28071a2bd1c7bf36ff0
|
||||
size 4609085
|
||||
3
gevent-1.4.0.tar.gz
Normal file
3
gevent-1.4.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1eb7fa3b9bd9174dfe9c3b59b7a09b768ecd496debfc4976a9530a3e15c990d1
|
||||
size 5169595
|
||||
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 31 09:42:44 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Version update to 1.4.0:
|
||||
* generate with cython 0.29
|
||||
* Refactored the gevent test runner and test suite to make them more reusable. In particular, the tests are now run with python -m gevent.tests. See issue #1293.
|
||||
* Formatting run info no longer includes gevent.local.local objects that have no value in the greenlet. See issue #1275.
|
||||
* Fixed negative length in pywsgi’s Input read functions for non chunked body. Reported in issue #1274 by tzickel.
|
||||
* Fix opening files in text mode in CPython 2 on Windows by patching libuv. See issue #1282 reported by wiggin15.
|
||||
* gevent now depends on greenlet 0.4.14 or above.
|
||||
* gevent.local.local subclasses correctly supports @staticmethod functions. Reported by Brendan Powers in issue #1266.
|
||||
- Do NOT bundle c-ares and libev
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 9 08:26:33 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -17,10 +17,8 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Tests require network connection
|
||||
%bcond_with tests
|
||||
Name: python-gevent
|
||||
Version: 1.3.5
|
||||
Version: 1.4.0
|
||||
Release: 0
|
||||
Summary: Python network library that uses greenlet and libevent
|
||||
License: MIT
|
||||
@@ -28,17 +26,20 @@ Group: Development/Languages/Python
|
||||
URL: http://www.gevent.org/
|
||||
Source: https://files.pythonhosted.org/packages/source/g/gevent/gevent-%{version}.tar.gz
|
||||
Source100: %{name}-rpmlintrc
|
||||
Patch0: 0001-always-obey-GEVENT_NO_CFFI_BUILD.patch
|
||||
BuildRequires: %{python_module cffi}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module greenlet}
|
||||
BuildRequires: %{python_module greenlet >= 0.4.14}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module objgraph}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: c-ares-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libev-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-testsuite
|
||||
Requires: python-cffi
|
||||
Requires: python-greenlet
|
||||
%if %{with tests}
|
||||
BuildRequires: %{python_module nose}
|
||||
%endif
|
||||
%if 0%{?suse_version} || 0%{?fedora_version} || 0%{?rhel} >= 8
|
||||
Recommends: python-psutil
|
||||
%else
|
||||
@@ -73,21 +74,25 @@ Documentation and examples for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n gevent-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
export LIBEV_EMBED=0
|
||||
export CARES_EMBED=0
|
||||
export GEVENT_NO_CFFI_BUILD=1
|
||||
%python_build
|
||||
|
||||
%install
|
||||
export LIBEV_EMBED=0
|
||||
export CARES_EMBED=0
|
||||
export GEVENT_NO_CFFI_BUILD=1
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
pushd src/greentest
|
||||
# tests passed as 20 need network connection with no way to skip
|
||||
export GEVENT_RESOLVER=thread
|
||||
%python_exec testrunner.py --config known_failures.py
|
||||
popd
|
||||
%endif
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m gevent.tests || :
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS README.rst TODO CHANGES.rst CONTRIBUTING.rst
|
||||
|
||||
Reference in New Issue
Block a user