git: 74d7545c03e5 - main - devel/py-logistro: New port: Simple wrapper over logging for a couple basic features
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Mar 2025 07:20:38 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=74d7545c03e5de9714f8c72340eb20a5609d2283
commit 74d7545c03e5de9714f8c72340eb20a5609d2283
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-03-04 05:34:12 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
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 <bsd.port.mk>
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.