Hello community,

here is the log from the commit of package python-buttplug for openSUSE:Factory 
checked in at 2020-11-25 19:29:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-buttplug (Old)
 and      /work/SRC/openSUSE:Factory/.python-buttplug.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-buttplug"

Wed Nov 25 19:29:42 2020 rev:2 rq:850143 version:0.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-buttplug/python-buttplug.changes  
2020-05-29 21:35:58.910400683 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-buttplug.new.5913/python-buttplug.changes    
    2020-11-25 19:30:28.222563380 +0100
@@ -1,0 +2,9 @@
+Sun Nov 22 08:46:29 UTC 2020 - andy great <[email protected]>
+
+- Update to version 0.2.0.
+  * DeviceRemoved event no longer tries to use non-existent dict 
+    method.
+  * Fixed wrong enum naming.
+  * Client now actually sends client name.
+
+-------------------------------------------------------------------

Old:
----
  buttplug-py-0.1.0.tar.gz

New:
----
  buttplug-py-0.2.0.tar.gz

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

Other differences:
------------------
++++++ python-buttplug.spec ++++++
--- /var/tmp/diff_new_pack.qhcgW2/_old  2020-11-25 19:30:28.686563837 +0100
+++ /var/tmp/diff_new_pack.qhcgW2/_new  2020-11-25 19:30:28.690563841 +0100
@@ -19,7 +19,7 @@
 %define skip_python2 1
 %define packagename buttplug-py
 Name:           python-buttplug
-Version:        0.1.0
+Version:        0.2.0
 Release:        0
 Summary:        Implementations of the Buttplug Client for Python
 License:        BSD-3-Clause

++++++ buttplug-py-0.1.0.tar.gz -> buttplug-py-0.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/buttplug-py-0.1.0/CHANGELOG.md 
new/buttplug-py-0.2.0/CHANGELOG.md
--- old/buttplug-py-0.1.0/CHANGELOG.md  2019-09-08 01:07:48.000000000 +0200
+++ new/buttplug-py-0.2.0/CHANGELOG.md  2020-05-11 02:18:19.000000000 +0200
@@ -1,3 +1,11 @@
+# 0.2.0 (2020-05-10)
+
+## Bug Fixes
+
+- DeviceRemoved event no longer tries to use non-existent dict method
+- Fixed wrong enum naming
+- Client now actually sends client name
+
 # 0.1.0 (2019-09-07)
 
 ## Features
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/buttplug-py-0.1.0/Pipfile 
new/buttplug-py-0.2.0/Pipfile
--- old/buttplug-py-0.1.0/Pipfile       1970-01-01 01:00:00.000000000 +0100
+++ new/buttplug-py-0.2.0/Pipfile       2020-05-11 02:18:19.000000000 +0200
@@ -0,0 +1,12 @@
+[[source]]
+name = "pypi"
+url = "https://pypi.org/simple";
+verify_ssl = true
+
+[dev-packages]
+
+[packages]
+websockets = "==7.0"
+
+[requires]
+python_version = "3.8"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/buttplug-py-0.1.0/buttplug/__init__.py 
new/buttplug-py-0.2.0/buttplug/__init__.py
--- old/buttplug-py-0.1.0/buttplug/__init__.py  2019-09-08 01:07:48.000000000 
+0200
+++ new/buttplug-py-0.2.0/buttplug/__init__.py  2020-05-11 02:18:19.000000000 
+0200
@@ -1,2 +1,2 @@
-__version__ = "0.1.0"
+__version__ = "0.2.0"
 name = "buttplug"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/buttplug-py-0.1.0/buttplug/client/client.py 
new/buttplug-py-0.2.0/buttplug/client/client.py
--- old/buttplug-py-0.1.0/buttplug/client/client.py     2019-09-08 
01:07:48.000000000 +0200
+++ new/buttplug-py-0.2.0/buttplug/client/client.py     2020-05-11 
02:18:19.000000000 +0200
@@ -86,7 +86,7 @@
         await self._init()
 
     async def _init(self):
