Hello community,

here is the log from the commit of package python-certstream for 
openSUSE:Factory checked in at 2018-03-08 10:58:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-certstream (Old)
 and      /work/SRC/openSUSE:Factory/.python-certstream.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-certstream"

Thu Mar  8 10:58:13 2018 rev:2 rq:583786 version:1.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-certstream/python-certstream.changes      
2017-12-22 12:19:34.369648749 +0100
+++ /work/SRC/openSUSE:Factory/.python-certstream.new/python-certstream.changes 
2018-03-08 10:58:15.291697462 +0100
@@ -1,0 +2,6 @@
+Wed Feb 28 09:54:08 UTC 2018 - sebix+novell....@sebix.at
+
+- update to version 1.9
+ * support for arbitrary kwargs
+
+-------------------------------------------------------------------

Old:
----
  certstream-1.8.tar.gz

New:
----
  certstream-1.9.tar.gz

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

Other differences:
------------------
++++++ python-certstream.spec ++++++
--- /var/tmp/diff_new_pack.uwLUD3/_old  2018-03-08 10:58:15.955673461 +0100
+++ /var/tmp/diff_new_pack.uwLUD3/_new  2018-03-08 10:58:15.959673317 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-certstream
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,11 +15,12 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %{!?license: %global license %doc}
 %bcond_without tests
 Name:           python-certstream
-Version:        1.8
+Version:        1.9
 Release:        0
 Summary:        CertStream is a library for receiving certificate transparency 
list updates
 License:        MIT
@@ -38,8 +39,8 @@
 BuildRequires:  %{python_module websocket-client}
 %endif
 # /SECTION
-Requires:       python3-websocket-client
 Requires:       python3-termcolor
+Requires:       python3-websocket-client
 BuildArch:      noarch
 
 %python_subpackages

++++++ certstream-1.8.tar.gz -> certstream-1.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/certstream-1.8/PKG-INFO new/certstream-1.9/PKG-INFO
--- old/certstream-1.8/PKG-INFO 2017-11-08 20:16:07.000000000 +0100
+++ new/certstream-1.9/PKG-INFO 2018-02-27 23:52:21.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: certstream
-Version: 1.8
+Version: 1.9
 Summary: CertStream is a library for receiving certificate transparency list 
updates in real time.
 Home-page: https://github.com/CaliDog/certstream-python/
 Author: Ryan Sears
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/certstream-1.8/README.md new/certstream-1.9/README.md
--- old/certstream-1.8/README.md        2017-11-05 21:14:25.000000000 +0100
+++ new/certstream-1.9/README.md        2018-02-27 23:52:04.000000000 +0100
@@ -67,6 +67,19 @@
 
 ```
 
+We also support connection via http proxy:
+
+```python
+import certstream
+
+def print_callback(message, context):
+    print("Received messaged -> {}".format(message))
+
+certstream.listen_for_events(print_callback, http_proxy_host="proxy_host", 
http_proxy_port=8080, http_proxy_auth=("user", "password"))
+```
+
+Need more connection options? Take a look at `**kwargs` in 
`certstream.listen_for_events`. We pass it to `run_forever` method of 
[websocket-client](https://github.com/websocket-client/websocket-client/blob/87861f951d1a65ed5d9080f7aaaf44310f376c56/websocket/_app.py#L169-L192).
+
 # Example data structure
 
 The data structure coming from CertStream looks like this:
@@ -161,4 +174,4 @@
         }
     }
 }
-```
\ No newline at end of file
+```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/certstream-1.8/certstream/core.py 
new/certstream-1.9/certstream/core.py
--- old/certstream-1.8/certstream/core.py       2017-11-08 20:14:16.000000000 
+0100
+++ new/certstream-1.9/certstream/core.py       2018-02-27 23:52:04.000000000 
+0100
@@ -48,14 +48,14 @@
             self.on_error_handler(instance, ex)
         logging.error("Error connecting to CertStream - {} - Sleeping for a 
few seconds and trying again...".format(ex))
 
-def listen_for_events(message_callback, skip_heartbeats=True, 
setup_logger=True, on_open=None, on_error=None):
+def listen_for_events(message_callback, skip_heartbeats=True, 
setup_logger=True, on_open=None, on_error=None, **kwargs):
     if setup_logger:
         logging.basicConfig(format='[%(levelname)s:%(name)s] %(asctime)s - 
%(message)s', level=logging.INFO)
 
     try:
         while True:
             c = CertStreamClient(message_callback, 
skip_heartbeats=skip_heartbeats, on_open=on_open, on_error=on_error)
-            c.run_forever()
+            c.run_forever(**kwargs)
             time.sleep(5)
     except KeyboardInterrupt:
         logging.info("Kill command received, exiting!!")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/certstream-1.8/certstream.egg-info/PKG-INFO 
new/certstream-1.9/certstream.egg-info/PKG-INFO
--- old/certstream-1.8/certstream.egg-info/PKG-INFO     2017-11-08 
20:16:07.000000000 +0100
+++ new/certstream-1.9/certstream.egg-info/PKG-INFO     2018-02-27 
23:52:21.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: certstream
-Version: 1.8
+Version: 1.9
 Summary: CertStream is a library for receiving certificate transparency list 
updates in real time.
 Home-page: https://github.com/CaliDog/certstream-python/
 Author: Ryan Sears
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/certstream-1.8/setup.py new/certstream-1.9/setup.py
--- old/certstream-1.8/setup.py 2017-11-08 20:14:57.000000000 +0100
+++ new/certstream-1.9/setup.py 2018-02-27 23:52:04.000000000 +0100
@@ -14,7 +14,7 @@
 
 setup(
     name='certstream',
-    version="1.8",
+    version="1.9",
     url='https://github.com/CaliDog/certstream-python/',
     author='Ryan Sears',
     install_requires=dependencies,
@@ -42,4 +42,4 @@
         "Programming Language :: Python :: 2",
         "Framework :: AsyncIO"
     ],
-)
\ No newline at end of file
+)


Reply via email to