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 20.1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/35e1aa3d7574
branches:  trunk
changeset: 439920:35e1aa3d7574
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Sep 30 07:01:52 2020 +0000

description:
py-structlog: updated to 20.1.0

20.1.0

Deprecations:
- This is the last version to support Python 2.7 (including PyPy) and 3.5.
  All following versions will only support Python 3.6 or later.

Changes:
- Added a new module ``structlog.contextvars`` that allows to have a global but context-local ``structlog`` context the same way as with ``structlog.threadlocal`` since 19.2.0.
- Added a new module ``structlog.testing`` for first class testing support.
  The first entry is the context manager ``capture_logs()`` that allows to make assertions about structured log calls.
- Added ``structlog.threadlocal.unbind_threadlocal()``.
- The logger created by ``structlog.get_logger()`` is not detected as an abstract method anymore, when attached to an abstract base class.
- ``colorama`` isn't initialized lazily on Windows anymore because it breaks rendering.

diffstat:

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

diffs (64 lines):

diff -r d8262d240a28 -r 35e1aa3d7574 sysutils/py-structlog/Makefile
--- a/sysutils/py-structlog/Makefile    Wed Sep 30 06:52:40 2020 +0000
+++ b/sysutils/py-structlog/Makefile    Wed Sep 30 07:01:52 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2019/10/19 14:41:27 adam Exp $
+# $NetBSD: Makefile,v 1.10 2020/09/30 07:01:52 adam Exp $
 
-DISTNAME=      structlog-19.2.0
+DISTNAME=      structlog-20.1.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    sysutils python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/structlog/}
@@ -14,7 +14,6 @@
 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-runner-[0-9]*:../../devel/py-test-runner
 TEST_DEPENDS+= ${PYPKGPREFIX}-twisted-[0-9]*:../../net/py-twisted
 
diff -r d8262d240a28 -r 35e1aa3d7574 sysutils/py-structlog/PLIST
--- a/sysutils/py-structlog/PLIST       Wed Sep 30 06:52:40 2020 +0000
+++ b/sysutils/py-structlog/PLIST       Wed Sep 30 07:01:52 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2017/10/07 11:18:28 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2020/09/30 07:01:52 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -26,6 +26,9 @@
 ${PYSITELIB}/structlog/_utils.py
 ${PYSITELIB}/structlog/_utils.pyc
 ${PYSITELIB}/structlog/_utils.pyo
+${PYSITELIB}/structlog/contextvars.py
+${PYSITELIB}/structlog/contextvars.pyc
+${PYSITELIB}/structlog/contextvars.pyo
 ${PYSITELIB}/structlog/dev.py
 ${PYSITELIB}/structlog/dev.pyc
 ${PYSITELIB}/structlog/dev.pyo
@@ -38,6 +41,9 @@
 ${PYSITELIB}/structlog/stdlib.py
 ${PYSITELIB}/structlog/stdlib.pyc
 ${PYSITELIB}/structlog/stdlib.pyo
+${PYSITELIB}/structlog/testing.py
+${PYSITELIB}/structlog/testing.pyc
+${PYSITELIB}/structlog/testing.pyo
 ${PYSITELIB}/structlog/threadlocal.py
 ${PYSITELIB}/structlog/threadlocal.pyc
 ${PYSITELIB}/structlog/threadlocal.pyo
diff -r d8262d240a28 -r 35e1aa3d7574 sysutils/py-structlog/distinfo
--- a/sysutils/py-structlog/distinfo    Wed Sep 30 06:52:40 2020 +0000
+++ b/sysutils/py-structlog/distinfo    Wed Sep 30 07:01:52 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.8 2019/10/19 14:41:27 adam Exp $
+$NetBSD: distinfo,v 1.9 2020/09/30 07:01:52 adam Exp $
 
-SHA1 (structlog-19.2.0.tar.gz) = 680046b43650724d9faa5b51b7ea528b458000b6
-RMD160 (structlog-19.2.0.tar.gz) = 28af19ef74217986f119fa0217e6ec7d5de98f93
-SHA512 (structlog-19.2.0.tar.gz) = 9211ed7ebc146d90b10e5527583b9bfc243a0c18af30da2e88279cbd40b1d6639ed88e12a51a29f43c8a02703f8829422cb4b90971acd7e03e2f624bec6c4fe2
-Size (structlog-19.2.0.tar.gz) = 327709 bytes
+SHA1 (structlog-20.1.0.tar.gz) = 8e0fe9ee26c4d39a0b96be7ceeea12e3565ba691
+RMD160 (structlog-20.1.0.tar.gz) = 30cdae480081f30c8f51aba859eec94758e7d2af
+SHA512 (structlog-20.1.0.tar.gz) = 87e4909e4a8cee396cc9b78212f13819632c303448bea28e78d574b981435aa29dc5620d59785788ae165af805761cbf97fa4d1ec49a3bf3b887ae76c91b18f3
+Size (structlog-20.1.0.tar.gz) = 332376 bytes



Home | Main Index | Thread Index | Old Index