pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/py-structlog



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Jan  8 19:56:14 UTC 2024

Modified Files:
        pkgsrc/sysutils/py-structlog: Makefile PLIST distinfo

Log Message:
py-structlog: updated to 24.1.0

24.1.0

Fixed

- The lazy logger proxy returned by `structlog.get_logger()` now returns its initial values when asked for context.
 When asked for context before binding for the first time, it returned an empty dictionary in 23.3.0.

- The displayed level name when using `structlog.stdlib.BoundLogger.exception()` is `"error"` instead of `"exception"`.
 Fixes regression in 23.3.0.

- Don't ignore the `width` argument of `RichTracebackFormatter`.

23.3.0

Added

- The colorful development logger is now even more configurable!
 Choose freely your colors and the order of the key-value pairs!
 Implement your own formatters for certain keys!

 Implementing the output on top of the new columns API has changed the default very slightly, but shouldn't be noticeable.

- Async log methods (those starting with an `a`) now also support the collection of callsite information using `structlog.processors.CallsiteParameterAdder`.

Changed

- `structlog.stdlib.recreate_defaults()` now also adds `structlog.stdlib.add_logger_name` to the processors.
 Check out the [updated screenshot](https://raw.githubusercontent.com/hynek/structlog/main/docs/_static/console_renderer.png)!

Fixed

- The return value from `get_logger()` (a `BoundLoggerLazyProxy`) now passes `isinstance`-checks against `structlog.typing.BindableLogger` on Python 3.12.

- `structlog.threadlocal.tmp_bind()` now also works with `BoundLoggerLazyProxy` (in other words: before anything is bound to a bound logger).

- stdlib: `ProcessorFormatter` can now be told to not render the log record message using `getMessage` and just `str(record.msg)` instead.

- stdlib: `structlog.stdlib.BoundLogger.exception()`'s handling of`LogRecord.exc_info` is now set consistent with `logging`.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/sysutils/py-structlog/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/sysutils/py-structlog/PLIST
cvs rdiff -u -r1.15 -r1.16 pkgsrc/sysutils/py-structlog/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/py-structlog/Makefile
diff -u pkgsrc/sysutils/py-structlog/Makefile:1.20 pkgsrc/sysutils/py-structlog/Makefile:1.21
--- pkgsrc/sysutils/py-structlog/Makefile:1.20  Sat Oct 28 19:57:16 2023
+++ pkgsrc/sysutils/py-structlog/Makefile       Mon Jan  8 19:56:14 2024
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2023/10/28 19:57:16 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2024/01/08 19:56:14 adam Exp $
 
-DISTNAME=      structlog-21.5.0
+DISTNAME=      structlog-24.1.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
 CATEGORIES=    sysutils python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/structlog/}
 
@@ -11,25 +10,17 @@ HOMEPAGE=   http://www.structlog.org/
 COMMENT=       Painless structural logging
 LICENSE=       apache-2.0 AND mit
 
-TOOL_DEPENDS+= ${PYPKGPREFIX}-flit_core-[0-9]*:../../devel/py-flit_core
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme>=22.8.0-[0-9]*:../../devel/py-hatch-fancy-pypi-readme
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-vcs-[0-9]*:../../devel/py-hatch-vcs
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
 TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun>=0.2.8:../../devel/py-freezegun
 TEST_DEPENDS+= ${PYPKGPREFIX}-pretend-[0-9]*:../../devel/py-pretend
 TEST_DEPENDS+= ${PYPKGPREFIX}-simplejson-[0-9]*:../../converters/py-simplejson
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-asyncio-[0-9]*:../../devel/py-test-asyncio
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-randomly-[0-9]*:../../devel/py-test-randomly
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
-TEST_DEPENDS+= ${PYPKGPREFIX}-twisted-[0-9]*:../../net/py-twisted
-
-PYTHON_VERSIONS_INCOMPATIBLE=  27
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-asyncio>=0.17:../../devel/py-test-asyncio
 
 USE_LANGUAGES= # none
 
