git: 1570b78b9484 - main - devel/py-logzero: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 Oct 2021 07:18:52 UTC
The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=1570b78b94840adb22f563883c73b223ad7ec73b commit 1570b78b94840adb22f563883c73b223ad7ec73b Author: Neal Nelson <ports@nicandneal.net> AuthorDate: 2021-10-28 01:24:45 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2021-10-28 07:17:17 +0000 devel/py-logzero: Add new port Robust and effective logging for Python 2 and 3. PR: 256924 --- devel/Makefile | 1 + devel/py-logzero/Makefile | 15 +++++++++++++++ devel/py-logzero/distinfo | 3 +++ devel/py-logzero/pkg-descr | 18 ++++++++++++++++++ 4 files changed, 37 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index f17f1b1eb886..3b1e3a5d8f8d 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4710,6 +4710,7 @@ SUBDIR += py-logilab-common SUBDIR += py-loguru SUBDIR += py-logutils + SUBDIR += py-logzero SUBDIR += py-louie SUBDIR += py-lunardate SUBDIR += py-lxml diff --git a/devel/py-logzero/Makefile b/devel/py-logzero/Makefile new file mode 100644 index 000000000000..1a63a4f5491e --- /dev/null +++ b/devel/py-logzero/Makefile @@ -0,0 +1,15 @@ +PORTNAME= logzero +DISTVERSION= 1.7.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= ports@nicandneal.net +COMMENT= Robust and effective logging for Python + +LICENSE= MIT + +USES= python +USE_PYTHON= autoplist distutils + +.include <bsd.port.mk> diff --git a/devel/py-logzero/distinfo b/devel/py-logzero/distinfo new file mode 100644 index 000000000000..7b43b075ef86 --- /dev/null +++ b/devel/py-logzero/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1626095363 +SHA256 (logzero-1.7.0.tar.gz) = 7f73ddd3ae393457236f081ffebd044a3aa2e423a47ae6ddb5179ab90d0ad082 +SIZE (logzero-1.7.0.tar.gz) = 577803 diff --git a/devel/py-logzero/pkg-descr b/devel/py-logzero/pkg-descr new file mode 100644 index 000000000000..d32f2943f636 --- /dev/null +++ b/devel/py-logzero/pkg-descr @@ -0,0 +1,18 @@ +Robust and effective logging for Python 2 and 3. + +- Easy logging to console and/or (rotating) file. +- Provides a fully configured standard Python logger object. +- Pretty formatting, including level-specific colors in the console. +- Windows color output supported by colorama +- Robust against str/bytes encoding problems, works with all kinds of + character encodings and special characters. +- Multiple loggers can write to the same logfile (also across multiple + Python files). +- Global default logger with logzero.logger and custom loggers with + logzero.setup_logger(..). +- Compatible with Python 2 and 3. +- All contained in a single file. +- Licensed under the MIT license. +- Heavily inspired by the Tornado web framework. + +WWW: https://github.com/metachris/logzero