Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jul 2023 20:48:38 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7b56eeb7853e - main - devel/py-flatten-dict: New port: Utility for flattening and unflattening dict-like objects in Python
Message-ID:  <202307022048.362Kmc06083058@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7b56eeb7853ea875c93c10e77af3cb7e2b11799a

commit 7b56eeb7853ea875c93c10e77af3cb7e2b11799a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-02 20:47:55 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-02 20:48:36 +0000

    devel/py-flatten-dict: New port: Utility for flattening and unflattening dict-like objects in Python
---
 devel/Makefile                  |  1 +
 devel/py-flatten-dict/Makefile  | 25 +++++++++++++++++++++++++
 devel/py-flatten-dict/distinfo  |  3 +++
 devel/py-flatten-dict/pkg-descr |  4 ++++
 4 files changed, 33 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 04bbf8f29709..1f7359e54597 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4649,6 +4649,7 @@
     SUBDIR += py-flask-babel
     SUBDIR += py-flatbuffers
     SUBDIR += py-flatdict
+    SUBDIR += py-flatten-dict
     SUBDIR += py-flex
     SUBDIR += py-flexmock
     SUBDIR += py-flit
diff --git a/devel/py-flatten-dict/Makefile b/devel/py-flatten-dict/Makefile
new file mode 100644
index 000000000000..18734ebdf4e3
--- /dev/null
+++ b/devel/py-flatten-dict/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	flatten-dict
+DISTVERSION=	0.4.2
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Utility for flattening and unflattening dict-like objects in Python
+WWW=		https://github.com/ianlini/flatten-dict
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>=1.12:devel/py-six@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist pytest
+
+MAKE_ENV=	GIT_DIR=${WRKSRC} # workaround for the Poetry bug
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-flatten-dict/distinfo b/devel/py-flatten-dict/distinfo
new file mode 100644
index 000000000000..854df089aa77
--- /dev/null
+++ b/devel/py-flatten-dict/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1688322136
+SHA256 (flatten-dict-0.4.2.tar.gz) = 506a96b6e6f805b81ae46a0f9f31290beb5fa79ded9d80dbe1b7fa236ab43076
+SIZE (flatten-dict-0.4.2.tar.gz) = 10362
diff --git a/devel/py-flatten-dict/pkg-descr b/devel/py-flatten-dict/pkg-descr
new file mode 100644
index 000000000000..9ae1fcad5b42
--- /dev/null
+++ b/devel/py-flatten-dict/pkg-descr
@@ -0,0 +1,4 @@
+This package provides a function flatten() for flattening dict-like objects in
+Python. It also provides some key joining methods (reducer), and you can choose
+the reducer you want or even implement your own reducer. You can also invert the
+resulting flat dict using unflatten().



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307022048.362Kmc06083058>