Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-eventlet for openSUSE:Factory checked in at 2022-12-04 14:57:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-eventlet (Old) and /work/SRC/openSUSE:Factory/.python-eventlet.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-eventlet" Sun Dec 4 14:57:40 2022 rev:44 rq:1039734 version:0.33.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-eventlet/python-eventlet.changes 2022-11-12 17:40:23.157888243 +0100 +++ /work/SRC/openSUSE:Factory/.python-eventlet.new.1835/python-eventlet.changes 2022-12-04 14:57:46.604070597 +0100 @@ -1,0 +2,9 @@ +Sat Dec 3 05:14:32 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- Update to v0.33.2 + * Stop using deprecated threading APIs + Way back in py26, snake_case alternatives were added for the old + camelCase APIs. py310 started emitting DeprecationWarnings about them; + presumably they'll look to remove the old APIs eventually. See + +------------------------------------------------------------------- Old: ---- eventlet-0.33.1.tar.gz New: ---- eventlet-0.33.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-eventlet.spec ++++++ --- /var/tmp/diff_new_pack.juWJk1/_old 2022-12-04 14:57:47.660076681 +0100 +++ /var/tmp/diff_new_pack.juWJk1/_new 2022-12-04 14:57:47.668076727 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-eventlet -Version: 0.33.1 +Version: 0.33.2 Release: 0 Summary: Concurrent networking library for Python License: MIT ++++++ eventlet-0.33.1.tar.gz -> eventlet-0.33.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventlet-0.33.1/NEWS new/eventlet-0.33.2/NEWS --- old/eventlet-0.33.1/NEWS 2022-05-13 00:10:20.000000000 +0200 +++ new/eventlet-0.33.2/NEWS 2022-11-17 18:18:48.000000000 +0100 @@ -1,3 +1,7 @@ +0.33.2 +====== +* greenio: GreenPipe/fdopen() with 'a' in mode raised io.UnsupportedOperation: File or stream is not writable https://github.com/eventlet/eventlet/pull/758 + 0.33.1 ====== * Prevent deadlock on logging._lock https://github.com/eventlet/eventlet/issues/742 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventlet-0.33.1/PKG-INFO new/eventlet-0.33.2/PKG-INFO --- old/eventlet-0.33.1/PKG-INFO 2022-05-13 00:27:29.611452800 +0200 +++ new/eventlet-0.33.2/PKG-INFO 2022-11-17 18:20:10.332933700 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: eventlet -Version: 0.33.1 +Version: 0.33.2 Summary: Highly concurrent networking library Home-page: http://eventlet.net Author: Linden Lab diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventlet-0.33.1/eventlet/__init__.py new/eventlet-0.33.2/eventlet/__init__.py --- old/eventlet-0.33.1/eventlet/__init__.py 2022-05-13 00:08:37.000000000 +0200 +++ new/eventlet-0.33.2/eventlet/__init__.py 2022-11-17 18:16:57.000000000 +0100 @@ -8,7 +8,7 @@ DeprecationWarning, ) -version_info = (0, 33, 1) +version_info = (0, 33, 2) __version__ = '.'.join(map(str, version_info)) # This is to make Debian packaging easier, it ignores import # errors of greenlet so that the packager can still at least diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventlet-0.33.1/eventlet/greenio/py3.py new/eventlet-0.33.2/eventlet/greenio/py3.py --- old/eventlet-0.33.1/eventlet/greenio/py3.py 2021-11-16 20:59:32.000000000 +0100 +++ new/eventlet-0.33.2/eventlet/greenio/py3.py 2022-07-08 00:51:28.000000000 +0200 @@ -71,7 +71,7 @@ return 'r' in self._mode or '+' in self._mode def writable(self): - return 'w' in self._mode or '+' in self._mode + return 'w' in self._mode or '+' in self._mode or 'a' in self._mode def fileno(self): return self._fileno diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventlet-0.33.1/eventlet/tpool.py new/eventlet-0.33.2/eventlet/tpool.py --- old/eventlet-0.33.1/eventlet/tpool.py 2021-11-16 20:59:32.000000000 +0100 +++ new/eventlet-0.33.2/eventlet/tpool.py 2022-07-26 22:47:13.000000000 +0200 @@ -114,7 +114,7 @@ # if already in tpool, don't recurse into the tpool # also, call functions directly if we're inside an import lock, because # if meth does any importing (sadly common), it will hang - my_thread = threading.currentThread() + my_thread = threading.current_thread() if my_thread in _threads or imp.lock_held() or _nthreads == 0: return meth(*args, **kwargs) @@ -292,7 +292,7 @@ for i in six.moves.range(_nthreads): t = threading.Thread(target=tworker, name="tpool_thread_%s" % i) - t.setDaemon(True) + t.daemon = True t.start() _threads.append(t) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventlet-0.33.1/eventlet.egg-info/PKG-INFO new/eventlet-0.33.2/eventlet.egg-info/PKG-INFO --- old/eventlet-0.33.1/eventlet.egg-info/PKG-INFO 2022-05-13 00:27:29.000000000 +0200 +++ new/eventlet-0.33.2/eventlet.egg-info/PKG-INFO 2022-11-17 18:20:09.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: eventlet -Version: 0.33.1 +Version: 0.33.2 Summary: Highly concurrent networking library Home-page: http://eventlet.net Author: Linden Lab diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventlet-0.33.1/tests/__init__.py new/eventlet-0.33.2/tests/__init__.py --- old/eventlet-0.33.1/tests/__init__.py 2021-11-16 20:59:32.000000000 +0100 +++ new/eventlet-0.33.2/tests/__init__.py 2022-06-27 04:00:44.000000000 +0200 @@ -488,3 +488,9 @@ client.close() thread.join() server_socket.close() + + +def read_file(path, mode="rb"): + with open(path, mode) as f: + result = f.read() + return result diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventlet-0.33.1/tests/greenio_test.py new/eventlet-0.33.2/tests/greenio_test.py --- old/eventlet-0.33.1/tests/greenio_test.py 2021-11-16 20:59:32.000000000 +0100 +++ new/eventlet-0.33.2/tests/greenio_test.py 2022-07-08 00:51:34.000000000 +0200 @@ -1022,3 +1022,62 @@ with w as f: assert f == w assert r.closed and w.closed + + +def test_greenpipe_write(): + expected = b"initial" + with tempfile.NamedTemporaryFile() as f: + with greenio.GreenPipe(f.name, "wb") as writer: + writer.write(expected) + + actual = tests.read_file(f.name) + assert actual == expected + + +def test_greenpipe_append(): + old_data = b"existing data..." + new_data = b"append with mode=a" + expected = old_data + new_data + with tempfile.NamedTemporaryFile() as f: + with open(f.name, "wb") as fw: + fw.write(old_data) + + with greenio.GreenPipe(f.name, "ab") as writer: + writer.write(new_data) + + actual = tests.read_file(f.name) + assert actual == expected + + +def test_greenpipe_read_overwrite(): + old_data = b"existing data..." + new_data = b"overwrite with mode=r+" + with tempfile.NamedTemporaryFile() as f: + with greenio.GreenPipe(f.name, "wb") as writer: + writer.write(old_data) + + with greenio.GreenPipe(f.name, "r+b") as writer: + writer.write(new_data) + + actual = tests.read_file(f.name) + assert actual == new_data + + +def test_greenpipe_write_plus(): + expected = "write with mode=w+" + with tempfile.NamedTemporaryFile() as f: + with greenio.GreenPipe(f.name, "w+") as writer: + writer.write(expected) + + actual = tests.read_file(f.name, mode='r') + assert actual == expected + + +def test_greenpipe_append_plus(): + expected = "append with mode=a+" + with tempfile.NamedTemporaryFile() as f: + with greenio.GreenPipe(f.name, "a+") as writer: + writer.write(expected) + + actual = tests.read_file(f.name, mode='r') + assert actual == expected