14
0

- update to 0.32.0:

* greendns: compatibility with dnspython v2
  * green.ssl: wrap_socket now accepts argument `ciphers`
  * websocket: control frames are now always uncompressed per RFC 7692
  * ssl: py3.6 using client certificates raised ValueError: check_hostname needs server_hostname argument
  * IMPORTANT: websocket: Limit maximum uncompressed frame length to 8MiB
  * wsgi: websocket ALREADY_HANDLED flag on corolocal
  * green.ssl: Set suppress_ragged_eofs default based on SSLSocket defaults
  * greenio: socket.connect_ex returned None instead of 0 on success
  * Use _imp instead of deprecated imp
- drop pr_639.patch, merged upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eventlet?expand=0&rev=82
This commit is contained in:
2021-11-07 21:14:19 +00:00
committed by Git OBS Bridge
parent f4b13e4710
commit 73a9a58573
6 changed files with 53 additions and 39 deletions

View File

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

3
eventlet-0.32.0.tar.gz Normal file
View File

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

View File

@@ -1,8 +1,8 @@
Index: eventlet-0.29.1/eventlet/support/greendns.py Index: eventlet-0.32.0/eventlet/support/greendns.py
=================================================================== ===================================================================
--- eventlet-0.29.1.orig/eventlet/support/greendns.py --- eventlet-0.32.0.orig/eventlet/support/greendns.py
+++ eventlet-0.29.1/eventlet/support/greendns.py +++ eventlet-0.32.0/eventlet/support/greendns.py
@@ -313,7 +313,7 @@ class ResolverProxy(object): @@ -325,7 +325,7 @@ class ResolverProxy(object):
self.clear() self.clear()
def clear(self): def clear(self):
@@ -11,10 +11,10 @@ Index: eventlet-0.29.1/eventlet/support/greendns.py
self._resolver.cache = dns.resolver.LRUCache() self._resolver.cache = dns.resolver.LRUCache()
def query(self, qname, rdtype=dns.rdatatype.A, rdclass=dns.rdataclass.IN, def query(self, qname, rdtype=dns.rdatatype.A, rdclass=dns.rdataclass.IN,
Index: eventlet-0.29.1/tests/greendns_test.py Index: eventlet-0.32.0/tests/greendns_test.py
=================================================================== ===================================================================
--- eventlet-0.29.1.orig/tests/greendns_test.py --- eventlet-0.32.0.orig/tests/greendns_test.py
+++ eventlet-0.29.1/tests/greendns_test.py +++ eventlet-0.32.0/tests/greendns_test.py
@@ -885,7 +885,7 @@ class TinyDNSTests(tests.LimitedTestCase @@ -885,7 +885,7 @@ class TinyDNSTests(tests.LimitedTestCase
# https://github.com/eventlet/eventlet/issues/499 # https://github.com/eventlet/eventlet/issues/499
# None means we don't want the server to find the IP # None means we don't want the server to find the IP
@@ -33,16 +33,3 @@ Index: eventlet-0.29.1/tests/greendns_test.py
resolver.nameservers = [dnsaddr[0]] resolver.nameservers = [dnsaddr[0]]
resolver.nameserver_ports[dnsaddr[0]] = dnsaddr[1] resolver.nameserver_ports[dnsaddr[0]] = dnsaddr[1]
response = resolver.query('host.example.com', 'a', tcp=True) response = resolver.query('host.example.com', 'a', tcp=True)
Index: eventlet-0.29.1/setup.py
===================================================================
--- eventlet-0.29.1.orig/setup.py
+++ eventlet-0.29.1/setup.py
@@ -15,7 +15,7 @@ setuptools.setup(
url='http://eventlet.net',
packages=setuptools.find_packages(exclude=['benchmarks', 'tests', 'tests.*']),
install_requires=(
- 'dnspython >= 1.15.0, < 2.0.0',
+ 'dnspython >= 1.15.0',
'greenlet >= 0.3',
'monotonic >= 1.4;python_version<"3.5"',
'six >= 1.10.0',

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sun Nov 7 21:12:37 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 0.32.0:
* greendns: compatibility with dnspython v2
* green.ssl: wrap_socket now accepts argument `ciphers`
* websocket: control frames are now always uncompressed per RFC 7692
* ssl: py3.6 using client certificates raised ValueError: check_hostname needs server_hostname argument
* IMPORTANT: websocket: Limit maximum uncompressed frame length to 8MiB
* wsgi: websocket ALREADY_HANDLED flag on corolocal
* green.ssl: Set suppress_ragged_eofs default based on SSLSocket defaults
* greenio: socket.connect_ex returned None instead of 0 on success
* Use _imp instead of deprecated imp
- drop pr_639.patch, merged upstream
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Mar 21 21:19:52 UTC 2021 - Ben Greiner <code@bnavigator.de> Sun Mar 21 21:19:52 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-eventlet Name: python-eventlet
Version: 0.30.2 Version: 0.32.0
Release: 0 Release: 0
Summary: Concurrent networking library for Python Summary: Concurrent networking library for Python
License: MIT License: MIT
@@ -30,8 +30,6 @@ Source: https://files.pythonhosted.org/packages/source/e/eventlet/eventl
Patch0: remove_nose.patch Patch0: remove_nose.patch
# PATCH-FIX-UPSTREAM newdnspython.patch mcepl@suse.com -- patch is from gh#rthalley/dnspython#519, discussion in gh#eventlet/eventlet#638 # PATCH-FIX-UPSTREAM newdnspython.patch mcepl@suse.com -- patch is from gh#rthalley/dnspython#519, discussion in gh#eventlet/eventlet#638
Patch1: newdnspython.patch Patch1: newdnspython.patch
# PATCH-FEATURE-UPSTREAM pr_639.patch gh#eventlet/eventlet#639 jayvdb@gmail.com
Patch2: pr_639.patch
# Really remove the dependency on nose # Really remove the dependency on nose
Patch3: remove_nose_part_2.patch Patch3: remove_nose_part_2.patch
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
@@ -46,7 +44,9 @@ BuildRequires: python-rpm-macros
BuildRequires: sysconfig-netconfig BuildRequires: sysconfig-netconfig
BuildRequires: %{python_module dnspython >= 1.15.0} BuildRequires: %{python_module dnspython >= 1.15.0}
BuildRequires: %{python_module greenlet >= 0.3} BuildRequires: %{python_module greenlet >= 0.3}
%if 0%{?suse_version} >= 1550
BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module pyOpenSSL}
%endif
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pyzmq} BuildRequires: %{python_module pyzmq}
BuildRequires: %{python_module six >= 1.10.0} BuildRequires: %{python_module six >= 1.10.0}

View File

@@ -1,5 +1,7 @@
--- a/setup.py Index: eventlet-0.32.0/setup.py
+++ b/setup.py ===================================================================
--- eventlet-0.32.0.orig/setup.py
+++ eventlet-0.32.0/setup.py
@@ -27,7 +27,7 @@ setuptools.setup( @@ -27,7 +27,7 @@ setuptools.setup(
'README.rst' 'README.rst'
) )
@@ -9,8 +11,10 @@
classifiers=[ classifiers=[
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
"Intended Audience :: Developers", "Intended Audience :: Developers",
--- a/eventlet.egg-info/SOURCES.txt Index: eventlet-0.32.0/eventlet.egg-info/SOURCES.txt
+++ b/eventlet.egg-info/SOURCES.txt ===================================================================
--- eventlet-0.32.0.orig/eventlet.egg-info/SOURCES.txt
+++ eventlet-0.32.0/eventlet.egg-info/SOURCES.txt
@@ -174,7 +174,6 @@ tests/greenthread_test.py @@ -174,7 +174,6 @@ tests/greenthread_test.py
tests/hub_test.py tests/hub_test.py
tests/mock.py tests/mock.py
@@ -19,15 +23,17 @@
tests/openssl_test.py tests/openssl_test.py
tests/os_test.py tests/os_test.py
tests/parse_results.py tests/parse_results.py
@@ -270,4 +269,4 @@ tests/stdlib/test_threading_local.py @@ -273,4 +272,4 @@ tests/stdlib/test_threading_local.py
tests/stdlib/test_timeout.py tests/stdlib/test_timeout.py
tests/stdlib/test_urllib.py tests/stdlib/test_urllib.py
tests/stdlib/test_urllib2.py tests/stdlib/test_urllib2.py
-tests/stdlib/test_urllib2_localnet.py -tests/stdlib/test_urllib2_localnet.py
\ No newline at end of file \ No newline at end of file
+tests/stdlib/test_urllib2_localnet.py +tests/stdlib/test_urllib2_localnet.py
--- a/tests/greenio_test.py Index: eventlet-0.32.0/tests/greenio_test.py
+++ b/tests/greenio_test.py ===================================================================
--- eventlet-0.32.0.orig/tests/greenio_test.py
+++ eventlet-0.32.0/tests/greenio_test.py
@@ -9,8 +9,6 @@ import socket as _orig_sock @@ -9,8 +9,6 @@ import socket as _orig_sock
import sys import sys
import tempfile import tempfile
@@ -57,8 +63,10 @@
def test_get_fileno_of_a_socket_works(): def test_get_fileno_of_a_socket_works():
--- a/tests/nosewrapper.py Index: eventlet-0.32.0/tests/nosewrapper.py
+++ b/tests/nosewrapper.py ===================================================================
--- eventlet-0.32.0.orig/tests/nosewrapper.py
+++ eventlet-0.32.0/tests/nosewrapper.py
@@ -1,20 +1,13 @@ @@ -1,20 +1,13 @@
""" This script simply gets the paths correct for testing eventlet with the """ This script simply gets the paths correct for testing eventlet with the
hub extension for Nose.""" hub extension for Nose."""
@@ -83,8 +91,10 @@
-launch(argv=sys.argv) -launch(argv=sys.argv)
+if __name__ == '__main__': +if __name__ == '__main__':
+ unittest.main() + unittest.main()
--- a/tests/__init__.py Index: eventlet-0.32.0/tests/__init__.py
+++ b/tests/__init__.py ===================================================================
--- eventlet-0.32.0.orig/tests/__init__.py
+++ eventlet-0.32.0/tests/__init__.py
@@ -20,7 +20,7 @@ import sys @@ -20,7 +20,7 @@ import sys
import unittest import unittest
import warnings import warnings
@@ -102,8 +112,10 @@
raise SkipTest('CPU usage testing not supported (`import resource` failed)') raise SkipTest('CPU usage testing not supported (`import resource` failed)')
r1 = resource.getrusage(resource.RUSAGE_SELF) r1 = resource.getrusage(resource.RUSAGE_SELF)
--- a/tests/dagpool_test.py Index: eventlet-0.32.0/tests/dagpool_test.py
+++ b/tests/dagpool_test.py ===================================================================
--- eventlet-0.32.0.orig/tests/dagpool_test.py
+++ eventlet-0.32.0/tests/dagpool_test.py
@@ -5,7 +5,6 @@ @@ -5,7 +5,6 @@
@brief Test DAGPool class @brief Test DAGPool class
""" """