Hello community,

here is the log from the commit of package python-parallax for openSUSE:Factory 
checked in at 2019-08-22 15:05:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-parallax (Old)
 and      /work/SRC/openSUSE:Factory/.python-parallax.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-parallax"

Thu Aug 22 15:05:07 2019 rev:14 rq:725240 version:1.0.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-parallax/python-parallax.changes  
2019-06-01 09:46:55.291377099 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-parallax.new.7948/python-parallax.changes    
    2019-08-22 15:17:32.746347927 +0200
@@ -1,0 +2,7 @@
+Thu Aug 22 07:50:06 UTC 2019 - Kristoffer Gronlund <[email protected]>
+
+- Release 1.0.5
+- Surpress warning messages when needed (bsc#1146748)
+- Fix assert_ DeprecationWarning
+
+-------------------------------------------------------------------

Old:
----
  parallax-1.0.4.tar.gz

New:
----
  parallax-1.0.5.tar.gz

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

Other differences:
------------------
++++++ python-parallax.spec ++++++
--- /var/tmp/diff_new_pack.dQr10b/_old  2019-08-22 15:17:33.242347797 +0200
+++ /var/tmp/diff_new_pack.dQr10b/_new  2019-08-22 15:17:33.246347796 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-parallax
-Version:        1.0.4
+Version:        1.0.5
 Release:        0
 Summary:        Python module for multi-node SSH command execution and file 
copy
 License:        BSD-3-Clause

++++++ parallax-1.0.4.tar.gz -> parallax-1.0.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/parallax-1.0.4/PKG-INFO new/parallax-1.0.5/PKG-INFO
--- old/parallax-1.0.4/PKG-INFO 2018-06-28 16:28:34.000000000 +0200
+++ new/parallax-1.0.5/PKG-INFO 2019-08-22 09:45:34.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: parallax
-Version: 1.0.4
+Version: 1.0.5
 Summary: Execute commands and copy files over SSH to multiple machines at once
 Home-page: https://github.com/krig/parallax/
 Author: Kristoffer Gronlund
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/parallax-1.0.4/parallax/__init__.py 
new/parallax-1.0.5/parallax/__init__.py
--- old/parallax-1.0.4/parallax/__init__.py     2018-06-28 16:25:14.000000000 
+0200
+++ new/parallax-1.0.5/parallax/__init__.py     2019-08-22 09:40:05.000000000 
+0200
@@ -98,6 +98,7 @@
     default_user = None          # User to connect as (unless overridden per 
host)
     recursive = True             # (copy, slurp only) Copy recursively
     localdir = None              # (slurp only) Local base directory to copy to
+    warn_message = True          # show warn message when asking for a password
 
 
 def _expand_host_port_user(lst):
@@ -169,6 +170,7 @@
                       askpass=opts.askpass,
                       outdir=opts.outdir,
                       errdir=opts.errdir,
+                      warn_message=opts.warn_message,
                       callbacks=_CallOutputBuilder())
     for host, port, user in _expand_host_port_user(hosts):
         cmd = _build_call_cmd(host, port, user, cmdline,
@@ -245,6 +247,7 @@
                       askpass=opts.askpass,
                       outdir=opts.outdir,
                       errdir=opts.errdir,
+                      warn_message=opts.warn_message,
                       callbacks=_CopyOutputBuilder())
     for host, port, user in _expand_host_port_user(hosts):
         cmd = _build_copy_cmd(host, port, user, src, dst, opts)
@@ -340,6 +343,7 @@
                       askpass=opts.askpass,
                       outdir=opts.outdir,
                       errdir=opts.errdir,
+                      warn_message=opts.warn_message,
                       callbacks=_SlurpOutputBuilder(localdirs))
     for host, port, user in _expand_host_port_user(hosts):
         localpath = localdirs[host]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/parallax-1.0.4/parallax/askpass_server.py 
new/parallax-1.0.5/parallax/askpass_server.py
--- old/parallax-1.0.4/parallax/askpass_server.py       2017-11-03 
08:48:26.000000000 +0100
+++ new/parallax-1.0.5/parallax/askpass_server.py       2019-08-22 
09:40:05.000000000 +0200
@@ -26,15 +26,16 @@
         self.buffermap = {}
         self.password = ""
 
