Hello community, here is the log from the commit of package python-Glances for openSUSE:Factory checked in at 2020-01-14 21:08:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Glances (Old) and /work/SRC/openSUSE:Factory/.python-Glances.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Glances" Tue Jan 14 21:08:07 2020 rev:5 rq:764195 version:3.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Glances/python-Glances.changes 2019-10-07 14:14:07.674887861 +0200 +++ /work/SRC/openSUSE:Factory/.python-Glances.new.6675/python-Glances.changes 2020-01-14 21:11:53.350890790 +0100 @@ -1,0 +2,13 @@ +Mon Jan 13 16:58:18 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com> + +- update to 3.1.3 + * Add a new TCP connections status plugin enhancement + * Add --enable-plugin option from the command line + * Fix custom refresh time in the web UI + * Fix issue in WebUI with empty docker stats + * Glances fails without network interface bug fixed + * Disable option in the configuration file is now take into account + * Sensors plugin is disable by default (high CPU consumption on some Linux distribution). +- added upstream patch fix-unittest.patch to fix tests + +------------------------------------------------------------------- Old: ---- v3.1.2.tar.gz New: ---- fix-unittest.patch v3.1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Glances.spec ++++++ --- /var/tmp/diff_new_pack.Gp4eYu/_old 2020-01-14 21:11:57.202892573 +0100 +++ /var/tmp/diff_new_pack.Gp4eYu/_new 2020-01-14 21:11:57.202892573 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-Glances # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Glances -Version: 3.1.2 +Version: 3.1.3 Release: 0 Summary: A cross-platform curses-based monitoring tool License: LGPL-3.0-only @@ -27,21 +27,20 @@ Patch0: adjust-data-files.patch Patch1: remove-shebang.patch Patch2: skip-online-tests.patch +#PATCH-FIX-UPSTREAM https://github.com/nicolargo/glances/commit/793552ea864c9220a578ee5e610ebb85c05728c9 Correct unitest +Patch3: fix-unittest.patch BuildRequires: %{python_module bottle} -BuildRequires: %{python_module curses} BuildRequires: %{python_module future} -BuildRequires: %{python_module netifaces} -BuildRequires: %{python_module nose} -BuildRequires: %{python_module psutil >= 5.3.0} +BuildRequires: %{python_module psutil >= 5.6.3} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-bottle -Requires: python-curses Requires: python-future Requires: python-psutil >= 5.6.3 Requires: python-requests +Recommends: python-curses Provides: python-glances = %{version} Obsoletes: python-glances < %{version} BuildArch: noarch @@ -63,17 +62,16 @@ %build %python_build -# tests are failing on upstream, they apparently don't mind +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + %check export LANG=en_US.UTF-8 %python_exec unitest.py %python_exec unitest-restful.py %python_exec unitest-xmlrpc.py -%install -%python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} - %files %{python_files} %license COPYING %doc NEWS.rst README.rst ++++++ fix-unittest.patch ++++++ >From 793552ea864c9220a578ee5e610ebb85c05728c9 Mon Sep 17 00:00:00 2001 From: nicolargo <nico...@nicolargo.com> Date: Sat, 12 Oct 2019 11:45:36 +0200 Subject: [PATCH] Correct unitest --- glances/plugins/glances_plugin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/glances/plugins/glances_plugin.py b/glances/plugins/glances_plugin.py index 6a1c8606..23a76f80 100644 --- a/glances/plugins/glances_plugin.py +++ b/glances/plugins/glances_plugin.py @@ -86,10 +86,11 @@ def __init__(self, self.stats_history = self.init_stats_history() # Init the limits (configuration keys) dictionnary - logger.debug('Load section {} in {}'.format(self.plugin_name, - config.config_file_paths())) self._limits = dict() - self.load_limits(config=config) + if config is not None: + logger.debug('Load section {} in {}'.format(self.plugin_name, + config.config_file_paths())) + self.load_limits(config=config) # Init the actions self.actions = GlancesActions(args=args) ++++++ v3.1.2.tar.gz -> v3.1.3.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-Glances/v3.1.2.tar.gz /work/SRC/openSUSE:Factory/.python-Glances.new.6675/v3.1.3.tar.gz differ: char 28, line 1