summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2020-03-30 19:26:49 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2020-03-30 19:26:49 +0000
commit0279a62727fd29dafeb35c533b60f0ec089c1d31 (patch)
tree07cd7ecfcef962eb4b2b69a9a4acbca9f906117f
parentnet/wireguard: Implement reload command in rc.d script to reload all peer (diff)
[NEW] devel/py-dotted: Access dicts and lists with a dotted path notation
A Python library that provides a method of accessing lists and dicts with a dotted path notation. It is useful to access a deep path inside a complex object composed of lists and dicts. WWW: https://github.com/carlosescri/DottedDict/
Notes
Notes: svn path=/head/; revision=529910
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-dotted/Makefile29
-rw-r--r--devel/py-dotted/distinfo3
-rw-r--r--devel/py-dotted/pkg-descr5
4 files changed, 38 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 466df38d3ce9..d4360d1c935a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4321,6 +4321,7 @@
SUBDIR += py-docopt
SUBDIR += py-dogpile.cache
SUBDIR += py-doit
+ SUBDIR += py-dotted
SUBDIR += py-dtfabric
SUBDIR += py-durus
SUBDIR += py-dynrules
diff --git a/devel/py-dotted/Makefile b/devel/py-dotted/Makefile
new file mode 100644
index 000000000000..39d1e749d9aa
--- /dev/null
+++ b/devel/py-dotted/Makefile
@@ -0,0 +1,29 @@
+# Created by: Muhammad Moinur Rahman <bofh@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= dotted
+PORTVERSION= 0.1.8
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= bofh@FreeBSD.org
+COMMENT= Access dicts and lists with a dotted path notation
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.11.0:devel/py-six@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}unittest2>0:devel/py-unittest2@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+do-test:
+ @(cd ${TEST_WRKSRC} && ${SETENV} ${PYTHON_CMD} -m dotted.test.test_collection)
+
+.include <bsd.port.mk>
diff --git a/devel/py-dotted/distinfo b/devel/py-dotted/distinfo
new file mode 100644
index 000000000000..db9324221ab2
--- /dev/null
+++ b/devel/py-dotted/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1585595331
+SHA256 (dotted-0.1.8.tar.gz) = e0334688d854461b3b065e54b80781cd7cd2545e0692756c5244be0aeec41bdf
+SIZE (dotted-0.1.8.tar.gz) = 8938
diff --git a/devel/py-dotted/pkg-descr b/devel/py-dotted/pkg-descr
new file mode 100644
index 000000000000..1c79f4986951
--- /dev/null
+++ b/devel/py-dotted/pkg-descr
@@ -0,0 +1,5 @@
+A Python library that provides a method of accessing lists and dicts with a
+dotted path notation. It is useful to access a deep path inside a complex object
+composed of lists and dicts.
+
+WWW: https://github.com/carlosescri/DottedDict/