git: e7b401059d8f - main - devel/py-tabulate2: New port: Pretty-print tabular data in Python (new gen)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 15 Nov 2024 09:20:36 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e7b401059d8f6ca23f1c499879ac3f6c57c369e0
commit e7b401059d8f6ca23f1c499879ac3f6c57c369e0
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-11-15 05:19:22 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-11-15 09:20:26 +0000
devel/py-tabulate2: New port: Pretty-print tabular data in Python (new gen)
---
devel/Makefile | 1 +
devel/py-tabulate2/Makefile | 27 +++++++++++++++++++++++++++
devel/py-tabulate2/distinfo | 3 +++
devel/py-tabulate2/pkg-descr | 10 ++++++++++
4 files changed, 41 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 1e9a4180b102..c926078c07e6 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5929,6 +5929,7 @@
SUBDIR += py-sysv_ipc
SUBDIR += py-tables
SUBDIR += py-tabulate
+ SUBDIR += py-tabulate2
SUBDIR += py-tabulator
SUBDIR += py-tailer
SUBDIR += py-tapi
diff --git a/devel/py-tabulate2/Makefile b/devel/py-tabulate2/Makefile
new file mode 100644
index 000000000000..be3a81ae20f2
--- /dev/null
+++ b/devel/py-tabulate2/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= tabulate2
+PORTVERSION= 1.10.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Pretty-print tabular data in Python (new gen)
+WWW= https://github.com/RaSan147/python-tabulate
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4.3:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wcwidth>0:devel/py-wcwidth@${PY_FLAVOR}
+TEST_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wcwidth>0:devel/py-wcwidth@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist concurrent pytest # one test hangs
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-tabulate2/distinfo b/devel/py-tabulate2/distinfo
new file mode 100644
index 000000000000..71a3fd237ff5
--- /dev/null
+++ b/devel/py-tabulate2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1731646022
+SHA256 (tabulate2-1.10.0.tar.gz) = 6e3ce430ff41a3d9216134d6455d8072a1b0f608f52f9baf784768e08bf8b444
+SIZE (tabulate2-1.10.0.tar.gz) = 93081
diff --git a/devel/py-tabulate2/pkg-descr b/devel/py-tabulate2/pkg-descr
new file mode 100644
index 000000000000..3f85c750c75a
--- /dev/null
+++ b/devel/py-tabulate2/pkg-descr
@@ -0,0 +1,10 @@
+Pretty-print tabular data in Python.
+
+The main use cases of the library are:
+
+printing small tables without hassle: just one function call,
+formatting is guided by the data itself authoring tabular data for
+lightweight plain-text markup: multiple output formats
+suitable for further editing or transformation readable presentation of
+mixed textual and numeric data: smart column alignment,
+configurable number formatting, alignment by a decimal point