-# needs to be installed first
-# as of 21.5.0
-# 620 passed, 18 skipped, 1 xfailed, 9 warnings, 43 errors
-do-test:
-       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/sysutils/py-structlog/PLIST
diff -u pkgsrc/sysutils/py-structlog/PLIST:1.7 pkgsrc/sysutils/py-structlog/PLIST:1.8
--- pkgsrc/sysutils/py-structlog/PLIST:1.7      Sat Oct 28 19:57:16 2023
+++ pkgsrc/sysutils/py-structlog/PLIST  Mon Jan  8 19:56:14 2024
@@ -1,10 +1,10 @@
-@comment $NetBSD: PLIST,v 1.7 2023/10/28 19:57:16 wiz Exp $
-${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
-${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.apache2
-${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.mit
+@comment $NetBSD: PLIST,v 1.8 2024/01/08 19:56:14 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE-APACHE
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE-MIT
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/NOTICE
 ${PYSITELIB}/structlog/__init__.py
 ${PYSITELIB}/structlog/__init__.pyc
 ${PYSITELIB}/structlog/__init__.pyo
@@ -26,9 +26,12 @@ ${PYSITELIB}/structlog/_greenlets.pyo
 ${PYSITELIB}/structlog/_log_levels.py
 ${PYSITELIB}/structlog/_log_levels.pyc
 ${PYSITELIB}/structlog/_log_levels.pyo
-${PYSITELIB}/structlog/_loggers.py
-${PYSITELIB}/structlog/_loggers.pyc
-${PYSITELIB}/structlog/_loggers.pyo
+${PYSITELIB}/structlog/_native.py
+${PYSITELIB}/structlog/_native.pyc
+${PYSITELIB}/structlog/_native.pyo
+${PYSITELIB}/structlog/_output.py
+${PYSITELIB}/structlog/_output.pyc
+${PYSITELIB}/structlog/_output.pyo
 ${PYSITELIB}/structlog/_utils.py
 ${PYSITELIB}/structlog/_utils.pyc
 ${PYSITELIB}/structlog/_utils.pyo
@@ -54,9 +57,15 @@ ${PYSITELIB}/structlog/testing.pyo
 ${PYSITELIB}/structlog/threadlocal.py
 ${PYSITELIB}/structlog/threadlocal.pyc
 ${PYSITELIB}/structlog/threadlocal.pyo
+${PYSITELIB}/structlog/tracebacks.py
+${PYSITELIB}/structlog/tracebacks.pyc
+${PYSITELIB}/structlog/tracebacks.pyo
 ${PYSITELIB}/structlog/twisted.py
 ${PYSITELIB}/structlog/twisted.pyc
 ${PYSITELIB}/structlog/twisted.pyo
 ${PYSITELIB}/structlog/types.py
 ${PYSITELIB}/structlog/types.pyc
 ${PYSITELIB}/structlog/types.pyo
+${PYSITELIB}/structlog/typing.py
+${PYSITELIB}/structlog/typing.pyc
+${PYSITELIB}/structlog/typing.pyo

Index: pkgsrc/sysutils/py-structlog/distinfo
diff -u pkgsrc/sysutils/py-structlog/distinfo:1.15 pkgsrc/sysutils/py-structlog/distinfo:1.16
--- pkgsrc/sysutils/py-structlog/distinfo:1.15  Fri Jan  7 17:04:31 2022
+++ pkgsrc/sysutils/py-structlog/distinfo       Mon Jan  8 19:56:14 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.15 2022/01/07 17:04:31 adam Exp $
+$NetBSD: distinfo,v 1.16 2024/01/08 19:56:14 adam Exp $
 
-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
+BLAKE2s (structlog-24.1.0.tar.gz) = c727457bbdbd1f0b4559c5d721b9c1de9156b8884ee8dc4940632d4f23f9167e
+SHA512 (structlog-24.1.0.tar.gz) = bb64d8d4ab9afe7482bdaafc3efae833426a256575ff99d013ae1438f3d5d0261842e598028ea644824577f579c5c4704108ce597de0a2eab5ffc1615a609ea6
+Size (structlog-24.1.0.tar.gz) = 1340948 bytes



Home | Main Index | Thread Index | Old Index