Hello community,

here is the log from the commit of package python-remoto for openSUSE:Factory 
checked in at 2020-03-27 00:29:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-remoto (Old)
 and      /work/SRC/openSUSE:Factory/.python-remoto.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-remoto"

Fri Mar 27 00:29:30 2020 rev:6 rq:788097 version:1.1.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-remoto/python-remoto.changes      
2019-05-22 10:55:19.671050557 +0200
+++ /work/SRC/openSUSE:Factory/.python-remoto.new.3160/python-remoto.changes    
2020-03-27 00:29:31.136385108 +0100
@@ -1,0 +2,6 @@
+Wed Mar 18 08:42:13 UTC 2020 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 1.1.5:
+  * no changelog found
+
+-------------------------------------------------------------------

Old:
----
  remoto-1.1.4.tar.gz

New:
----
  remoto-1.1.5.tar.gz

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

Other differences:
------------------
++++++ python-remoto.spec ++++++
--- /var/tmp/diff_new_pack.rjhkrS/_old  2020-03-27 00:29:32.516385807 +0100
+++ /var/tmp/diff_new_pack.rjhkrS/_new  2020-03-27 00:29:32.520385809 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-remoto
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 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,11 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-remoto
-Version:        1.1.4
+Version:        1.1.5
 Release:        0
 Summary:        Remote command executor using ssh and Python in the remote end
 License:        MIT
-Group:          Development/Languages/Python
-Url:            https://github.com/alfredodeza/remoto
+URL:            https://github.com/alfredodeza/remoto
 Source0:        
https://files.pythonhosted.org/packages/source/r/remoto/remoto-%{version}.tar.gz
 BuildRequires:  %{python_module execnet}
 BuildRequires:  %{python_module setuptools}
@@ -33,7 +32,6 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-execnet
 Requires:       python-setuptools
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 # SECTION build requirements
 BuildRequires:  %{python_module mock >= 1.0b1}
@@ -63,7 +61,6 @@
 %pytest
 
 %files %{python_files}
