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: Wed Jan 29 21:38:08 UTC 2025
Modified Files:
pkgsrc/sysutils/py-structlog: Makefile distinfo
Log Message:
py-structlog: updated to 25.1.0
25.1.0
Added
- Add `structlog.stdlib.render_to_log_args_and_kwargs` processor.
Same as `structlog.stdlib.render_to_log_kwargs`, but also allows to pass positional arguments to `logging`.
With it, you do not need to add `structlog.stdlib.PositionalArgumentsFormatter` processor to format positional arguments from *structlog* loggers.
- Native loggers now have `is_enabled_for()` and `get_effective_level()` methods that mirror the behavior of the standard library's `logging.Logger.isEnabledFor()` and
`logging.Logger.getEffectiveLevel()`.
Changed
- `structlog.typing.BindableLogger` protocol now returns `Self` instead of `BindableLogger`.
This adds a dependency on [*typing-extensions*](https://pypi.org/project/typing-extensions/) for Pythons older than 3.11.
- `structlog.dev.ConsoleRenderer` will quote string value with special characters.
- `structlog.stdlib.recreate_defaults()` now also adds `structlog.stdlib.PositionalArgumentsFormatter`.
In default native mode, this is done by the loggers at the edge.
- `structlog.make_filtering_bound_logger()` now also accepts a string for *min_level*.
Fixed
- Fix handling calls to `{logger}.exception()` outside of exception blocks.
Depending on the structlog configuration,
this either resulted in an event dict key `exception: "MISSING"` or lead to an error.
Now, an invalid or missing `exc_info` will just be ignored.
This means, that calling `{logger}.exception()` outside of an exception block is basically the same as calling `{logger}.error()`.
- Instantiating `structlog.dev.ConsoleRenderer` does not mutate the passed *styles* dict anymore.
- The native `FilteringBoundLogger.fatal()` method now maps to the critical level, as it does in the standard library.
Note that the level is discouraged to use there, so we recommend to stick to `error()` or `critical()`.
- `structlog.tracebacks.ExceptionDictTransformer` now actually accepts `None` for `locals_max_length` and `locals_max_string`.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/sysutils/py-structlog/Makefile
cvs rdiff -u -r1.18 -r1.19 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.23 pkgsrc/sysutils/py-structlog/Makefile:1.24
--- pkgsrc/sysutils/py-structlog/Makefile:1.23 Fri Aug 9 18:59:30 2024
+++ pkgsrc/sysutils/py-structlog/Makefile Wed Jan 29 21:38:08 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.23 2024/08/09 18:59:30 adam Exp $
+# $NetBSD: Makefile,v 1.24 2025/01/29 21:38:08 adam Exp $
-DISTNAME= structlog-24.4.0
+DISTNAME= structlog-25.1.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= sysutils python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/structlog/}
@@ -10,7 +10,7 @@ HOMEPAGE= http://www.structlog.org/
COMMENT= Painless structural logging
LICENSE= apache-2.0 AND mit
-TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme>=22.8.0-[0-9]*:../../devel/py-hatch-fancy-pypi-readme
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatch-fancy-pypi-readme>=22.8.0:../../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
@@ -20,7 +20,5 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-test-async
USE_LANGUAGES= # none
-PYTHON_VERSIONS_INCOMPATIBLE= 27
-
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/py-structlog/distinfo
diff -u pkgsrc/sysutils/py-structlog/distinfo:1.18 pkgsrc/sysutils/py-structlog/distinfo:1.19
--- pkgsrc/sysutils/py-structlog/distinfo:1.18 Fri Aug 9 18:59:30 2024
+++ pkgsrc/sysutils/py-structlog/distinfo Wed Jan 29 21:38:08 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.18 2024/08/09 18:59:30 adam Exp $
+$NetBSD: distinfo,v 1.19 2025/01/29 21:38:08 adam Exp $
-BLAKE2s (structlog-24.4.0.tar.gz) = 7e29b26df31dde4ee594af1ad4fdb513c091bdc851341d5875f94278e9147972
-SHA512 (structlog-24.4.0.tar.gz) = 0dedb73caa9cd8f288267f129b9b61ae7db542fec1c92a38d785e1606d56a1272fb9fb5dd23c04a8fd0ce0a3c41f430d51230475bde4eab1919998187fbe680b
-Size (structlog-24.4.0.tar.gz) = 1348634 bytes
+BLAKE2s (structlog-25.1.0.tar.gz) = 91d4c855e7a51d442ef0a992b5d46bc698fdd1cb3d01224d61ecb038e5dcb8c8
+SHA512 (structlog-25.1.0.tar.gz) = 190722bbd71355fce1dc6842ca3b358a2de99b4823e1175e52205e719b8164e3d5d16f55307e93bb3b4b03d9f655ae01a8ccb89cd3a5908d6d5cf3fa63e0f03a
+Size (structlog-25.1.0.tar.gz) = 1364973 bytes
Home |
Main Index |
Thread Index |
Old Index