-    def start(self, iomap, backlog):
+    def start(self, iomap, backlog, warn=True):
         """Prompts for the password, creates a socket, and starts listening.
 
         The specified backlog should be the max number of clients connecting
         at once.
         """
-        message = ('Warning: do not enter your password if anyone else has'
-                   ' superuser privileges or access to your account.')
-        print(textwrap.fill(message))
+        if warn:
+            message = ('Warning: do not enter your password if anyone else has'
+                       ' superuser privileges or access to your account.')
+            print(textwrap.fill(message))
 
         self.password = getpass.getpass()
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/parallax-1.0.4/parallax/manager.py 
new/parallax-1.0.5/parallax/manager.py
--- old/parallax-1.0.4/parallax/manager.py      2017-11-03 08:50:59.000000000 
+0100
+++ new/parallax-1.0.5/parallax/manager.py      2019-08-22 09:40:05.000000000 
+0200
@@ -44,6 +44,7 @@
                  askpass=False,
                  outdir=None,
                  errdir=None,
+                 warn_message=True,
                  callbacks=DefaultCallbacks()):
         # Backwards compatibility with old __init__
         # format: Only argument is an options dict
@@ -86,6 +87,7 @@
         self.done = []
 
         self.askpass_socket = None
+        self.warn_message = warn_message
 
     def run(self):
         """Processes tasks previously added with add_task."""
@@ -99,7 +101,7 @@
 
             if self.askpass:
                 pass_server = PasswordServer()
-                pass_server.start(self.iomap, self.limit)
+                pass_server.start(self.iomap, self.limit, 
warn=self.warn_message)
                 self.askpass_socket = pass_server.address
 
             self.set_sigchld_handler()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/parallax-1.0.4/parallax/version.py 
new/parallax-1.0.5/parallax/version.py
--- old/parallax-1.0.4/parallax/version.py      2018-06-28 16:25:52.000000000 
+0200
+++ new/parallax-1.0.5/parallax/version.py      2019-08-22 09:40:57.000000000 
+0200
@@ -1 +1 @@
-VERSION = '1.0.4'
+VERSION = '1.0.5'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/parallax-1.0.4/parallax.egg-info/PKG-INFO 
new/parallax-1.0.5/parallax.egg-info/PKG-INFO
--- old/parallax-1.0.4/parallax.egg-info/PKG-INFO       2018-06-28 
16:28:34.000000000 +0200
+++ new/parallax-1.0.5/parallax.egg-info/PKG-INFO       2019-08-22 
09:45:34.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: parallax
-Version: 1.0.4
+Version: 1.0.5
 Summary: Execute commands and copy files over SSH to multiple machines at once
 Home-page: https://github.com/krig/parallax/
 Author: Kristoffer Gronlund
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/parallax-1.0.4/test/test_api.py 
new/parallax-1.0.5/test/test_api.py
--- old/parallax-1.0.4/test/test_api.py 2016-12-15 14:03:04.000000000 +0100
+++ new/parallax-1.0.5/test/test_api.py 2019-08-22 09:40:05.000000000 +0200
@@ -33,7 +33,7 @@
                 raise result
             rc, out, err = result
             self.assertEqual(rc, 0)
-            self.assert_(len(out) > 0)
+            self.assertTrue(len(out) > 0)
 
     def testUptime(self):
         opts = para.Options()
@@ -43,14 +43,14 @@
                 raise result
             rc, out, err = result
             self.assertEqual(rc, 0)
-            self.assert_(out.decode("utf8").find("load average") != -1)
+            self.assertTrue(out.decode("utf8").find("load average") != -1)
 
     def testFailingCall(self):
         opts = para.Options()
         opts.default_user = g_user
         for host, result in para.call(g_hosts, "touch 
/foofoo/barbar/jfikjfdj", opts).items():
-            self.assert_(isinstance(result, para.Error))
-            self.assert_(str(result).find('with error code') != -1)
+            self.assertTrue(isinstance(result, para.Error))
+            self.assertTrue(str(result).find('with error code') != -1)
 
 
 class CopySlurpTest(unittest.TestCase):
@@ -77,7 +77,7 @@
                 raise result
             rc, _, _, path = result
             self.assertEqual(rc, 0)
-            self.assert_(path.endswith('%s/para.test' % (host)))
+            self.assertTrue(path.endswith('%s/para.test' % (host)))
 
 if __name__ == '__main__':
     suite = unittest.TestSuite()


Reply via email to