git: 00ea6c8db1e5 - main - devel/py-anytree: Python tree data structure.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Aug 2022 16:07:05 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=00ea6c8db1e592cdabad18b6035c0574f86ca633
commit 00ea6c8db1e592cdabad18b6035c0574f86ca633
Author: Kubilay Kocak <koobs@FreeBSD.org>
AuthorDate: 2022-08-09 16:08:52 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2022-08-10 16:06:39 +0000
devel/py-anytree: Python tree data structure.
---
devel/Makefile | 1 +
devel/py-anytree/Makefile | 26 ++++++++++++++++++++++++++
devel/py-anytree/distinfo | 3 +++
devel/py-anytree/pkg-descr | 12 ++++++++++++
4 files changed, 42 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index d8ec5d8d461f..ae05a4d38699 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4111,6 +4111,7 @@
SUBDIR += py-anyconfig
SUBDIR += py-anyio
SUBDIR += py-anyjson
+ SUBDIR += py-anytree
SUBDIR += py-apache_conf_parser
SUBDIR += py-apipkg
SUBDIR += py-apispec
diff --git a/devel/py-anytree/Makefile b/devel/py-anytree/Makefile
new file mode 100644
index 000000000000..28d29782f3f5
--- /dev/null
+++ b/devel/py-anytree/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= anytree
+DISTVERSION= 2.8.0
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= arrowd@FreeBSD.org
+COMMENT= Powerful and Lightweight Python Tree Data Structure
+
+LICENSE= APACHE20
+
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
+ dot:graphics/graphviz
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+# test_tree_png runs `dot` and returns "Error: Could not find/open font"
+# exclude it for now
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= \
+ -k 'not test_tree_png'
+
+.include <bsd.port.mk>
diff --git a/devel/py-anytree/distinfo b/devel/py-anytree/distinfo
new file mode 100644
index 000000000000..921cedb12afc
--- /dev/null
+++ b/devel/py-anytree/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1655948957
+SHA256 (anytree-2.8.0.tar.gz) = 3f0f93f355a91bc3e6245319bf4c1d50e3416cc7a35cc1133c1ff38306bbccab
+SIZE (anytree-2.8.0.tar.gz) = 189484
diff --git a/devel/py-anytree/pkg-descr b/devel/py-anytree/pkg-descr
new file mode 100644
index 000000000000..6183155d4d6a
--- /dev/null
+++ b/devel/py-anytree/pkg-descr
@@ -0,0 +1,12 @@
+Simple, lightweight and extensible Tree data structure.
+
+Supports:
+
+ * Tree Iteration & Rendering
+ * Searching & Cached Searching
+ * Node Resolution
+ * Dictionary, JSON Importers
+ * Dictionary, JSON and Dot Exporters
+ * Multi-Dimensional Trees & Weighted Edges
+
+WWW: https://github.com/c0fec0de/anytree