Hello community,

here is the log from the commit of package python-zake for openSUSE:Factory 
checked in at 2015-02-27 11:10:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zake (Old)
 and      /work/SRC/openSUSE:Factory/.python-zake.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-zake"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-zake/python-zake.changes  2015-02-24 
13:07:02.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-zake.new/python-zake.changes     
2015-02-27 11:10:05.000000000 +0100
@@ -1,0 +2,17 @@
+Thu Feb 26 10:50:21 UTC 2015 - [email protected]
+
+- update to version 0.2.0:
+   * Allow FORCE=yes override
+   * Update run_zookeeper.sh
+   * Release 0.2.0
+   * Ensure kill command is sent as byte string
+   * Result from command() should be regular string, not bytes
+   * Ensure commands are always byte strings
+   * Release 0.1.8
+   * Add basic envi command support
+   * Release 0.1.7
+   * Merge pull request #12 from kennethmyers/master
+   * Changed attribute name "_data_watches" to "_data_watchers".
+   * Unify the exception messaging for no node found                           
         
+
+-------------------------------------------------------------------

Old:
----
  zake-0.1.6.tar.gz

New:
----
  zake-0.2.0.tar.gz

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

Other differences:
------------------
++++++ python-zake.spec ++++++
--- /var/tmp/diff_new_pack.oVdlvt/_old  2015-02-27 11:10:06.000000000 +0100
+++ /var/tmp/diff_new_pack.oVdlvt/_new  2015-02-27 11:10:06.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           python-zake
-Version:        0.1.6
+Version:        0.2.0
 Release:        0
 Summary:        Testing utilities for the kazoo library
 License:        Apache-2.0

++++++ zake-0.1.6.tar.gz -> zake-0.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zake-0.1.6/PKG-INFO new/zake-0.2.0/PKG-INFO
--- old/zake-0.1.6/PKG-INFO     2014-09-12 21:15:05.000000000 +0200
+++ new/zake-0.2.0/PKG-INFO     2015-02-14 03:31:16.000000000 +0100
@@ -1,6 +1,6 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
 Name: zake
-Version: 0.1.6
+Version: 0.2.0
 Summary: A python package that works to provide a nice set of testing 
utilities for the kazoo library.
 Home-page: https://github.com/yahoo/Zake
 Author: Joshua Harlow
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zake-0.1.6/setup.cfg new/zake-0.2.0/setup.cfg
--- old/zake-0.1.6/setup.cfg    2014-09-12 21:15:05.000000000 +0200
+++ new/zake-0.2.0/setup.cfg    2015-02-14 03:31:16.000000000 +0100
@@ -1,8 +1,8 @@
+[global]
+verbose = 0
+
 [egg_info]
 tag_build = 
 tag_date = 0
 tag_svn_revision = 0
 