-%defattr(-,root,root,-)
 %license LICENSE
 %doc README.rst
 %{python_sitelib}/*

++++++ remoto-1.1.4.tar.gz -> remoto-1.1.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remoto-1.1.4/PKG-INFO new/remoto-1.1.5/PKG-INFO
--- old/remoto-1.1.4/PKG-INFO   2019-04-29 21:17:12.000000000 +0200
+++ new/remoto-1.1.5/PKG-INFO   2019-12-23 18:19:27.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: remoto
-Version: 1.1.4
+Version: 1.1.5
 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.1.4/remoto/__init__.py 
new/remoto-1.1.5/remoto/__init__.py
--- old/remoto-1.1.4/remoto/__init__.py 2019-04-29 21:15:26.000000000 +0200
+++ new/remoto-1.1.5/remoto/__init__.py 2019-12-23 18:17:21.000000000 +0100
@@ -4,4 +4,4 @@
 from . import connection
 
 
-__version__ = '1.1.4'
+__version__ = '1.1.5'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remoto-1.1.4/remoto/backends/__init__.py 
new/remoto-1.1.5/remoto/backends/__init__.py
--- old/remoto-1.1.4/remoto/backends/__init__.py        2019-03-13 
16:24:25.000000000 +0100
+++ new/remoto-1.1.5/remoto/backends/__init__.py        2019-12-23 
17:41:19.000000000 +0100
@@ -16,13 +16,14 @@
     remote_import_system = 'legacy'
 
     def __init__(self, hostname, logger=None, sudo=False, threads=1, 
eager=True,
-                 detect_sudo=False, interpreter=None, ssh_options=None):
+                 detect_sudo=False, use_ssh=False, interpreter=None, 
ssh_options=None):
         self.sudo = sudo
         self.hostname = hostname
         self.ssh_options = ssh_options
         self.logger = logger or basic_remote_logger()
         self.remote_module = None
         self.channel = None
+        self.use_ssh = use_ssh
         self.global_timeout = None  # wait for ever
 
         self.interpreter = interpreter or 'python%s' % sys.version_info[0]
@@ -40,7 +41,8 @@
                 raise
 
     def _make_gateway(self, hostname):
-        gateway = execnet.makegateway(
+        self.group = execnet.Group()
+        gateway = self.group.makegateway(
             self._make_connection_string(hostname)
         )
         gateway.reconfigure(py2str_as_py3str=False, py3str_as_py2str=False)
@@ -80,7 +82,8 @@
                 interpreter = 'sudo ' + interpreter
         elif self.sudo:
             interpreter = 'sudo ' + interpreter
-        if _needs_ssh(hostname):
+
+        if _needs_ssh(hostname) or self.use_ssh:
             if self.ssh_options:
                 return 'ssh=%s %s//python=%s' % (
                     self.ssh_options, hostname, interpreter
@@ -93,7 +96,7 @@
         return self
 
     def __exit__(self, exc_type, exc_val, exc_tb):
-        self.exit()
+        self.group.terminate(timeout=1.0)
         return False
 
     def cmd(self, cmd):
@@ -109,7 +112,7 @@
         return self.gateway.remote_exec(function, **kw)
 
     def exit(self):
-        self.gateway.exit()
+        self.group.terminate(timeout=1.0)
 
     def import_module(self, module):
         """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remoto-1.1.4/remoto/bar.py 
new/remoto-1.1.5/remoto/bar.py
--- old/remoto-1.1.4/remoto/bar.py      1970-01-01 01:00:00.000000000 +0100
+++ new/remoto-1.1.5/remoto/bar.py      2019-10-03 21:36:22.000000000 +0200
@@ -0,0 +1,7 @@
+def foo(arg):
+    return 1
+
+
+if __name__ == '__channelexec__':
+    for item in channel:
+        channel.send(eval(item))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remoto-1.1.4/remoto/zombie.py 
new/remoto-1.1.5/remoto/zombie.py
--- old/remoto-1.1.4/remoto/zombie.py   1970-01-01 01:00:00.000000000 +0100
+++ new/remoto-1.1.5/remoto/zombie.py   2019-12-20 12:55:03.000000000 +0100
@@ -0,0 +1,20 @@
+import remoto
+import remoto.process
+import time
+
+count = 15
+while count:
+    conn1 = remoto.Connection('node1')
+    conn2 = remoto.Connection('node1')
+    out, err, code = remoto.process.check(
+        conn2, ['true'])
+    out, err, code = remoto.process.check(
+        conn1, ['true'])
+    print('[%s] out %s err %s code %s' % (count, out, err, code))
+    conn1.exit()
+    conn2.exit()
+    #conn.gateway.close()
+    #conn.gateway._io.kill()
+    #conn.gateway._io.wait()
+    count -= 1
+    time.sleep(1)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remoto-1.1.4/remoto.egg-info/PKG-INFO 
new/remoto-1.1.5/remoto.egg-info/PKG-INFO
--- old/remoto-1.1.4/remoto.egg-info/PKG-INFO   2019-04-29 21:17:12.000000000 
+0200
+++ new/remoto-1.1.5/remoto.egg-info/PKG-INFO   2019-12-23 18:19:27.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: remoto
-Version: 1.1.4
+Version: 1.1.5
 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.1.4/remoto.egg-info/SOURCES.txt 
new/remoto-1.1.5/remoto.egg-info/SOURCES.txt
--- old/remoto-1.1.4/remoto.egg-info/SOURCES.txt        2019-04-29 
21:17:12.000000000 +0200
+++ new/remoto-1.1.5/remoto.egg-info/SOURCES.txt        2019-12-23 
18:19:27.000000000 +0100
@@ -3,12 +3,14 @@
 README.rst
 setup.py
 remoto/__init__.py
+remoto/bar.py
 remoto/connection.py
 remoto/exc.py
 remoto/file_sync.py
 remoto/log.py
 remoto/process.py
 remoto/util.py
+remoto/zombie.py
 remoto.egg-info/PKG-INFO
 remoto.egg-info/SOURCES.txt
 remoto.egg-info/dependency_links.txt


Reply via email to