pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/py-structlog py-structlog: updated to 21.5.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eb9876e6eb74
branches:  trunk
changeset: 371242:eb9876e6eb74
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Jan 07 17:04:31 2022 +0000

description:
py-structlog: updated to 21.5.0

21.5.0 (2021-12-16)
-------------------
Changes:
- Added the ``structlog.processors.LogfmtRenderer`` processor to render log lines using the `logfmt <https://brandur.org/logfmt>`_ format.
- Added the ``structlog.stdlib.ExtraAdder`` processor that adds extra attributes of ``logging.LogRecord`` objects to the event dictionary.
  This processor can be used for adding data passed in the ``extra`` parameter of the ``logging`` module's log methods to the event dictionary.
- Added the ``structlog.processor.CallsiteParameterAdder`` processor that adds parameters of the callsite that an event dictionary orginated from to the event dictionary.
  This processor can be used to enrich events dictionaries with information such as the function name, line number and filename that an event dictionary orignated from.


21.4.0 (2021-11-25)
-------------------
Changes:
- Fixed import when running in optimized mode (``PYTHONOPTIMIZE=2`` or ``python -OO``).
- Added the ``structlog.threadlocal.bound_threadlocal`` and ``structlog.contextvars.bound_contextvars`` decorator/context managers to temporarily bind key/value pairs to a thread-local and 
context-local context.



21.3.0 (2021-11-20)
-------------------
Backward-incompatible changes:
- ``structlog`` switched its packaging to `flit <https://flit.readthedocs.io/>`_.
  Users shouldn't notice a difference, but (re-)packagers might.

Changes:
- ``structlog.dev.ConsoleRenderer`` now has ``sort_keys`` boolean parameter that allows to disable the sorting of keys on output.
- ``structlog.processors.TimeStamper`` now works well with FreezeGun even when it gets applied before the loggers are configured.
- ``structlog.stdlib.AsyncBoundLogger`` now determines the running loop when logging, not on instantiation.
  That has a minor performance impact, but makes it more robust when loops change (e.g. ``aiohttp.web.run_app()``), or you want to use ``sync_bl`` *before* a loop has started.
- ``structlog.stdlib.ProcessorFormatter`` now has a *processors* argument that allows to define a processor chain to run over *all* log entries.

  Before running the chain, two additional keys are added to the event dictionary: ``_record`` and ``_from_structlog``.
  With them it's possible to extract information from ``logging.LogRecord``\s and differentiate between ``structlog`` and ``logging`` log entries while processing them.

  The old *processor* (singular) parameter is now deprecated, but no plans exist to remove it.

diffstat:

 sysutils/py-structlog/Makefile |  7 ++++---
 sysutils/py-structlog/PLIST    |  4 +---
 sysutils/py-structlog/distinfo |  8 ++++----
 3 files changed, 9 insertions(+), 10 deletions(-)

diffs (50 lines):

diff -r 6117c7df2716 -r eb9876e6eb74 sysutils/py-structlog/Makefile
--- a/sysutils/py-structlog/Makefile    Fri Jan 07 16:58:05 2022 +0000
+++ b/sysutils/py-structlog/Makefile    Fri Jan 07 17:04:31 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2022/01/04 20:54:50 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2022/01/07 17:04:31 adam Exp $
 
-DISTNAME=      structlog-21.2.0
+DISTNAME=      structlog-21.5.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    sysutils python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/structlog/}
 
@@ -18,6 +17,8 @@
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-randomly-[0-9]*:../../devel/py-test-randomly
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 
+PYSETUP=       -c 'from setuptools import setup; setup(name="structlog", version="${PKGVERSION_NOREV}", packages=["structlog"], package_data={"": ["*"]}, package_dir={"": "src"})'
+
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/pyversion.mk"
diff -r 6117c7df2716 -r eb9876e6eb74 sysutils/py-structlog/PLIST
--- a/sysutils/py-structlog/PLIST       Fri Jan 07 16:58:05 2022 +0000
+++ b/sysutils/py-structlog/PLIST       Fri Jan 07 17:04:31 2022 +0000
@@ -1,9 +1,7 @@
-@comment $NetBSD: PLIST,v 1.4 2021/02/07 15:42:49 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2022/01/07 17:04:31 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/structlog/__init__.py
 ${PYSITELIB}/structlog/__init__.pyc
diff -r 6117c7df2716 -r eb9876e6eb74 sysutils/py-structlog/distinfo
--- a/sysutils/py-structlog/distinfo    Fri Jan 07 16:58:05 2022 +0000
+++ b/sysutils/py-structlog/distinfo    Fri Jan 07 17:04:31 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2021/10/26 17:29:40 adam Exp $
+$NetBSD: distinfo,v 1.15 2022/01/07 17:04:31 adam Exp $
 
-BLAKE2s (structlog-21.2.0.tar.gz) = c411b5f0c2fb0cc1b30ccd1bed6cfadd7f3e5f7d35dca5bfa154fd0c8bf8cde3
-SHA512 (structlog-21.2.0.tar.gz) = 30fe54b07e8d860e990d78292bc17a946995f5817eabeed62126ae34a823da313ac88ce95493ef1eb2cd20d092994472399f6578f99b565b640b10ea264b82bb
-Size (structlog-21.2.0.tar.gz) = 449863 bytes
+BLAKE2s (structlog-21.5.0.tar.gz) = 6dc69b414c2b2a167eccb0d7f8acd79801457db6bf5a31a584517b2efd6457e7
+SHA512 (structlog-21.5.0.tar.gz) = 3183f9fe5b6638a39e2bce1670eed0fcef47b790811f286047ba5585887096cc1ae180bd6a268769c675fb4fe69b92f016e4917f200e7ed1dc451e39d89089c0
+Size (structlog-21.5.0.tar.gz) = 473089 bytes



Home | Main Index | Thread Index | Old Index