Hello community,
here is the log from the commit of package python-moksha-hub for
openSUSE:Factory checked in at 2019-05-22 15:41:16
Comparing /work/SRC/openSUSE:Factory/python-moksha-hub (Old)
and /work/SRC/openSUSE:Factory/.python-moksha-hub.new.5148 (New)
Package is "python-moksha-hub"
Wed May 22 15:41:16 2019 rev:3 rq:704706 version:1.5.17
Changes:
--- /work/SRC/openSUSE:Factory/python-moksha-hub/python-moksha-hub.changes
2018-12-24 11:39:52.801532605 +0100
+++
/work/SRC/openSUSE:Factory/.python-moksha-hub.new.5148/python-moksha-hub.changes
2019-05-22 15:42:04.978427044 +0200
@@ -1,0 +2,7 @@
+Wed May 22 05:37:00 UTC 2019 - pgaj...@suse.com
+
+- version update to 1.5.17
+ * no upstream changelog
+- run tests
+
+---
Old:
moksha.hub-1.5.3.tar.gz
New:
moksha.hub-1.5.17.tar.gz
Other differences:
--
++ python-moksha-hub.spec ++
--- /var/tmp/diff_new_pack.RVlACr/_old 2019-05-22 15:42:06.646427036 +0200
+++ /var/tmp/diff_new_pack.RVlACr/_new 2019-05-22 15:42:06.650427036 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-moksha-hub
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -17,16 +17,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_with test
Name: python-moksha-hub
-Version:1.5.3
+Version:1.5.17
Release:0
Summary:Hub components for Moksha
License:Apache-2.0
Group: Development/Languages/Python
URL:https://mokshaproject.net
Source:
https://files.pythonhosted.org/packages/source/m/moksha.hub/moksha.hub-%{version}.tar.gz
+BuildRequires: %{python_module Twisted}
+BuildRequires: %{python_module mock}
+BuildRequires: %{python_module moksha-common >= 1.0.6}
+BuildRequires: %{python_module nose}
+BuildRequires: %{python_module pyzmq}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module txWS}
+BuildRequires: %{python_module txZMQ}
+BuildRequires: %{python_module websocket-client}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Twisted
@@ -35,16 +42,6 @@
Requires: python-txWS
Requires: python-txZMQ
BuildArch: noarch
-%if %{with test}
-BuildRequires: %{python_module Twisted}
-BuildRequires: %{python_module mock}
-BuildRequires: %{python_module moksha-common >= 1.0.6}
-BuildRequires: %{python_module nose}
-BuildRequires: %{python_module pyzmq}
-BuildRequires: %{python_module txWS}
-BuildRequires: %{python_module txZMQ}
-BuildRequires: %{python_module websocket-client}
-%endif
%python_subpackages
%description
@@ -59,10 +56,9 @@
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%if %{with test}
+
%check
%python_exec setup.py test
-%endif
%files %{python_files}
%license COPYING
++ moksha.hub-1.5.3.tar.gz -> moksha.hub-1.5.17.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/moksha.hub-1.5.3/PKG-INFO
new/moksha.hub-1.5.17/PKG-INFO
--- old/moksha.hub-1.5.3/PKG-INFO 2017-07-11 17:08:34.0 +0200
+++ new/moksha.hub-1.5.17/PKG-INFO 2019-02-12 06:20:18.0 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: moksha.hub
-Version: 1.5.3
+Version: 1.5.17
Summary: Hub components for Moksha.
Home-page: https://mokshaproject.net
Author: Luke Macken, John (J5) Palmieri, Mairin Duffy, and Ralph Bean
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/moksha.hub-1.5.3/moksha/hub/api/consumer.py
new/moksha.hub-1.5.17/moksha/hub/api/consumer.py
--- old/moksha.hub-1.5.3/moksha/hub/api/consumer.py 2017-07-11
17:08:16.0 +0200
+++ new/moksha.hub-1.5.17/moksha/hub/api/consumer.py2018-09-24
18:14:16.0 +0200
@@ -33,6 +33,7 @@
log = logging.getLogger('moksha.hub')
import six.moves.queue as queue
+from collections import deque
from kitchen.iterutils import iterate
from moksha.common.lib.helpers import create_app_engine
@@ -60,7 +61,7 @@
# the queue to do "consume" work.
self.incoming = queue.Queue()
self.headcount_in = self.headcount_out = 0
-self._times = []
+self._times = deque(maxlen=1024)
callback = self._consume
if self.jsonify:
@@ -99,7 +100,7 @@
backlog = self.incoming.qsize()
headcount_out = self.headcount_out
headcount_in =