From nobody Sun Apr 23 16:54:55 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 4Q4Drw756vz469Lg; Sun, 23 Apr 2023 16:54:56 +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 4Q4Drw1zBGz4W3M; Sun, 23 Apr 2023 16:54:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682268896; 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=4eAOhXKI40YGsHP4OW1u2LCWrlxVFlQ9qZMN2ZcyEOg=; b=OFJ241QNtyYw9Hd66kMpNFnV4vcNuIiS/0NuGSspaivowUPKddO3reLDFZunvRoOUjcHlx 6/Ug1/maJyJVBT4ts4VDxR+gxkbOMK2uK/UAsCit984DZCM5kSa/RVxGQvN9uS4gatiion 0FaU77/zlhFScsZrFMWuk4/EVGIbwJtRFYkIyS09GUQ02lNR1+g4lQoKmyvLBYQ/RxLKpR 79vG3Px6aGgRFcUTc0MIOwAGuZYuuagR15ljAGRMsIsuBLhqRepljjkqCPF2GRL/nNNMWY u7GEGk0ehZTkCyXBK7ZD6Wtm1ZfZwlN7twoXUx9GFua+HgtY4iG0tzLBGg9kqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682268896; 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=4eAOhXKI40YGsHP4OW1u2LCWrlxVFlQ9qZMN2ZcyEOg=; b=KfsDix4C0+7ejp1FLCP/LZijxLBwXrEMc8mVyfmVrj+bGVymaN4Ge0pLPpy5IqK9dow4YN hyZ47lmTLUB4m7aEL6DM1xYSVkX6KCHmCgny/fqg5I5mO92B0PBGujAl0crpGTMZkQSaXj mXW93JoxZapZ7guLmIRPlMlP+WHJXFZpwYje5WRTq+Yb5+rgvWwD1vkyJjqwNtEevNqCRB YZkFvj5lO2fvbZcNfVqMfhM365KCFHS/+ADAs4ytgLn8Jm8O9Dj8pxTAb9fiKw5FcfmzUF +1BUJ77WDK87/kNAKVSCoYJWja69dn5YzO7r0ScvIxnadaaq4RbO7KWlpnqR0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682268896; a=rsa-sha256; cv=none; b=UO4J6Eq/Qkdf50dtFROfHWDHuvSioT1UyEx9e3nrFnSSMhNHQ7IGS2ssPQXEn7RZO766hp 9Tiqsg2Ki77osT5BuUsrc/jkHfyiHYG+psTMDBbdTokAsO2uVDSBYtjTpbWkOS+IFpwzPH wKh29WrBEaNcgvmUbrRGUX+Q9ciemBuCKWBtwsJTBFtgbMl1WZjNiZJFSFTbsIut71wcTP AIoBjGhd+89e9Ji8veSjFGAb1ljDicWW0u/2pKPdmZEnNNNf25eeETweicKoywDIzh23XM PAXQB5egW8TmRJ/ZvYD7c+F5KQTPJ2LiKrXlL92QSqWRuHn76/QfCc2xVut2rw== 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 4Q4Drv5NmLzrh9; Sun, 23 Apr 2023 16:54:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33NGstSL027699; Sun, 23 Apr 2023 16:54:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33NGst95027698; Sun, 23 Apr 2023 16:54:55 GMT (envelope-from git) Date: Sun, 23 Apr 2023 16:54:55 GMT Message-Id: <202304231654.33NGst95027698@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 0da179572647 - main - Add devel/py-immutabledict: Immutable wrapper around dictionaries for Python3 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: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0da1795726472eb2a540fb9b2f8cc295cf80dd29 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=0da1795726472eb2a540fb9b2f8cc295cf80dd29 commit 0da1795726472eb2a540fb9b2f8cc295cf80dd29 Author: Li-Wen Hsu AuthorDate: 2023-04-23 16:53:59 +0000 Commit: Li-Wen Hsu CommitDate: 2023-04-23 16:53:59 +0000 Add devel/py-immutabledict: Immutable wrapper around dictionaries for Python3 This will be used for the new version of net-im/py-matrix-synapse --- devel/Makefile | 1 + devel/py-immutabledict/Makefile | 17 +++++++++++++++++ devel/py-immutabledict/distinfo | 3 +++ devel/py-immutabledict/pkg-descr | 14 ++++++++++++++ 4 files changed, 35 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 00e994fbadc6..8e91bfcc9cc3 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4731,6 +4731,7 @@ SUBDIR += py-identify SUBDIR += py-ijson SUBDIR += py-imgkit + SUBDIR += py-immutabledict SUBDIR += py-immutables SUBDIR += py-importlab SUBDIR += py-importlib-metadata diff --git a/devel/py-immutabledict/Makefile b/devel/py-immutabledict/Makefile new file mode 100644 index 000000000000..434d9c818991 --- /dev/null +++ b/devel/py-immutabledict/Makefile @@ -0,0 +1,17 @@ +PORTNAME= immutabledict +PORTVERSION= 2.2.4 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= lwhsu@FreeBSD.org +COMMENT= Immutable wrapper around dictionaries for Python3 +WWW= https://github.com/corenting/immutabledict + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +.include diff --git a/devel/py-immutabledict/distinfo b/devel/py-immutabledict/distinfo new file mode 100644 index 000000000000..6e9568b86586 --- /dev/null +++ b/devel/py-immutabledict/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1682174771 +SHA256 (immutabledict-2.2.4.tar.gz) = 3bedc0741faaa2846f6edf5c29183f993da3abaff6a5961bb70a5659bb9e68ab +SIZE (immutabledict-2.2.4.tar.gz) = 4314 diff --git a/devel/py-immutabledict/pkg-descr b/devel/py-immutabledict/pkg-descr new file mode 100644 index 000000000000..917430a3c3e3 --- /dev/null +++ b/devel/py-immutabledict/pkg-descr @@ -0,0 +1,14 @@ +A fork of the original frozendict, an immutable wrapper around dictionaries. +This library is a pure Python, MIT-licensed alternative to the new LGPL-3.0 +licensed frozendict. + +It implements the complete mapping interface and can be used as a drop-in +replacement for dictionaries where immutability is desired. The immutabledict +constructor mimics dict, and all of the expected interfaces (iter, len, repr, +hash, getitem) are provided. Note that an immutabledict does not guarantee the +immutability of its values, so the utility of hash method is restricted by +usage. + +The only difference is that the copy() method of immutable takes variable +keyword arguments, which will be present as key/value pairs in the new, +immutable copy.