Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Glances for openSUSE:Factory checked in at 2023-04-28 16:23:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Glances (Old) and /work/SRC/openSUSE:Factory/.python-Glances.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Glances" Fri Apr 28 16:23:28 2023 rev:25 rq:1083342 version:3.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Glances/python-Glances.changes 2022-11-09 12:57:10.804261538 +0100 +++ /work/SRC/openSUSE:Factory/.python-Glances.new.1533/python-Glances.changes 2023-04-28 16:24:26.766387680 +0200 @@ -1,0 +2,10 @@ +Tue Apr 25 15:51:39 UTC 2023 - Andrea Manzini <andrea.manz...@suse.com> + +- Update to 3.3.1 + * Minor change on the help screen + * Refactor some loop in the processes function + * Replace json by ujson #2201 + * Improvements on documentation, unit test and CI + * bump dependencies and web lib to address security + +------------------------------------------------------------------- Old: ---- v3.3.0.4.tar.gz New: ---- v3.3.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Glances.spec ++++++ --- /var/tmp/diff_new_pack.23HHUk/_old 2023-04-28 16:24:27.542392210 +0200 +++ /var/tmp/diff_new_pack.23HHUk/_new 2023-04-28 16:24:27.546392233 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-Glances # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 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 @@ %define skip_python2 1 Name: python-Glances -Version: 3.3.0.4 +Version: 3.3.1 Release: 0 Summary: A cross-platform curses-based monitoring tool License: LGPL-3.0-only @@ -37,6 +37,7 @@ BuildRequires: %{python_module psutil >= 5.3.0} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module ujson} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-bottle @@ -44,6 +45,7 @@ Requires: python-future Requires: python-psutil >= 5.3.0 Requires: python-requests +Requires: python-ujson Requires(post): update-alternatives Requires(postun):update-alternatives Recommends: python-curses @@ -124,6 +126,9 @@ %python_alternative %{_mandir}/man1/glances.1%{?ext_man} %{python_sitelib}/glances %{python_sitelib}/Glances-%{version}*-info +%exclude %{python_sitelib}/glances/outputs/static/.eslintrc.js +%exclude %{python_sitelib}/glances/outputs/static/.gitignore +%exclude %{python_sitelib}/glances/outputs/static/.prettierrc.js %files -n glances-common %dir %{_prefix}/lib/firewalld ++++++ adjust-data-files.patch ++++++ --- /var/tmp/diff_new_pack.23HHUk/_old 2023-04-28 16:24:27.578392420 +0200 +++ /var/tmp/diff_new_pack.23HHUk/_new 2023-04-28 16:24:27.582392443 +0200 @@ -1,7 +1,7 @@ -Index: glances-3.1.1/setup.py +Index: glances-3.3.1/setup.py =================================================================== ---- glances-3.1.1.orig/setup.py -+++ glances-3.1.1/setup.py +--- glances-3.3.1.orig/setup.py ++++ glances-3.3.1/setup.py @@ -32,8 +32,6 @@ with open('README.rst', encoding='utf-8' def get_data_files(): ++++++ fix-tests.patch ++++++ --- /var/tmp/diff_new_pack.23HHUk/_old 2023-04-28 16:24:27.598392536 +0200 +++ /var/tmp/diff_new_pack.23HHUk/_new 2023-04-28 16:24:27.598392536 +0200 @@ -1,6 +1,7 @@ -diff -ur glances-3.2.7.orig/unitest-restful.py glances-3.2.7/unitest-restful.py ---- glances-3.2.7.orig/unitest-restful.py 2022-07-28 18:10:35.000000000 +0200 -+++ glances-3.2.7/unitest-restful.py 2022-07-28 20:22:43.516291302 +0200 +Index: glances-3.3.1/unitest-restful.py +=================================================================== +--- glances-3.3.1.orig/unitest-restful.py ++++ glances-3.3.1/unitest-restful.py @@ -12,6 +12,7 @@ import shlex @@ -9,18 +10,19 @@ import time import numbers import unittest -@@ -54,7 +55,7 @@ - global pid - - print('INFO: [TEST_000] Start the Glances Web Server') -- cmdline = "python -m glances -B localhost -w -p %s" % SERVER_PORT -+ cmdline = "%s -m glances -B localhost -w -p %s" % (sys.executable, SERVER_PORT) +@@ -58,7 +59,7 @@ class TestGlances(unittest.TestCase): + if os.path.isfile("./venv/bin/python"): + cmdline = "./venv/bin/python" + else: +- cmdline = "python" ++ cmdline = sys.executable + cmdline += " -m glances -B localhost -w -p %s" % SERVER_PORT print("Run the Glances Web Server on port %s" % SERVER_PORT) args = shlex.split(cmdline) - pid = subprocess.Popen(args) -diff -ur glances-3.2.7.orig/unitest-xmlrpc.py glances-3.2.7/unitest-xmlrpc.py ---- glances-3.2.7.orig/unitest-xmlrpc.py 2022-07-28 18:10:35.000000000 +0200 -+++ glances-3.2.7/unitest-xmlrpc.py 2022-07-28 20:22:49.160260716 +0200 +Index: glances-3.3.1/unitest-xmlrpc.py +=================================================================== +--- glances-3.3.1.orig/unitest-xmlrpc.py ++++ glances-3.3.1/unitest-xmlrpc.py @@ -13,6 +13,7 @@ import json import shlex @@ -28,14 +30,14 @@ +import sys import time import unittest - -@@ -43,7 +44,7 @@ - global pid - - print('INFO: [TEST_000] Start the Glances Web Server') -- cmdline = "python -m glances -B localhost -s -p %s" % SERVER_PORT -+ cmdline = "%s -m glances -s -p %s" % (sys.executable, SERVER_PORT) + import os +@@ -47,7 +48,7 @@ class TestGlances(unittest.TestCase): + if os.path.isfile("./venv/bin/python"): + cmdline = "./venv/bin/python" + else: +- cmdline = "python" ++ cmdline = sys.executable + cmdline += " -m glances -B localhost -s -p %s" % SERVER_PORT print("Run the Glances Server on port %s" % SERVER_PORT) args = shlex.split(cmdline) - pid = subprocess.Popen(args) ++++++ remove-shebang.patch ++++++ --- /var/tmp/diff_new_pack.23HHUk/_old 2023-04-28 16:24:27.634392747 +0200 +++ /var/tmp/diff_new_pack.23HHUk/_new 2023-04-28 16:24:27.638392770 +0200 @@ -1,7 +1,7 @@ -diff --git a/glances/__main__.py b/glances/__main__.py -index 197d5ce..3889719 100644 ---- a/glances/__main__.py -+++ b/glances/__main__.py +Index: glances-3.3.1/glances/__main__.py +=================================================================== +--- glances-3.3.1.orig/glances/__main__.py ++++ glances-3.3.1/glances/__main__.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- ++++++ skip-online-tests.patch ++++++ --- /var/tmp/diff_new_pack.23HHUk/_old 2023-04-28 16:24:27.650392840 +0200 +++ /var/tmp/diff_new_pack.23HHUk/_new 2023-04-28 16:24:27.654392864 +0200 @@ -1,8 +1,8 @@ -Index: glances-3.1.1/unitest.py +Index: glances-3.3.1/unitest.py =================================================================== ---- glances-3.1.1.orig/unitest.py -+++ glances-3.1.1/unitest.py -@@ -191,6 +191,7 @@ class TestGlances(unittest.TestCase): +--- glances-3.3.1.orig/unitest.py ++++ glances-3.3.1/unitest.py +@@ -188,6 +188,7 @@ class TestGlances(unittest.TestCase): self.assertTrue(type(stats_grab) is list, msg='Folders stats is not a list') print('INFO: Folders stats: %s' % stats_grab) ++++++ unitest-wait-for-server.patch ++++++ --- /var/tmp/diff_new_pack.23HHUk/_old 2023-04-28 16:24:27.666392933 +0200 +++ /var/tmp/diff_new_pack.23HHUk/_new 2023-04-28 16:24:27.666392933 +0200 @@ -1,8 +1,8 @@ -Index: glances-3.1.5/unitest-xmlrpc.py +Index: glances-3.3.1/unitest-xmlrpc.py =================================================================== ---- glances-3.1.5.orig/unitest-xmlrpc.py -+++ glances-3.1.5/unitest-xmlrpc.py -@@ -59,7 +59,7 @@ class TestGlances(unittest.TestCase): +--- glances-3.3.1.orig/unitest-xmlrpc.py ++++ glances-3.3.1/unitest-xmlrpc.py +@@ -54,7 +54,7 @@ class TestGlances(unittest.TestCase): args = shlex.split(cmdline) pid = subprocess.Popen(args) print("Please wait...") ++++++ v3.3.0.4.tar.gz -> v3.3.1.tar.gz ++++++ ++++ 3708 lines of diff (skipped)