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:           Sun Jun 28 15:25:23 UTC 2026

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

Log Message:
py-structlog: updated to 26.1.0

26.1.0

Removed

- Python 3.8 and 3.9 support.

Deprecated

- Support for *better-exceptions* is deprecated and will be removed within a year.
  Use our Rich integration or copy-paste the [one line of code you need](https://github.com/hynek/structlog/blob/2c059a0dc029d9370e1e4a6e9683063205bbb68f/src/structlog/dev.py#L488-L498).

Added

- Python 3.15 support.

- `structlog.dev.rich_monochrome_traceback` for Rich-based monochrome exception rendering and add support for it throughout `structlog.dev.ConsoleRenderer` when the user asks for no colors.

- `structlog.BytesLogger` now has a `name` attribute which allows you to use it with the `structlog.stdlib.add_logger_name()` processor *without* using the standard library integration.

- `structlog.processors.CallsiteParameterAdder` now supports `CallsiteParameter.QUAL_MODULE` that adds the qualified import name of the module of the callsite, or `__main__` if the module is the 
entry point.
  This is only available for *structlog*-originated events since the standard library has no equivalent (except for the convention of setting the logger's name to `__name__`).

- `structlog.stdlib.BoundLogger` now has `is_enabled_for()` and `get_effective_level()` methods that are snake_case aliases for its `isEnabledFor()` and `getEffectiveLevel()` methods.
  This makes it more compatible with the native `structlog.typing.FilteringBoundLogger`, so you can swap configurations without changing your call sites.

Changed

- `structlog.dev.ConsoleRenderer` does not warn anymore when the `exception` key has a rendered value despite having a fancy formatter configured.

Fixed

- `structlog.BytesLogger`, `structlog.PrintLogger`, and `structlog.WriteLogger` now hold *weak* references to the files they use for output.
  This prevents their leakage in long-running processes that open many logfiles, such as task executors that create a per-task `BytesLogger` or `WriteLogger`.

- `structlog.WriteLogger` is usable after unpickling.

- `structlog.processors.CallsiteParameterAdder` now reports the calling thread's id and name for async log methods, instead of the thread from the executor pool that runs the underlying sync logger.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 pkgsrc/sysutils/py-structlog/Makefile
cvs rdiff -u -r1.23 -r1.24 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.28 pkgsrc/sysutils/py-structlog/Makefile:1.29
--- pkgsrc/sysutils/py-structlog/Makefile:1.28  Thu Oct 30 15:23:21 2025
+++ pkgsrc/sysutils/py-structlog/Makefile       Sun Jun 28 15:25:23 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.28 2025/10/30 15:23:21 adam Exp $
+# $NetBSD: Makefile,v 1.29 2026/06/28 15:25:23 adam Exp $
 
-DISTNAME=      structlog-25.5.0
+DISTNAME=      structlog-26.1.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.23 pkgsrc/sysutils/py-structlog/distinfo:1.24
--- pkgsrc/sysutils/py-structlog/distinfo:1.23  Thu Oct 30 15:23:21 2025
+++ pkgsrc/sysutils/py-structlog/distinfo       Sun Jun 28 15:25:23 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.23 2025/10/30 15:23:21 adam Exp $
+$NetBSD: distinfo,v 1.24 2026/06/28 15:25:23 adam Exp $
 
-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
+BLAKE2s (structlog-26.1.0.tar.gz) = 4f40e70d4f0203f28f0d2a5c35f82b9f7842988aaccfbc39b87695ade40e86ca
+SHA512 (structlog-26.1.0.tar.gz) = 32fc02431db77841b614086c84aaee529480dcda77d0a5c3d619ab866e9a182ca8adfedea332fb5796bf0ff160fcfe55941a49e8d8361e215756c413f0d7a38a
+Size (structlog-26.1.0.tar.gz) = 1459881 bytes



Home | Main Index | Thread Index | Old Index