forked from pool/python-gevent
Accepting request 671192 from home:alarrosa:branches:devel:languages:python
- Add patches to fix building the package:
* remove-testCongestion.patch to remove a test that is failing
due to a timeout
* fix-tests.patch to fix some tests
- ssl.OP_NO_COMPRESSION is set by default by ssl.
- thread_ident can be represented as a negative hex number now,
so replace the negative sign with the regex too, and not just the number.
* use-libev-cffi.patch, libev-cext seems to be broken on i586, so
use libev-cffi by default (also, the gevent documentation mentions
that upstream will make libev-cffi the default soon).
OBS-URL: https://build.opensuse.org/request/show/671192
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gevent?expand=0&rev=52
This commit is contained in:
@@ -26,12 +26,16 @@ 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: remove-testCongestion.patch
|
||||
Patch1: fix-tests.patch
|
||||
Patch2: use-libev-cffi.patch
|
||||
BuildRequires: %{python_module cffi}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module dnspython}
|
||||
BuildRequires: %{python_module greenlet >= 0.4.14}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module objgraph}
|
||||
BuildRequires: %{python_module psutil}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module zope.event}
|
||||
@@ -85,6 +89,9 @@ Documentation and examples for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n gevent-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
export LIBEV_EMBED=0
|
||||
@@ -110,6 +117,13 @@ test__getaddrinfo_import.py
|
||||
test__examples.py
|
||||
EOF
|
||||
export GEVENT_RESOLVER=thread
|
||||
# Setting the TRAVIS environment variable makes some different configuration
|
||||
# for tests that use the network so they don't fail on travis (or obs)
|
||||
export TRAVIS=1
|
||||
# Setting the APPVEYOR environment variable makes the tests use a workaround
|
||||
# for Appveyor that we also need in obs for "wait_threads() failed to cleanup 1 threads"
|
||||
export APPVEYOR=1
|
||||
export LANG=en_US.UTF-8
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m gevent.tests --ignore network_tests.txt
|
||||
|
||||
%files %{python_files}
|
||||
|
||||
Reference in New Issue
Block a user