-        initmsg = RequestServerInfo("Client Test")
+        initmsg = RequestServerInfo(self.name)
         msg: ServerInfo = await self._send_message_expect_reply(initmsg,
                                                                 ServerInfo)
         print("Connected to server: " + msg.server_name)
@@ -141,7 +141,7 @@
             self.device_added_handler(self.devices[da.device_index])
         elif isinstance(msg, DeviceRemoved):
             dr: DeviceRemoved = msg
-            self.devices.remove(dr.device_index)
+            self.devices.pop(dr.device_index)
             self.device_removed_handler(dr.device_index)
         elif isinstance(msg, ScanningFinished):
             self.scanning_finished_handler()
@@ -180,7 +180,7 @@
             raise ButtplugUnknownError(msg)
         elif msg.error_code == ButtplugErrorCode.ERROR_DEVICE:
             raise ButtplugDeviceError(msg)
-        elif msg.error_code == ButtplugErrorCode.ERROR_MESSAGE:
+        elif msg.error_code == ButtplugErrorCode.ERROR_MSG:
             raise ButtplugMessageError(msg)
         elif msg.error_code == ButtplugErrorCode.ERROR_PING:
             raise ButtplugPingError(msg)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/buttplug-py-0.1.0/docs/_static/js/matomo.js 
new/buttplug-py-0.2.0/docs/_static/js/matomo.js
--- old/buttplug-py-0.1.0/docs/_static/js/matomo.js     1970-01-01 
01:00:00.000000000 +0100
+++ new/buttplug-py-0.2.0/docs/_static/js/matomo.js     2020-05-11 
02:18:19.000000000 +0200
@@ -0,0 +1,12 @@
+var _paq = window._paq || [];
+/* tracker methods like "setCustomDimension" should be called before 
"trackPageView" */
+_paq.push(["setCookieDomain", "*.buttplug-py.docs.buttplug.io"]);
+_paq.push(['trackPageView']);
+_paq.push(['enableLinkTracking']);
+(function() {
+  var u="https://matomo.nonpolynomial.com/";;
+  _paq.push(['setTrackerUrl', u+'matomo.php']);
+  _paq.push(['setSiteId', '15']);
+  var d=document, g=d.createElement('script'), 
s=d.getElementsByTagName('script')[0];
+  g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; 
s.parentNode.insertBefore(g,s);
+})();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/buttplug-py-0.1.0/docs/conf.py 
new/buttplug-py-0.2.0/docs/conf.py
--- old/buttplug-py-0.1.0/docs/conf.py  2019-09-08 01:07:48.000000000 +0200
+++ new/buttplug-py-0.2.0/docs/conf.py  2020-05-11 02:18:19.000000000 +0200
@@ -56,7 +56,9 @@
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
 html_static_path = ['_static']
-
+html_js_files = [
+    'js/matomo.js',
+]
 
 html_sidebars = {'**': ['globaltoc.html', 'relations.html', 'sourcelink.html', 
'searchbox.html']}
 source_suffix = ['.rst', '.md']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/buttplug-py-0.1.0/examples/example.py 
new/buttplug-py-0.2.0/examples/example.py
--- old/buttplug-py-0.1.0/examples/example.py   2019-09-08 01:07:48.000000000 
+0200
+++ new/buttplug-py-0.2.0/examples/example.py   2020-05-11 02:18:19.000000000 
+0200
@@ -82,6 +82,8 @@
 def device_added(emitter, dev: ButtplugClientDevice):
     asyncio.create_task(device_added_task(dev))
 
+def device_removed(emitter, dev: ButtplugClientDevice):
+    print("Device removed: ", dev)
 
 async def main():
     # And now we're in the main function.
@@ -115,6 +117,7 @@
     # setting up an event handler.
 
     client.device_added_handler += device_added
+    client.device_removed_handler += device_removed
 
     # Whenever we connect to a client, we'll instantly get a list of devices
     # already connected (yes, this sometimes happens, mostly due to windows
@@ -135,7 +138,7 @@
     # the server is doing. We can choose the level from the ButtplugLogLevel
     # object.
 
-    await client.request_log(ButtplugLogLevel.debug)
+    # await client.request_log(ButtplugLogLevel.info)
 
     # Now we move on to looking for devices.
 
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to