14
0

Accepting request 854114 from home:bnavigator:branches:devel:languages:python

- Update to 0.29.1
  * patcher: [py27] recursion error in pytest/python2.7 installing 
    register_at_fork
  * patcher: monkey_patch(builtins=True) failed on py3 because 
    `file` class is gone
  * don't crash on PyPy 7.0.0   
  * Only install monotonic on python2 
- Changes for 0.29.0
  * ssl: context wrapped listener fails accept()
- Changes for 0.28.1
  * Clean up TypeError in __del__
- Changes for 0.28.0
  * Always remove the right listener from the hub 
    gh#enventlet/eventlet#645
- Changes for 0.27.0
  * patcher: Clean up threading book-keeping at fork when
    monkey-patched
  * backdoor: handle disconnects better
- Fix test skips for non-default python 3.6 flavor
  gh#openSUSE/python-rpm-macros#66
- refresh newdnspython.patch

OBS-URL: https://build.opensuse.org/request/show/854114
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eventlet?expand=0&rev=76
This commit is contained in:
2020-12-08 23:59:29 +00:00
committed by Git OBS Bridge
parent 0ee97b01f3
commit c158895f58
5 changed files with 55 additions and 18 deletions

View File

@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-eventlet
Version: 0.26.1
Version: 0.29.1
Release: 0
Summary: Concurrent networking library for Python
License: MIT
@@ -37,13 +37,15 @@ Patch2: pr_639.patch
Patch3: remove_nose_part_2.patch
BuildRequires: %{python_module dnspython >= 1.15.0}
BuildRequires: %{python_module greenlet >= 0.3}
BuildRequires: %{python_module monotonic >= 1.4}
BuildRequires: %{python_module pyOpenSSL}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pyzmq}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.10.0}
BuildRequires: %{python_module testsuite}
%if 0%{?have_python2} && ! 0%{?skip_python2}
BuildRequires: python2-monotonic >= 1.4
%endif
BuildRequires: fdupes
BuildRequires: netcfg
BuildRequires: python-rpm-macros
@@ -53,7 +55,9 @@ BuildRequires: sysconfig-netconfig
Requires: netcfg
Requires: python-dnspython >= 1.15.0
Requires: python-greenlet >= 0.3
%ifpython2
Requires: python-monotonic >= 1.4
%endif
Requires: python-six >= 1.10.0
BuildArch: noarch
%python_subpackages
@@ -85,25 +89,27 @@ sed -i "/assert num_readers/ i \ return" tests/__init__.py
%check
# python2 is required to build for Leap, but tests fail (even upstream)
python2_skipall='--collect-only'
python2_pytest_param='--collect-only'
# dnspython 1 and 2: backdoor tests fail with "take too long"
skiptests="(BackdoorTest and test_server)"
# fail only with dnspython 2:
skiptests+=" or test_dns_methods_are_green or test_noraise_dns_tcp"
# Unknown openSUSE 15.x specific errors
# Unknown Python 3.6 specific errors
# TypeError: _wrap_socket() argument 1 must be _socket.socket, not SSLSocket
# https://github.com/rthalley/dnspython/issues/559#issuecomment-675274960
python36_skiptests+=" or test_connect_ssl or test_ssl_sending_messages or test_wrap_ssl"
python36_skiptests+=" or ssl_test or wsgi_test"
%if %python3_version_nodots == 36
skiptests+=" or test_connect_ssl or test_ssl_sending_messages or test_wrap_ssl"
skiptests+=" or ssl_test or wsgi_test"
python3_skiptests+="$python36_skiptests"
%endif
# no subdir recursion https://github.com/eventlet/eventlet/issues/638#issuecomment-676085599
%pytest -o norecursedirs="tests/*" -k "not ($skiptests)" ${$python_skipall}
%pytest -o norecursedirs="tests/*" -k "not ($skiptests ${$python_skiptests})" ${$python_pytest_param}
%files %{python_files}
%license LICENSE
%doc AUTHORS NEWS README.rst
%{python_sitelib}/*
%{python_sitelib}/eventlet
%{python_sitelib}/eventlet-%{version}*-info
%changelog