-[global]
-verbose = 0
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zake-0.1.6/setup.py new/zake-0.2.0/setup.py
--- old/zake-0.1.6/setup.py     2014-09-12 21:12:44.000000000 +0200
+++ new/zake-0.2.0/setup.py     2015-02-14 03:30:44.000000000 +0100
@@ -26,7 +26,7 @@
 
 setup(
     name='zake',
-    version='0.1.6',
+    version='0.2.0',
     description='A python package that works to provide a nice set of '
                 'testing utilities for the kazoo library.',
     author="Joshua Harlow",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zake-0.1.6/zake/fake_client.py 
new/zake-0.2.0/zake/fake_client.py
--- old/zake-0.1.6/zake/fake_client.py  2014-09-12 21:07:52.000000000 +0200
+++ new/zake-0.2.0/zake/fake_client.py  2015-02-14 03:30:44.000000000 +0100
@@ -70,7 +70,7 @@
     def __init__(self, handler=None, storage=None, server_version=None):
         self._listeners = set()
         self._child_watches = collections.defaultdict(list)
-        self._data_watches = collections.defaultdict(list)
+        self._data_watchers = collections.defaultdict(list)
         if handler is None:
             self._handler = k_threading.SequentialThreadingHandler()
             self._own_handler = True
@@ -122,15 +122,22 @@
 
     def command(self, cmd=b'ruok'):
         self.verify()
-        if cmd == 'ruok':
+        if cmd == b'ruok':
             return 'imok'
-        if cmd == 'stat':
+        if cmd == b'stat':
             server_version = ".".join([str(s) for s in self._server_version])
             return "\n".join(['Zake the fake version: %s' % (version.VERSION),
                               'Mimicked version: %s' % (server_version),
                               'Mode: standalone'])
-        if cmd == "kill":
+        if cmd == b"kill":
             self.stop()
+        if cmd == b'envi':
+            server_version = ".".join([str(s) for s in self._server_version])
+            lines = [
+                "Environment:",
+                "zookeeper.version=%s" % server_version,
+            ]
+            return "\n".join(lines)
         return ''
 
     def verify(self):
@@ -154,7 +161,7 @@
 
     @property
     def data_watches(self):
-        return self._data_watches
+        return self._data_watchers
 
     @property
     def listeners(self):
@@ -215,10 +222,10 @@
         try:
             (data, znode) = self.storage.get(path)
         except KeyError:
-            raise k_exceptions.NoNodeError("No path %s" % (path))
+            raise k_exceptions.NoNodeError("Node %s does not exist" % (path))
         if watch:
             with self._watches_lock:
-                self._data_watches[path].append(watch)
+                self._data_watchers[path].append(watch)
         return (data, znode)
 
     def set_acls(self, path, acls, version=-1):
@@ -243,7 +250,7 @@
                     self._connected = True
                     with self._watches_lock:
                         self._child_watches.clear()
-                        self._data_watches.clear()
+                        self._data_watchers.clear()
                     self.storage.attach(self)
                     self.handler.start()
                     self._partial_client.session_id = int(uuid.uuid4())
@@ -273,7 +280,7 @@
             exists = None
         if watch:
             with self._watches_lock:
-                self._data_watches[path].append(watch)
+                self._data_watchers[path].append(watch)
         return exists
 
     def exists_async(self, path, watch=None):
@@ -358,7 +365,7 @@
 
     def fire_data_watches(self, data_watches):
         for (paths, event) in data_watches:
-            self._fire_watches(paths, event, self._data_watches)
+            self._fire_watches(paths, event, self._data_watchers)
 
     def _fire_watches(self, paths, event, watch_source):
         for path in reversed(sorted(paths)):
@@ -394,7 +401,7 @@
                     self._connected = False
                     with self._watches_lock:
                         self._child_watches.clear()
-                        self._data_watches.clear()
+                        self._data_watchers.clear()
                     self.storage.purge(self)
                     self._fire_state_change(k_states.KazooState.LOST)
                     if self._own_handler and close_handler:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zake-0.1.6/zake/tests/test_client.py 
new/zake-0.2.0/zake/tests/test_client.py
--- old/zake-0.1.6/zake/tests/test_client.py    2014-09-12 21:10:29.000000000 
+0200
+++ new/zake-0.2.0/zake/tests/test_client.py    2015-02-14 03:30:44.000000000 
+0100
@@ -76,17 +76,24 @@
     def test_command(self):
         with start_close(self.client) as c:
             self.assertTrue(c.connected)
-            self.assertEqual("imok", c.command('ruok'))
-            self.client.command('kill')
+            self.assertEqual("imok", c.command(b'ruok'))
+            self.client.command(b'kill')
             self.assertFalse(c.connected)
 
     def test_command_version(self):
         with start_close(self.client) as c:
-            stats = c.command('stat')
+            stats = c.command(b'stat')
             self.assertIn("standalone", stats)
             version = ".".join([str(s) for s in fake_client.SERVER_VERSION])
             self.assertIn(version, stats)
 
+    def test_command_envi(self):
+        with start_close(self.client) as c:
+            envi = c.command(b'envi')
+            self.assertIn("zookeeper.version", envi)
+            version = ".".join([str(s) for s in fake_client.SERVER_VERSION])
+            self.assertIn(version, envi)
+
     def test_command_empty_version(self):
         self.assertRaises(ValueError, fake_client.FakeClient,
                           server_version=[])
@@ -94,7 +101,7 @@
     def test_command_custom_version(self):
         client = fake_client.FakeClient(server_version=(1, 1, 1))
         with start_close(client) as c:
-            stats = c.command('stat')
+            stats = c.command(b'stat')
             self.assertIn("standalone", stats)
             self.assertIn('1.1.1', stats)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zake-0.1.6/zake.egg-info/PKG-INFO 
new/zake-0.2.0/zake.egg-info/PKG-INFO
--- old/zake-0.1.6/zake.egg-info/PKG-INFO       2014-09-12 21:15:05.000000000 
+0200
+++ new/zake-0.2.0/zake.egg-info/PKG-INFO       2015-02-14 03:31:16.000000000 
+0100
@@ -1,6 +1,6 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
 Name: zake
-Version: 0.1.6
+Version: 0.2.0
 Summary: A python package that works to provide a nice set of testing 
utilities for the kazoo library.
 Home-page: https://github.com/yahoo/Zake
 Author: Joshua Harlow

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to