From nobody Tue Mar 4 07:20:38 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Z6Rsy6Jqkz5pjvs; Tue, 04 Mar 2025 07:20:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z6Rsy3K0Jz43t7; Tue, 04 Mar 2025 07:20:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741072838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Wu38kkwzEwYbRTIvkidYgk8cikVSndyUp/fVcVIaPG8=; b=bLrxOQFr+rBZgNHTJnThMjhC8G6QCVmqXEkkQSID9YxtZQiEujIKVgUuPkBmy303Qe2A+w mKF8hk5PmLqy5ophzPd3y9VDgoLCIsycrK0V+GCnWEDNNEFxNPwnoS6vm15CRvmF+0Ky3x 9Jlyyga9tpjjhvrpLfT+NpzuIiAVaxFZ5ETBTYJRvL87AcJDQ/7dK+RAwJrT46nkPIZ3uj 2yg7shlMkwxr4vA9B6T5EoJ/lhb6w0OHt1VdZEUhcbGoMHm/kK2xD9qP7fjLgpJ8B1hAj0 KPfOo4w6/3pSA5PCRmUYAvTTTOeNW1H3CXovUmtGGPLcN83whgEfIi3mZa+zmg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741072838; a=rsa-sha256; cv=none; b=ZcZHkC/AY24TnOiqcZLqdOxia3BLKMyhPSlHgYeq0m7lkix7okXjkxsuhTHOmgcal7cXBG O7xa9kq8R92Aa9+PMu4Z1NYrR3JHcf1V8LHBanr5sMzFLEVJ87e/WRzCqN55+cdZ7nwP/W yt9FRsRZWmTpX6CZIx/B33YmHP0jdwPMTgCrM6299xQ2YG/51OV1IgPgjpZmlSs9J7acw4 HsTxT0ZcXbqDKwbRSJuFYNRFfBPfvdXbBbusco0GAl38RJoUJ+/uZ51RP3rWIuQcSRT4am i7+z2ie9kzosYEdSjRF10YH6kkvTNZzSFDm9w2Te1DIxP+CULjwwv98yAZ2tyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741072838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Wu38kkwzEwYbRTIvkidYgk8cikVSndyUp/fVcVIaPG8=; b=IsLy9aw4WJHc+uBj0v2BSRUy8dnCO3Zo/z7XpOyYi1Viw/YC91FvQNjQbpOItR/nXDTunN cPyFExTrGAphcOM8G52N6P8pbcEtUXWARxAjMaRYiVpDlXD6hqsVtrVRpflyTEM6rEkLc0 yQGeb6XCyMztI5Z0DtRPCRXup3EM2YHxxCDANmhQvMoEmKzdq1NTldlPNqO6MrHTolQtHY TDijOZZlZ0yyuDPBvIpQURohfLrYpeeXHydLLqS+s8XIzEYypBzoJppwFeg1mzRikOwAXV jygyZal/lvRSNHxPTpSujDOrfnG+usvKjU4E1GPIHMemAEORyGe4NfktMvj4Mg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Z6Rsy2wFFz1Mfn; Tue, 04 Mar 2025 07:20:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5247KcLT004233; Tue, 4 Mar 2025 07:20:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5247KcKQ004230; Tue, 4 Mar 2025 07:20:38 GMT (envelope-from git) Date: Tue, 4 Mar 2025 07:20:38 GMT Message-Id: <202503040720.5247KcKQ004230@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 74d7545c03e5 - main - devel/py-logistro: New port: Simple wrapper over logging for a couple basic features List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 74d7545c03e5de9714f8c72340eb20a5609d2283 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=74d7545c03e5de9714f8c72340eb20a5609d2283 commit 74d7545c03e5de9714f8c72340eb20a5609d2283 Author: Yuri Victorovich AuthorDate: 2025-03-04 05:34:12 +0000 Commit: Yuri Victorovich CommitDate: 2025-03-04 07:17:40 +0000 devel/py-logistro: New port: Simple wrapper over logging for a couple basic features --- devel/Makefile | 1 + devel/py-logistro/Makefile | 28 ++++++++++++++++++++++++++++ devel/py-logistro/distinfo | 3 +++ devel/py-logistro/files/patch-pyproject.toml | 23 +++++++++++++++++++++++ devel/py-logistro/pkg-descr | 4 ++++ 5 files changed, 59 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 9848357ee2c2..c42cc45de4a3 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5200,6 +5200,7 @@ SUBDIR += py-logbook SUBDIR += py-logfury SUBDIR += py-logilab-common + SUBDIR += py-logistro SUBDIR += py-loguru SUBDIR += py-logutils SUBDIR += py-logzero diff --git a/devel/py-logistro/Makefile b/devel/py-logistro/Makefile new file mode 100644 index 000000000000..35e16059ff74 --- /dev/null +++ b/devel/py-logistro/Makefile @@ -0,0 +1,28 @@ +PORTNAME= logistro +DISTVERSION= 1.0.11 +CATEGORIES= devel +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Simple wrapper over logging for a couple basic features +WWW= https://github.com/geopozo/logistro + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +post-patch: # workaround for https://github.com/plotly/Kaleido/issues/288 + @${REINPLACE_CMD} -e "s|version = \"0.0.0\"|version = \"${DISTVERSION}\"|" ${WRKSRC}/pyproject.toml + +# tests as of 1.0.11: +# Results (18.81s): +# 17 passed + +.include diff --git a/devel/py-logistro/distinfo b/devel/py-logistro/distinfo new file mode 100644 index 000000000000..4d1c38be6c85 --- /dev/null +++ b/devel/py-logistro/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1741064677 +SHA256 (logistro-1.0.11.tar.gz) = 9386b65cde9cc71d8c356142a219868612357b3c54ed4e067a78f420c4e51846 +SIZE (logistro-1.0.11.tar.gz) = 7550 diff --git a/devel/py-logistro/files/patch-pyproject.toml b/devel/py-logistro/files/patch-pyproject.toml new file mode 100644 index 000000000000..1e41722659b8 --- /dev/null +++ b/devel/py-logistro/files/patch-pyproject.toml @@ -0,0 +1,23 @@ +--- pyproject.toml.orig 2025-02-10 01:47:09 UTC ++++ pyproject.toml +@@ -1,17 +1,15 @@ + [build-system] +-requires = ["setuptools>=65.0.0", "wheel", "setuptools-git-versioning"] ++requires = ["setuptools>0", "wheel"] + build-backend = "setuptools.build_meta" + + [tool.setuptools.packages] + find = {namespaces = false} + +-[tool.setuptools-git-versioning] +-enabled = true +- + [project] + name = "logistro" ++version = "1.0.11" + description = "Simple wrapper over logging for a couple basic features" +-dynamic = ["version"] ++dynamic = [] + readme = "README.md" + requires-python = ">=3.8" + authors = [ diff --git a/devel/py-logistro/pkg-descr b/devel/py-logistro/pkg-descr new file mode 100644 index 000000000000..8cd7fcf1f273 --- /dev/null +++ b/devel/py-logistro/pkg-descr @@ -0,0 +1,4 @@ +logistro is an extremely light addition to logging, providing sensible defaults. + +It also includes getPipeLogger() which can be passed to Popen() so that its +stderr is piped to the already thread-safe logging library.