commit python-logreduce for openSUSE:Leap:15.2
Hello community, here is the log from the commit of package python-logreduce for openSUSE:Leap:15.2 checked in at 2020-04-17 13:38:11 Comparing /work/SRC/openSUSE:Leap:15.2/python-logreduce (Old) and /work/SRC/openSUSE:Leap:15.2/.python-logreduce.new.2738 (New) Package is "python-logreduce" Fri Apr 17 13:38:11 2020 rev:7 rq:794460 version:0.5.2 Changes: --- /work/SRC/openSUSE:Leap:15.2/python-logreduce/python-logreduce.changes 2020-03-09 18:08:17.708932526 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-logreduce.new.2738/python-logreduce.changes 2020-04-17 13:38:38.720269620 +0200 @@ -1,0 +2,39 @@ +Wed Apr 15 08:50:43 UTC 2020 - pgaj...@suse.com + +- version update to 0.5.2 + * Remove webui build by default from the spec + * Fix download-logs usage + * Add command line filters configuration file + * Add benchmark script + * Add only\_model option to the MQTT service + * Remove SCL macros from the spec file + * Fix exclude-lines regexp joblib dump + * Report result to zuul using an artifact instead of the log\_url + * Improve tokenizer for OpenStack logs + * Add exclude lists to the MQTT service + * Add mqtt based worker + * Fix IPv6 tokenization when the last field contains letter + * Add mqtt client service structure + * Refactor worker process in the main logreduce module + * Try to detect binary file + * Ignore bzip2 extension + * Ignore pcap file + * Add exclude-lines argument + * Move the log link to the additional info in the html output + * Fix concurrent logreduce-tests job + * Ignore atop.bin file and tarball + * Make server installation optional + * Fix scikit-learn 0.21.3 support + * Ignore files from supportconfig plugins + * Ignore files from /proc/net + * Ignore files with .raw extension + * Correctly show the gaps between hunks of context + * Show the gaps between hunks of context like grep does + * Add some short options for convenience + * Show default values in help text + * Reduce deprecation warnings by declaring raw strings + * Add server configuration instructions +- deleted patches + - scikit.patch (upstreamed) + +--- Old: logreduce-0.4.0.tar.gz scikit.patch New: logreduce-0.5.2.tar.gz Other differences: -- ++ python-logreduce.spec ++ --- /var/tmp/diff_new_pack.7slrHS/_old 2020-04-17 13:38:39.108269912 +0200 +++ /var/tmp/diff_new_pack.7slrHS/_new 2020-04-17 13:38:39.112269915 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-logreduce # -# 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 @@ -19,14 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-logreduce -Version:0.4.0 +Version:0.5.2 Release:0 Summary:Log file anomaly extractor License:Apache-2.0 Group: Development/Languages/Python URL:https://logreduce.softwarefactory-project.io/ Source: https://files.pythonhosted.org/packages/source/l/logreduce/logreduce-%{version}.tar.gz -Patch0: scikit.patch BuildRequires: %{python_module pbr} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -80,8 +79,6 @@ %prep %setup -q -n logreduce-%{version} -%patch0 -p1 - sed -i -e 's,flake8.*,,' test-requirements.txt %build @@ -92,7 +89,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec -m pytest -v +%pytest %files %{python_files} %license LICENSE @@ -101,6 +98,7 @@ %python3_only %{_bindir}/logreduce-client %python3_only %{_bindir}/logreduce-server %python3_only %{_bindir}/logreduce-worker +%python3_only %{_bindir}/logreduce-mqtt %{python_sitelib}/* %changelog ++ logreduce-0.4.0.tar.gz -> logreduce-0.5.2.tar.gz ++ 2442 lines of diff (skipped)
commit python-logreduce for openSUSE:Leap:15.2
Hello community, here is the log from the commit of package python-logreduce for openSUSE:Leap:15.2 checked in at 2020-03-09 18:08:17 Comparing /work/SRC/openSUSE:Leap:15.2/python-logreduce (Old) and /work/SRC/openSUSE:Leap:15.2/.python-logreduce.new.26092 (New) Package is "python-logreduce" Mon Mar 9 18:08:17 2020 rev:6 rq:776761 version:0.4.0 Changes: --- /work/SRC/openSUSE:Leap:15.2/python-logreduce/python-logreduce.changes 2020-01-15 15:49:56.667477573 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-logreduce.new.26092/python-logreduce.changes 2020-03-09 18:08:17.708932526 +0100 @@ -1,0 +2,6 @@ +Thu Sep 12 17:38:32 UTC 2019 - Tomáš Chvátal + +- Add aptch to fix build with new scikit: + * scikit.patch + +--- New: scikit.patch Other differences: -- ++ python-logreduce.spec ++ --- /var/tmp/diff_new_pack.nkh4Fb/_old 2020-03-09 18:08:18.084933065 +0100 +++ /var/tmp/diff_new_pack.nkh4Fb/_new 2020-03-09 18:08:18.084933065 +0100 @@ -26,6 +26,7 @@ Group: Development/Languages/Python URL:https://logreduce.softwarefactory-project.io/ Source: https://files.pythonhosted.org/packages/source/l/logreduce/logreduce-%{version}.tar.gz +Patch0: scikit.patch BuildRequires: %{python_module pbr} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -79,6 +80,8 @@ %prep %setup -q -n logreduce-%{version} +%patch0 -p1 + sed -i -e 's,flake8.*,,' test-requirements.txt %build ++ scikit.patch ++ >From e815b790c41a96ef7518a23ab28d9e3bec088541 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Tue, 30 Jul 2019 14:03:12 + Subject: Fix scikit-learn 0.21.3 support Recent scikit release doesn't embed the joblib. Change-Id: Ie8ad434ea08bf72e7418b116b71ed335b38e1252 --- logreduce/process.py| 10 +++--- logreduce/tests/test_process.py | 8 ++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/logreduce/process.py b/logreduce/process.py index f0c8d9b..c934840 100644 --- a/logreduce/process.py +++ b/logreduce/process.py @@ -22,7 +22,11 @@ import uuid import numpy as np import sklearn.utils.validation import sklearn.exceptions -import sklearn.externals +try: +from sklearn.externals import joblib +except ImportError: +# Recent sklearn library doesn't vendor joblib anymore +import joblib from logreduce.models import models from logreduce.tokenizer import remove_ansible_std_lines_lists @@ -63,7 +67,7 @@ class Classifier: fileobj = open(fileobj, 'wb') fileobj.write(b'LGRD') fileobj.write(struct.pack('I', self.version)) -sklearn.externals.joblib.dump(self, fileobj, compress=True) +joblib.dump(self, fileobj, compress=True) self.log.debug("%s: written" % fileobj.name) @staticmethod @@ -81,7 +85,7 @@ class Classifier: if isinstance(fileobj, str): fileobj = open(fileobj, 'rb') Classifier.check(fileobj) -return sklearn.externals.joblib.load(fileobj) +return joblib.load(fileobj) @staticmethod def filename2modelname(filename): diff --git a/logreduce/tests/test_process.py b/logreduce/tests/test_process.py index 0889bb6..b27e692 100644 --- a/logreduce/tests/test_process.py +++ b/logreduce/tests/test_process.py @@ -43,8 +43,12 @@ class ProcessTests(unittest.TestCase): logreduce.process.Classifier.check(model) # joblib load reset the seek for io bytes, bypass model check in test model = io.BytesIO(model.read()) -import sklearn -clf = sklearn.externals.joblib.load(model) +try: +from sklearn.externals import joblib +except ImportError: +# Recent sklearn library doesn't vendor joblib anymore +import joblib +clf = joblib.load(model) # Re-use the model with another test file target = os.path.join(os.path.dirname(baseline), "test_units.py") -- cgit v1.2.1