pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-zconfig py-zconfig: updated to 3.4.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d3b1a8902a3f
branches:  trunk
changeset: 319694:d3b1a8902a3f
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Feb 18 12:48:58 2019 +0000

description:
py-zconfig: updated to 3.4.0

3.4.0:

Many changes have been made in the support for logging configurations:

- The log handler section types defined by the
  ZConfig.components.logger package support additional, optional
  parameters:

  style
      Used to configure alternate format styles as found in the Python 3
      standard library.  Four style values are supported:
      classic (the default), format (equivalent to style='{'
      in Python 3), template (equivalent to style='$'), and
      safe-template (similar to template, but using the
      string.Template method safe_substitute method).  A
      best-effort implementation is provided for Python 2.

  arbitrary-fields
      A Boolean defauting to False for backward compatibility,
      allows arbitrary replacement field names to be accepted in the
      format string (regardless of the style setting).  This
      supports applications where log records are known to be generated
      with additional string or numeric fields, at least for some
      loggers.  (An exception is still raised at format time if the
      additional fields are not provided, unless the style value
      safe-template is used.)

- The logfile section type defined by the ZConfig.components.logger
  package supports the optional delay and encoding parameters.
  These can only be used for regular files, not the special STDOUT
  and STDERR streams.

- More validation on the parameters to the logfile and
  email-notifier sections is performed early (at the construction of
  the factory, rather than at creation of the logging handler).
  This allows more checking of parameter combinations before any log
  files are opened.

- The ZConfig.components.logger.handlers.log_format data type
  function now supports formats that include numeric formatting for
  levelno, and accept funcName as a valid log record field
  (added in Python 2.6 and 3.1).

diffstat:

 devel/py-zconfig/Makefile |   8 ++++----
 devel/py-zconfig/PLIST    |  11 ++++++++++-
 devel/py-zconfig/distinfo |  10 +++++-----
 3 files changed, 19 insertions(+), 10 deletions(-)

diffs (70 lines):

diff -r cbef5ba5f1c8 -r d3b1a8902a3f devel/py-zconfig/Makefile
--- a/devel/py-zconfig/Makefile Mon Feb 18 11:47:41 2019 +0000
+++ b/devel/py-zconfig/Makefile Mon Feb 18 12:48:58 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2018/10/23 09:46:43 adam Exp $
+# $NetBSD: Makefile,v 1.20 2019/02/18 12:48:58 adam Exp $
 
-DISTNAME=      ZConfig-3.3.0
+DISTNAME=      ZConfig-3.4.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=Z/ZConfig/}
@@ -18,8 +18,8 @@
 
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
-               ${MV} zconfig zconfig-${PYVERSSUFFIX} && \
-               ${MV} zconfig_schema2html zconfig_schema2html-${PYVERSSUFFIX} || ${TRUE}
+       ${MV} zconfig zconfig-${PYVERSSUFFIX} && \
+       ${MV} zconfig_schema2html zconfig_schema2html-${PYVERSSUFFIX} || ${TRUE}
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r cbef5ba5f1c8 -r d3b1a8902a3f devel/py-zconfig/PLIST
--- a/devel/py-zconfig/PLIST    Mon Feb 18 11:47:41 2019 +0000
+++ b/devel/py-zconfig/PLIST    Mon Feb 18 12:48:58 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2018/10/23 09:46:43 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2019/02/18 12:48:58 adam Exp $
 bin/zconfig-${PYVERSSUFFIX}
 bin/zconfig_schema2html-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
@@ -53,6 +53,9 @@
 ${PYSITELIB}/ZConfig/components/logger/factory.py
 ${PYSITELIB}/ZConfig/components/logger/factory.pyc
 ${PYSITELIB}/ZConfig/components/logger/factory.pyo
+${PYSITELIB}/ZConfig/components/logger/formatter.py
+${PYSITELIB}/ZConfig/components/logger/formatter.pyc
+${PYSITELIB}/ZConfig/components/logger/formatter.pyo
 ${PYSITELIB}/ZConfig/components/logger/handlers.py
 ${PYSITELIB}/ZConfig/components/logger/handlers.pyc
 ${PYSITELIB}/ZConfig/components/logger/handlers.pyo
@@ -67,6 +70,12 @@
 ${PYSITELIB}/ZConfig/components/logger/tests/__init__.py
 ${PYSITELIB}/ZConfig/components/logger/tests/__init__.pyc
 ${PYSITELIB}/ZConfig/components/logger/tests/__init__.pyo
+${PYSITELIB}/ZConfig/components/logger/tests/support.py
+${PYSITELIB}/ZConfig/components/logger/tests/support.pyc
+${PYSITELIB}/ZConfig/components/logger/tests/support.pyo
+${PYSITELIB}/ZConfig/components/logger/tests/test_formatter.py
+${PYSITELIB}/ZConfig/components/logger/tests/test_formatter.pyc
+${PYSITELIB}/ZConfig/components/logger/tests/test_formatter.pyo
 ${PYSITELIB}/ZConfig/components/logger/tests/test_logger.py
 ${PYSITELIB}/ZConfig/components/logger/tests/test_logger.pyc
 ${PYSITELIB}/ZConfig/components/logger/tests/test_logger.pyo
diff -r cbef5ba5f1c8 -r d3b1a8902a3f devel/py-zconfig/distinfo
--- a/devel/py-zconfig/distinfo Mon Feb 18 11:47:41 2019 +0000
+++ b/devel/py-zconfig/distinfo Mon Feb 18 12:48:58 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.6 2018/10/23 09:46:43 adam Exp $
+$NetBSD: distinfo,v 1.7 2019/02/18 12:48:58 adam Exp $
 
-SHA1 (ZConfig-3.3.0.tar.gz) = 6978cff09d6af1e46b13d2e2d919232d93598f0e
-RMD160 (ZConfig-3.3.0.tar.gz) = 4ae2034fba8a1e26ff05872ce491bfe060ecec66
-SHA512 (ZConfig-3.3.0.tar.gz) = 47c166f04dafbf3391e0d5b323751728b8d87e63a3eb37837ce7bab3d31ab52f1d3d7236aa9d35fd81a248b72811f73796d0c21b5b657758f0f22068a8d9ec74
-Size (ZConfig-3.3.0.tar.gz) = 113198 bytes
+SHA1 (ZConfig-3.4.0.tar.gz) = a90792d3611445b6d4f2a704a7db3a986397bc64
+RMD160 (ZConfig-3.4.0.tar.gz) = c1bdecc29bbb150d271e32dc61e79eca2640a959
+SHA512 (ZConfig-3.4.0.tar.gz) = de6589b50200be10604bb898465b8ea2bcc6bf66dcbc32e22359bd04d6d4e81a25797e9b3fe195052503b06aa5fa3253b8dfc6d003d24b3b08d5e5b1779382b3
+Size (ZConfig-3.4.0.tar.gz) = 121009 bytes



Home | Main Index | Thread Index | Old Index