Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-remoto for openSUSE:Factory 
checked in at 2022-04-10 19:05:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-remoto (Old)
 and      /work/SRC/openSUSE:Factory/.python-remoto.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-remoto"

Sun Apr 10 19:05:29 2022 rev:9 rq:967919 version:1.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-remoto/python-remoto.changes      
2021-05-19 17:49:05.045609121 +0200
+++ /work/SRC/openSUSE:Factory/.python-remoto.new.1900/python-remoto.changes    
2022-04-10 19:05:44.254278320 +0200
@@ -1,0 +2,10 @@
+Fri Apr  8 09:21:48 UTC 2022 - pgaj...@suse.com
+
+- version update to 1.2.1
+  * Prevent deadlock situations by avoiding stderr.read() and stdout.read() in 
favor of using communicate()
+- do not require python-mock for build
+- added patches
+  fix 
https://github.com/alfredodeza/remoto/commit/aa74f65bb59dc46998e72e4bdcd070287e4e2af6
+  + python-remoto-no-mock.patch
+
+-------------------------------------------------------------------

Old:
----
  remoto-1.2.0.tar.gz

New:
----
  python-remoto-no-mock.patch
  remoto-1.2.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-remoto.spec ++++++
--- /var/tmp/diff_new_pack.vs8thF/_old  2022-04-10 19:05:44.902271147 +0200
+++ /var/tmp/diff_new_pack.vs8thF/_new  2022-04-10 19:05:44.910271058 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-remoto
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,12 +18,14 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-remoto
-Version:        1.2.0
+Version:        1.2.1
 Release:        0
 Summary:        Remote command executor using ssh and Python in the remote end
 License:        MIT
 URL:            https://github.com/alfredodeza/remoto
 Source0:        
https://files.pythonhosted.org/packages/source/r/remoto/remoto-%{version}.tar.gz
+# 
https://github.com/alfredodeza/remoto/commit/aa74f65bb59dc46998e72e4bdcd070287e4e2af6
+Patch0:         python-remoto-no-mock.patch
 BuildRequires:  %{python_module execnet}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module virtualenv}
@@ -32,7 +34,6 @@
 Requires:       python-execnet
 BuildArch:      noarch
 # SECTION build requirements
-BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pytest}
 # /SECTION
 %python_subpackages
@@ -44,7 +45,7 @@
 connections and processes.
 
 %prep
-%setup -q -n remoto-%{version}
+%autosetup -p1 -n remoto-%{version}
 
 %build
 export REMOTO_NO_VENDOR=no

++++++ python-remoto-no-mock.patch ++++++
Index: remoto-1.2.1/remoto/tests/test_log.py
===================================================================
--- remoto-1.2.1.orig/remoto/tests/test_log.py
+++ remoto-1.2.1/remoto/tests/test_log.py
@@ -1,7 +1,10 @@
 from pytest import raises
 from remoto import log
 from remoto.exc import TimeoutError
-from mock import Mock
+try:
+    from unittest.mock import Mock
+except ImportError:
+    from mock import Mock
 
 
 class TestReporting(object):
Index: remoto-1.2.1/remoto/tests/test_process.py
===================================================================
--- remoto-1.2.1.orig/remoto/tests/test_process.py
+++ remoto-1.2.1/remoto/tests/test_process.py
@@ -1,6 +1,11 @@
-from mock import Mock
 from remoto import process
 
+try:
+    from unittest.mock import Mock
+except ImportError:
+    from mock import Mock
+
+
 
 class TestExtendPath(object):
 
Index: remoto-1.2.1/remoto/tests/test_rsync.py
===================================================================
--- remoto-1.2.1.orig/remoto/tests/test_rsync.py
+++ remoto-1.2.1/remoto/tests/test_rsync.py
@@ -1,4 +1,7 @@
-from mock import Mock, patch
+try:
+    from unittest.mock import Mock, patch
+except ImportError:
+    from mock import Mock, patch
 from remoto import file_sync
 
 

++++++ remoto-1.2.0.tar.gz -> remoto-1.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remoto-1.2.0/PKG-INFO new/remoto-1.2.1/PKG-INFO
--- old/remoto-1.2.0/PKG-INFO   2020-04-20 16:37:21.787139400 +0200
+++ new/remoto-1.2.1/PKG-INFO   2021-05-18 22:09:34.086667300 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: remoto
-Version: 1.2.0
+Version: 1.2.1
 Summary: Execute remote commands or processes.
 Home-page: http://github.com/alfredodeza/remoto
 Author: Alfredo Deza
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remoto-1.2.0/remoto/__init__.py 
new/remoto-1.2.1/remoto/__init__.py
--- old/remoto-1.2.0/remoto/__init__.py 2020-04-20 16:34:50.000000000 +0200
+++ new/remoto-1.2.1/remoto/__init__.py 2021-05-18 21:57:19.000000000 +0200
@@ -4,4 +4,4 @@
 from . import connection
 
 
-__version__ = '1.2.0'
+__version__ = '1.2.1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remoto-1.2.0/remoto/backends/__init__.py 
new/remoto-1.2.1/remoto/backends/__init__.py
--- old/remoto-1.2.0/remoto/backends/__init__.py        2020-04-20 
16:32:34.000000000 +0200
+++ new/remoto-1.2.1/remoto/backends/__init__.py        2020-12-01 
15:55:59.000000000 +0100
@@ -133,6 +133,11 @@
             self.remote_module = LegacyModuleExecute(self.gateway, module, 
self.logger)
         return self.remote_module
 
+    def has_connection(self):
+        if self.gateway:
+            return self.gateway.hasreceiver()
+        return False
+
 
 class LegacyModuleExecute(object):
     """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remoto-1.2.0/remoto/process.py 
new/remoto-1.2.1/remoto/process.py
--- old/remoto-1.2.0/remoto/process.py  2020-01-23 20:36:09.000000000 +0100
+++ new/remoto-1.2.1/remoto/process.py  2021-05-18 21:56:00.000000000 +0200
@@ -150,8 +150,7 @@
             stdin.encode('utf-8', errors='ignore')
         stdout_stream, stderr_stream = process.communicate(stdin)
     else:
-        stdout_stream = process.stdout.read()
-        stderr_stream = process.stderr.read()
+        stdout_stream, stderr_stream = process.communicate()
 
     try:
         stdout_stream = stdout_stream.decode('utf-8')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remoto-1.2.0/remoto.egg-info/PKG-INFO 
new/remoto-1.2.1/remoto.egg-info/PKG-INFO
--- old/remoto-1.2.0/remoto.egg-info/PKG-INFO   2020-04-20 16:37:21.000000000 
+0200
+++ new/remoto-1.2.1/remoto.egg-info/PKG-INFO   2021-05-18 22:09:33.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: remoto
-Version: 1.2.0
+Version: 1.2.1
 Summary: Execute remote commands or processes.
 Home-page: http://github.com/alfredodeza/remoto
 Author: Alfredo Deza

Reply via email to