Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-python-json-logger for
openSUSE:Factory checked in at 2021-11-07 00:19:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-json-logger (Old)
and /work/SRC/openSUSE:Factory/.python-python-json-logger.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-json-logger"
Sun Nov 7 00:19:13 2021 rev:6 rq:929916 version:2.0.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-python-json-logger/python-python-json-logger.changes
2021-06-01 10:39:13.064992424 +0200
+++
/work/SRC/openSUSE:Factory/.python-python-json-logger.new.1890/python-python-json-logger.changes
2021-11-07 00:19:32.860553236 +0100
@@ -1,0 +2,6 @@
+Sat Nov 6 18:37:44 UTC 2021 - Dirk M??ller <[email protected]>
+
+- update to 2.0.2:
+ * drop python 3.4 support
+
+-------------------------------------------------------------------
Old:
----
python-json-logger-2.0.1.tar.gz
New:
----
python-json-logger-2.0.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-json-logger.spec ++++++
--- /var/tmp/diff_new_pack.72KrJK/_old 2021-11-07 00:19:33.308553257 +0100
+++ /var/tmp/diff_new_pack.72KrJK/_new 2021-11-07 00:19:33.308553257 +0100
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-python-json-logger
-Version: 2.0.1
+Version: 2.0.2
Release: 0
Summary: A python library adding a json log formatter
License: BSD-2-Clause
++++++ python-json-logger-2.0.1.tar.gz -> python-json-logger-2.0.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-json-logger-2.0.1/MANIFEST.in
new/python-json-logger-2.0.2/MANIFEST.in
--- old/python-json-logger-2.0.1/MANIFEST.in 2020-10-12 18:26:29.000000000
+0200
+++ new/python-json-logger-2.0.2/MANIFEST.in 2021-07-28 01:09:19.000000000
+0200
@@ -1,2 +1,3 @@
include LICENSE
-recursive-include tests *.py
\ No newline at end of file
+include README.md
+recursive-include tests *.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-json-logger-2.0.1/PKG-INFO
new/python-json-logger-2.0.2/PKG-INFO
--- old/python-json-logger-2.0.1/PKG-INFO 2020-10-12 18:26:52.000000000
+0200
+++ new/python-json-logger-2.0.2/PKG-INFO 2021-07-28 01:09:32.142751200
+0200
@@ -1,12 +1,12 @@
Metadata-Version: 2.1
Name: python-json-logger
-Version: 2.0.1
+Version: 2.0.2
Summary: A python library adding a json log formatter
Home-page: http://github.com/madzak/python-json-logger
Author: Zakaria Zajac
Author-email: [email protected]
License: BSD
-Description: [](https://travis-ci.org/madzak/python-json-logger)
+Description: 
[](https://pypi.python.org/pypi/python-json-logger/)
[](https://pypi.python.org/pypi/python-json-logger/)
@@ -16,7 +16,7 @@
News
=======
- Hi, I see this package is quiet alive and I am sorry for ignoring it
so long. I will be stepping up my maintenance of this package so please allow
me a week to get things back in order (and most likely a new minor version) and
i'll post and update here once I am caught up.
+ Hi, I see this package is quiet alive and I am sorry for ignoring it
so long. I will be stepping up my maintenance of this package so please allow
me a week to get things back in order (and most likely a new minor version) and
I'll post and update here once I am caught up.
Installing
==========
@@ -186,11 +186,12 @@
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: System :: Logging
-Requires-Python: >=3.4
+Requires-Python: >=3.5
Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-json-logger-2.0.1/README.md
new/python-json-logger-2.0.2/README.md
--- old/python-json-logger-2.0.1/README.md 2020-10-12 18:26:29.000000000
+0200
+++ new/python-json-logger-2.0.2/README.md 2021-07-28 01:09:19.000000000
+0200
@@ -1,4 +1,4 @@
-[](https://travis-ci.org/madzak/python-json-logger)
+
[](https://pypi.python.org/pypi/python-json-logger/)
[](https://pypi.python.org/pypi/python-json-logger/)
@@ -8,7 +8,7 @@
News
=======
-Hi, I see this package is quiet alive and I am sorry for ignoring it so long.
I will be stepping up my maintenance of this package so please allow me a week
to get things back in order (and most likely a new minor version) and i'll post
and update here once I am caught up.
+Hi, I see this package is quiet alive and I am sorry for ignoring it so long.
I will be stepping up my maintenance of this package so please allow me a week
to get things back in order (and most likely a new minor version) and I'll post
and update here once I am caught up.
Installing
==========
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-json-logger-2.0.1/setup.cfg
new/python-json-logger-2.0.2/setup.cfg
--- old/python-json-logger-2.0.1/setup.cfg 2020-10-12 18:26:52.000000000
+0200
+++ new/python-json-logger-2.0.2/setup.cfg 2021-07-28 01:09:32.142751200
+0200
@@ -1,5 +1,5 @@
[bdist_wheel]
-python-tag = py34
+python-tag = py3
[egg_info]
tag_build =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-json-logger-2.0.1/setup.py
new/python-json-logger-2.0.2/setup.py
--- old/python-json-logger-2.0.1/setup.py 2020-10-12 18:26:29.000000000
+0200
+++ new/python-json-logger-2.0.2/setup.py 2021-07-28 01:09:19.000000000
+0200
@@ -1,16 +1,17 @@
+from os import path
from setuptools import setup, find_packages
# read the contents of your README file
-from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name="python-json-logger",
- version="2.0.1",
+ version="2.0.2",
url="http://github.com/madzak/python-json-logger",
license="BSD",
+ include_package_data=True,
description="A python library adding a json log formatter",
long_description=long_description,
long_description_content_type='text/markdown',
@@ -19,7 +20,7 @@
package_dir={'': 'src'},
packages=find_packages("src", exclude="tests"),
#
https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
- python_requires='>=3.4',
+ python_requires='>=3.5',
test_suite="tests.tests",
classifiers=[
'Development Status :: 3 - Alpha',
@@ -28,11 +29,12 @@
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: 3.10',
'Topic :: System :: Logging',
]
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-json-logger-2.0.1/src/python_json_logger.egg-info/PKG-INFO
new/python-json-logger-2.0.2/src/python_json_logger.egg-info/PKG-INFO
--- old/python-json-logger-2.0.1/src/python_json_logger.egg-info/PKG-INFO
2020-10-12 18:26:52.000000000 +0200
+++ new/python-json-logger-2.0.2/src/python_json_logger.egg-info/PKG-INFO
2021-07-28 01:09:31.000000000 +0200
@@ -1,12 +1,12 @@
Metadata-Version: 2.1
Name: python-json-logger
-Version: 2.0.1
+Version: 2.0.2
Summary: A python library adding a json log formatter
Home-page: http://github.com/madzak/python-json-logger
Author: Zakaria Zajac
Author-email: [email protected]
License: BSD
-Description: [](https://travis-ci.org/madzak/python-json-logger)
+Description: 
[](https://pypi.python.org/pypi/python-json-logger/)
[](https://pypi.python.org/pypi/python-json-logger/)
@@ -16,7 +16,7 @@
News
=======
- Hi, I see this package is quiet alive and I am sorry for ignoring it
so long. I will be stepping up my maintenance of this package so please allow
me a week to get things back in order (and most likely a new minor version) and
i'll post and update here once I am caught up.
+ Hi, I see this package is quiet alive and I am sorry for ignoring it
so long. I will be stepping up my maintenance of this package so please allow
me a week to get things back in order (and most likely a new minor version) and
I'll post and update here once I am caught up.
Installing
==========
@@ -186,11 +186,12 @@
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: System :: Logging
-Requires-Python: >=3.4
+Requires-Python: >=3.5
Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-json-logger-2.0.1/src/pythonjsonlogger/jsonlogger.py
new/python-json-logger-2.0.2/src/pythonjsonlogger/jsonlogger.py
--- old/python-json-logger-2.0.1/src/pythonjsonlogger/jsonlogger.py
2020-10-12 18:26:29.000000000 +0200
+++ new/python-json-logger-2.0.2/src/pythonjsonlogger/jsonlogger.py
2021-07-28 01:09:19.000000000 +0200
@@ -90,6 +90,7 @@
the formatted string
:param rename_fields: an optional dict, used to rename field names in
the output.
Rename message to @message: {'message': '@message'}
+ :param static_fields: an optional dict, used to add fields with static
values to all logs
:param json_indent: indent parameter for json.dumps
:param json_ensure_ascii: ensure_ascii parameter for json.dumps
:param reserved_attrs: an optional list of fields that will be skipped
when
@@ -107,6 +108,7 @@
self.json_ensure_ascii = kwargs.pop("json_ensure_ascii", True)
self.prefix = kwargs.pop("prefix", "")
self.rename_fields = kwargs.pop("rename_fields", {})
+ self.static_fields = kwargs.pop("static_fields", {})
reserved_attrs = kwargs.pop("reserved_attrs", RESERVED_ATTRS)
self.reserved_attrs = dict(zip(reserved_attrs, reserved_attrs))
self.timestamp = kwargs.pop("timestamp", False)
@@ -155,6 +157,7 @@
log_record[self.rename_fields[field]] =
record.__dict__.get(field)
else:
log_record[field] = record.__dict__.get(field)
+ log_record.update(self.static_fields)
log_record.update(message_dict)
merge_record_extra(record, log_record, reserved=self._skip_fields)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-json-logger-2.0.1/tests/tests.py
new/python-json-logger-2.0.2/tests/tests.py
--- old/python-json-logger-2.0.1/tests/tests.py 2020-10-12 18:26:29.000000000
+0200
+++ new/python-json-logger-2.0.2/tests/tests.py 2021-07-28 01:09:19.000000000
+0200
@@ -52,6 +52,19 @@
self.assertEqual(logJson["@message"], msg)
+ def testAddStaticFields(self):
+ fr = jsonlogger.JsonFormatter(static_fields={'log_stream': 'kafka'})
+
+ self.logHandler.setFormatter(fr)
+
+ msg = "testing static fields"
+ self.logger.info(msg)
+ logJson = json.loads(self.buffer.getvalue())
+
+ self.assertEqual(logJson["log_stream"], "kafka")
+ self.assertEqual(logJson["message"], msg)
+
+
def testFormatKeys(self):
supported_keys = [
'asctime',