Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-aiohttp-socks for openSUSE:Factory checked in at 2023-09-20 13:26:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-aiohttp-socks (Old) and /work/SRC/openSUSE:Factory/.python-aiohttp-socks.new.16627 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-aiohttp-socks" Wed Sep 20 13:26:41 2023 rev:8 rq:1111942 version:0.8.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-aiohttp-socks/python-aiohttp-socks.changes 2023-07-05 15:31:46.358997943 +0200 +++ /work/SRC/openSUSE:Factory/.python-aiohttp-socks.new.16627/python-aiohttp-socks.changes 2023-09-20 13:28:23.320923800 +0200 @@ -1,0 +2,6 @@ +Mon Sep 18 10:18:43 UTC 2023 - Jiri Slaby <jsl...@suse.cz> + +- update to 0.8.3: + * fixes for https://github.com/romis2012/aiohttp-socks/issues/27 + +------------------------------------------------------------------- Old: ---- aiohttp_socks-0.8.0.tar.gz New: ---- aiohttp_socks-0.8.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-aiohttp-socks.spec ++++++ --- /var/tmp/diff_new_pack.61RkDn/_old 2023-09-20 13:28:25.300994737 +0200 +++ /var/tmp/diff_new_pack.61RkDn/_new 2023-09-20 13:28:25.312995167 +0200 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-aiohttp-socks -Version: 0.8.0 +Version: 0.8.3 Release: 0 Summary: SOCKS proxy connector for aiohttp License: Apache-2.0 ++++++ aiohttp_socks-0.8.0.tar.gz -> aiohttp_socks-0.8.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aiohttp_socks-0.8.0/PKG-INFO new/aiohttp_socks-0.8.3/PKG-INFO --- old/aiohttp_socks-0.8.0/PKG-INFO 2023-02-21 09:16:56.000000000 +0100 +++ new/aiohttp_socks-0.8.3/PKG-INFO 2023-09-06 10:36:36.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: aiohttp_socks -Version: 0.8.0 +Version: 0.8.3 Summary: Proxy connector for aiohttp Home-page: https://github.com/romis2012/aiohttp-socks Author: Roman Snegirev diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aiohttp_socks-0.8.0/aiohttp_socks/__init__.py new/aiohttp_socks-0.8.3/aiohttp_socks/__init__.py --- old/aiohttp_socks-0.8.0/aiohttp_socks/__init__.py 2023-02-21 08:42:16.000000000 +0100 +++ new/aiohttp_socks-0.8.3/aiohttp_socks/__init__.py 2023-09-06 10:27:32.000000000 +0200 @@ -1,5 +1,5 @@ __title__ = 'aiohttp-socks' -__version__ = '0.8.0' +__version__ = '0.8.3' from python_socks import ( ProxyError, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aiohttp_socks-0.8.0/aiohttp_socks/connector.py new/aiohttp_socks-0.8.3/aiohttp_socks/connector.py --- old/aiohttp_socks-0.8.0/aiohttp_socks/connector.py 2023-02-21 08:38:04.000000000 +0100 +++ new/aiohttp_socks-0.8.3/aiohttp_socks/connector.py 2023-09-06 10:25:58.000000000 +0200 @@ -1,7 +1,7 @@ import socket import typing from typing import Iterable -from asyncio import BaseTransport +from asyncio import BaseTransport, StreamWriter from aiohttp import TCPConnector from aiohttp.abc import AbstractResolver @@ -28,6 +28,21 @@ pass # pragma: no cover +class RepairedStreamWriter(StreamWriter): + def __del__(self): + pass + + +def patch_stream(stream): + """ + Fix issue https://github.com/romis2012/aiohttp-socks/issues/27 + """ + stream.writer.__class__ = RepairedStreamWriter + while hasattr(stream, '_inner'): + stream = stream._inner # noqa + stream.writer.__class__ = RepairedStreamWriter + + class ProxyConnector(TCPConnector): def __init__( self, @@ -82,6 +97,8 @@ transport.set_protocol(protocol) protocol.connection_made(transport) + patch_stream(stream) + return transport, protocol @classmethod @@ -148,6 +165,8 @@ transport.set_protocol(protocol) protocol.connection_made(transport) + patch_stream(stream) + return transport, protocol @classmethod diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aiohttp_socks-0.8.0/aiohttp_socks.egg-info/PKG-INFO new/aiohttp_socks-0.8.3/aiohttp_socks.egg-info/PKG-INFO --- old/aiohttp_socks-0.8.0/aiohttp_socks.egg-info/PKG-INFO 2023-02-21 09:16:56.000000000 +0100 +++ new/aiohttp_socks-0.8.3/aiohttp_socks.egg-info/PKG-INFO 2023-09-06 10:36:36.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: aiohttp-socks -Version: 0.8.0 +Version: 0.8.3 Summary: Proxy connector for aiohttp Home-page: https://github.com/romis2012/aiohttp-socks Author: Roman Snegirev