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:           Thu Oct 30 15:23:21 UTC 2025

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

Log Message:
py-structlog: updated to 25.5.0

25.5.0

Deprecated

- `structlog.dev.ConsoleRenderer()`'s *pad_event* argument has been renamed to *pad_event_to* to differentiate it from the boolean *pad_level* argument.
  *pad_event* is now deprecated.

Added

- Added `structlog.dev.ConsoleRenderer.get_active()` that returns the currently active `structlog.dev.ConsoleRenderer()`.
- `structlog.dev.ConsoleRenderer()` now supports setting the `exception_formatter` attribute.

  You can now disable the pretty-printing of exceptions by setting it to `structlog.dev.plain_traceback`:

  ```python
  cr = structlog.dev.ConsoleRenderer.get_active()
  cr.exception_formatter = structlog.dev.plain_traceback
  ```

  Same goes for *sort_keys*, *columns*, *colors*, *force_colors*, *level_styles*, *pad_event_to*, *event_key*, *timestamp_key*, and *repr_native_str*.

- Added `structlog.dev.ConsoleRenderer.get_default_column_styles()` for reuse the default column styles.
- `structlog.testing.capture_logs()` now optionally accepts *processors* to apply before capture.
- `structlog.dev.RichTracebackFormatter` now exposes the upstream *code_width* parameter.
  Default *width* is now `None` for full terminal width.
  Full terminal width is now handled by Rich itself, bringing support for reflow and `COLUMN` environment variable.
  Passing `-1` for *width* is now deprecated and automatically replaced by `None`.
- Native loggers now allow the passing of a dictionary for dictionary-based interpolation `log.info("hello %(name)s!", {"name": "world"})`.
- On Python 3.11+, `structlog.processors.CallsiteParameterAdder` now supports `CallsiteParameter.QUAL_NAME` that adds the qualified name of the callsite, including scope and class names.
  This is only available for *structlog*-originated events since the standard library has no equivalent.

- `structlog.stdlib.LoggerFactory` now supports the *stacklevel* parameter.

Changed

- `structlog.dev.rich_traceback()` now throws a more helpful error when Rich is missing.

Fixed

- `structlog.processors.MaybeTimeStamper` now respects the *key* argument when determining whether to overwrite the timestamp field.
- `structlog.tracebacks.extract()` no longer raises a `RecursionError` when the cause chain of an exception contains itself.
- Default config now respects `FORCE_COLOR` on Windows.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/sysutils/py-structlog/Makefile
cvs rdiff -u -r1.22 -r1.23 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.27 pkgsrc/sysutils/py-structlog/Makefile:1.28
--- pkgsrc/sysutils/py-structlog/Makefile:1.27  Sat Aug 16 07:04:57 2025
+++ pkgsrc/sysutils/py-structlog/Makefile       Thu Oct 30 15:23:21 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2025/08/16 07:04:57 adam Exp $
+# $NetBSD: Makefile,v 1.28 2025/10/30 15:23:21 adam Exp $
 
-DISTNAME=      structlog-25.4.0
+DISTNAME=      structlog-25.5.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    sysutils python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/structlog/}

Index: pkgsrc/sysutils/py-structlog/distinfo
diff -u pkgsrc/sysutils/py-structlog/distinfo:1.22 pkgsrc/sysutils/py-structlog/distinfo:1.23
--- pkgsrc/sysutils/py-structlog/distinfo:1.22  Sat Aug 16 07:04:57 2025
+++ pkgsrc/sysutils/py-structlog/distinfo       Thu Oct 30 15:23:21 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.22 2025/08/16 07:04:57 adam Exp $
+$NetBSD: distinfo,v 1.23 2025/10/30 15:23:21 adam Exp $
 
-BLAKE2s (structlog-25.4.0.tar.gz) = 3d64537d44e6a0242174a25021adb45d3f17aff896820ac23fd3b6c1f2132b95
-SHA512 (structlog-25.4.0.tar.gz) = 3806cec911e68bcc8d339308f448eb2aea7395820e435ea127e61912466d46c8757e5d88b9876c41ac1f8cceacb52148fe54e6ff18904543535541b690cbf02c
-Size (structlog-25.4.0.tar.gz) = 1369138 bytes
+BLAKE2s (structlog-25.5.0.tar.gz) = b4580cc3432608a03c850e38a00a6868c04b9520cd43275811797c2b72c02795
+SHA512 (structlog-25.5.0.tar.gz) = 83dc767473aadffda4fb9c883e9757795860c9eaecb1d2c92675b4656700bdff413077ab96d6025bf232168c38d307c56371f2294dd9197a1aa136918f6fd72b
+Size (structlog-25.5.0.tar.gz) = 1460830 bytes



Home | Main Index | Thread Index | Old Index