15
0
forked from pool/python-gevent

Accepting request 670298 from devel:languages:python

- 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/request/show/670298
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gevent?expand=0&rev=27
This commit is contained in:
Stephan Kulow
2019-02-02 20:45:46 +00:00
committed by Git OBS Bridge
4 changed files with 31 additions and 15 deletions

View File

@@ -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
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1eb7fa3b9bd9174dfe9c3b59b7a09b768ecd496debfc4976a9530a3e15c990d1
size 5169595

View File

@@ -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 pywsgis 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>

View File

@@ -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
@@ -30,15 +28,17 @@ Source: https://files.pythonhosted.org/packages/source/g/gevent/gevent-%
Source100: %{name}-rpmlintrc
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
@@ -75,19 +75,22 @@ Documentation and examples for %{name}.
%setup -q -n gevent-%{version}
%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