From nobody Sun Jul 02 20:48:38 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QvLkH0S8wz4lCjf; Sun, 2 Jul 2023 20:48:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QvLkH02fzz3vXZ; Sun, 2 Jul 2023 20:48:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688330919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7H1l6eZao3T6X6gRUKN1rOfP5MAibfbcXXEptSdlFZI=; b=edZ7fnYyhKDX085q93NsMPaP6HKw0lntYgXIKghNUr0O8N+njwCN4KrRZcpip32cKpHjdO hZAGD4ulbMDMy9yUCVs9yCPm/Ea4mW2AlKWLphVkcsgQ5n7t8rR5UaBIRaKQkpY6RrTWRc 9GFPB2u8XsQFSjzh49DW4lDPOiSDhzoZQo/f7NmbB9aiWt72huYkTmSrT71Fj9VD/dfxkC l8Ha6yJuo4SpFJdPwvm1c1VBJCpSn4vLNxEepK3M3uxv0cReNpkmQ0xYEFLMNlZ3upJvO7 RZEm2DE0QNz/fLNmHHkUyH7e+tyr0BrFxt0TsvHYBcQx7JqAB07njvhcaYZYjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688330919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7H1l6eZao3T6X6gRUKN1rOfP5MAibfbcXXEptSdlFZI=; b=ym+LylKBdi2Au+eY/YTUAgy2HcqJ9cCIsyDvZ8e92SD7LRh/AM4/apoarfBgq3qXBa1JSL uhWHuBpiK7kLhmNvkhuglLTh3AG0paJXxgVXTKgykQkTx0WrYmpjam3he6caur9ZonSGPN nZGeykFsrYtbV9WQbAHepci8gvMbuYQ8GeYhf5jJ5Ob9afV2S1clhmWimZVJlJfMHCYtKK e2Hqm1RwDAicZnBC2eYB1pKhUgcnVGYk/NZerv8tdOz5Nv5Mjr6HQvqQ1XZrk8ltfsuIzW VowGnC99Z/TpXk8yDtxHphgtCfMxAuZLt/I25Ot5cTlEucOm47dWmYsStQ4afQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688330919; a=rsa-sha256; cv=none; b=mz9bN3gceKKVi2n9Hk/3Z9eYwYaNId2wbRNR7F7BK5pSM/ROCB1mr0Duy8kqRVSBX60QS8 DEQX9V7x9h54ZfFAB+zsXuMqiu1rCkVgeJpiUVQqyO+FZNQv5XkbTFRlFcv9+jmw4l92Th 2KGm99yiYhlCoXpwt/9h4tBtqwFiNrZ/KtmCu2IyN+Bylbbivngbc1klHFK7DasAAOQOOg aUc5ppRPk3d7mllpC7iUUT9DP0w/J21NkwcTv7FSvQAgMt3XVymRKSZEoCsGC5vF1q3xaF ZgPTBVlSjcUlmwtVvVulLmseZQTad2kG6qIP/qhUrEnwAAOdfFCWfQDT61npog== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QvLkG6DC2zNPZ; Sun, 2 Jul 2023 20:48:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 362Kmc7e083059; Sun, 2 Jul 2023 20:48:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 362Kmc06083058; Sun, 2 Jul 2023 20:48:38 GMT (envelope-from git) Date: Sun, 2 Jul 2023 20:48:38 GMT Message-Id: <202307022048.362Kmc06083058@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 7b56eeb7853e - main - devel/py-flatten-dict: New port: Utility for flattening and unflattening dict-like objects in Python List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7b56eeb7853ea875c93c10e77af3cb7e2b11799a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=7b56eeb7853ea875c93c10e77af3cb7e2b11799a commit 7b56eeb7853ea875c93c10e77af3cb7e2b11799a Author: Yuri Victorovich AuthorDate: 2023-07-02 20:47:55 +0000 Commit: Yuri Victorovich 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 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().