From 817556f570e7ffa24ecdf97fd9ed18788b3e1c48 Mon Sep 17 00:00:00 2001 From: bnavigator <> Date: Mon, 5 Feb 2024 21:00:55 +0000 Subject: [PATCH] Update python-python-json-logger to version 2.0.7 / rev 11 via SR 1143998 https://build.opensuse.org/request/show/1143998 by user bnavigator + anag+factory - Add patch support-python312.patch: * Support logging changes in Python 3.12+. --- packages/p/python-python-json-logger/.files | Bin 219 -> 280 bytes packages/p/python-python-json-logger/.rev | 10 ++++++++ .../python-python-json-logger.changes | 6 +++++ .../python-python-json-logger.spec | 5 ++-- .../support-python312.patch | 24 ++++++++++++++++++ 5 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 packages/p/python-python-json-logger/support-python312.patch diff --git a/packages/p/python-python-json-logger/.files b/packages/p/python-python-json-logger/.files index a6a44359de939d703fa44daa78ef7c0f95518257..5806a3f00004567f0011acc512370c40d823c7a3 100644 GIT binary patch delta 161 zcmWN}yA8rH5CG8dD+mK1Q3ZOC@BGnSLCGNY#a1d}fhpJmcdSCeBrHSvr}vw^=aBD3 zt=dJ?G|RU0Kvoh9u~9+9AQQRJ+W@3{i*8c;`rXynx+5_CWDNQg6uW52Q6dc@Vtqtg wKZkSMvGtND61t$Y_D)MmBxo=xj;vq`xA#ZR)kGStoG4(^b delta 102 zcmbQibeoa8pt!_31JlH0 z(-ea=^NG6ZDki3h#s-#Y#wKQ|7DmRFX( F0{}e98Z`g_ diff --git a/packages/p/python-python-json-logger/.rev b/packages/p/python-python-json-logger/.rev index 6175ef0f7ca..9bf72367dc6 100644 --- a/packages/p/python-python-json-logger/.rev +++ b/packages/p/python-python-json-logger/.rev @@ -102,4 +102,14 @@ * drop python 3.4 support 1136323 + + 9cdf1dffd05a8b94695d6f61e679c959 + 2.0.7 + + anag+factory + - Add patch support-python312.patch: + * Support logging changes in Python 3.12+. + + 1143998 + diff --git a/packages/p/python-python-json-logger/python-python-json-logger.changes b/packages/p/python-python-json-logger/python-python-json-logger.changes index 34dfb79be66..390480bc0e3 100644 --- a/packages/p/python-python-json-logger/python-python-json-logger.changes +++ b/packages/p/python-python-json-logger/python-python-json-logger.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 1 01:18:35 UTC 2024 - Steve Kowalik + +- Add patch support-python312.patch: + * Support logging changes in Python 3.12+. + ------------------------------------------------------------------- Tue Jan 2 22:49:44 UTC 2024 - Dirk Müller diff --git a/packages/p/python-python-json-logger/python-python-json-logger.spec b/packages/p/python-python-json-logger/python-python-json-logger.spec index c4772d903c5..b5bf106fb69 100644 --- a/packages/p/python-python-json-logger/python-python-json-logger.spec +++ b/packages/p/python-python-json-logger/python-python-json-logger.spec @@ -22,9 +22,10 @@ Version: 2.0.7 Release: 0 Summary: A python library adding a json log formatter License: BSD-2-Clause -Group: Development/Languages/Python URL: https://github.com/madzak/python-json-logger Source: https://files.pythonhosted.org/packages/source/p/python-json-logger/python-json-logger-%{version}.tar.gz +# PATCH-FIX-UPSTREAM gh#madzak/python-json-logger#183 +Patch0: support-python312.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} @@ -52,7 +53,7 @@ A python library adding a json log formatter. %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/python_json_logger-%{version}*-info %{python_sitelib}/pythonjsonlogger +%{python_sitelib}/python_json_logger-%{version}.dist-info %changelog diff --git a/packages/p/python-python-json-logger/support-python312.patch b/packages/p/python-python-json-logger/support-python312.patch new file mode 100644 index 00000000000..0828dbe573b --- /dev/null +++ b/packages/p/python-python-json-logger/support-python312.patch @@ -0,0 +1,24 @@ +From 7c8d06925305c578a1dc7a45d6180c2876cfc082 Mon Sep 17 00:00:00 2001 +From: finswimmer +Date: Mon, 9 Oct 2023 13:56:38 +0200 +Subject: [PATCH] feat: add taskName to RESERVED_ATTRS + +taskName was added in Python 3.12 +--- + src/pythonjsonlogger/jsonlogger.py | 1 + + 1 file changed, 1 insertion(+) + +Index: python-json-logger-2.0.7/src/pythonjsonlogger/jsonlogger.py +=================================================================== +--- python-json-logger-2.0.7.orig/src/pythonjsonlogger/jsonlogger.py ++++ python-json-logger-2.0.7/src/pythonjsonlogger/jsonlogger.py +@@ -21,7 +21,8 @@ RESERVED_ATTRS: Tuple[str, ...] = ( + 'args', 'asctime', 'created', 'exc_info', 'exc_text', 'filename', + 'funcName', 'levelname', 'levelno', 'lineno', 'module', + 'msecs', 'message', 'msg', 'name', 'pathname', 'process', +- 'processName', 'relativeCreated', 'stack_info', 'thread', 'threadName') ++ 'processName', 'relativeCreated', 'stack_info', 'thread', 'threadName', ++ 'taskName') + + +