From nobody Tue Dec 13 12:54:00 2022 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 4NWdjP0GGzz4l0FM; Tue, 13 Dec 2022 12:54:01 +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 4NWdjN6l69z3PlJ; Tue, 13 Dec 2022 12:54:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670936040; 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=DipTbMyN80qmOvW9kq2E0e3PIeNbpgoNTt37VOKJAQ4=; b=eJImVZr4bhBuF8W7yks9p+NkWBqsbeQ0H+Z13bsHPDj0DJbCKEQuhiKr+7UZy0SGpnu0AR SaVrpsaSa2UcyHCijst/ouQp5uk+KQAHOOtLy6ua99qeSNiSpc1IpDJmB/VrkL/yGmHafw Ja2Zh6gK39g1uY6suaY6bvt3VACj0lPTZOY9jfM2n5zo7I370WdnHy6dzVVhoOCa8NmyFV 9yZ+lL2GmSE5igz2jop4yYcck7OGhRds7Rv6/lwkIRK6Y0DiqLyQimyfwCeezkiphTHTOA dWs4XMInFNwgRmw1bQN2SW5P+BKM7TS+kAGNEWscrmJ5ux5mrdzqX022FLz3OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670936040; 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=DipTbMyN80qmOvW9kq2E0e3PIeNbpgoNTt37VOKJAQ4=; b=cFjDyP/aWVPciLx5J6rKBYUCihgF36a2MhdCyfYaHOKzTgoFdRTAwe/5GxKBHl3M3Rj2kY 00ZTJbkBkbBZUW3Dzqv+4N7+v2T7kYrgq5Cn0iksGM5GMfJahedL0ve47MGlYCzGsyGm3o btC4GrZXrUOYPzJjzMMfMMIoBDHu5fo7scaQLoqCZZXC7tfOOVQp5z8ZIqNsWCeOT4rTGG drJTYcSNrglHEdMMbpcnpWHUvDxR5mFKgu0P9gk265Zj2BoiUhVIzKWyyVHEanJ8VDOBQD RaFEAp8HGgHCbhA5JtkEKIAVU3dWsSF75H0WLMA3k3jsE6CHZgo2b0p8XY5xpg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670936040; a=rsa-sha256; cv=none; b=G2B8lVMWSbJIVSYvqzIebEFEAmrMbST89yMVqMXE0C0HnnveY0xbRjvexEgDRC0L4VrStr zWUH4On05EW/If46YPyuVaOnPaVttEDL3na8H72R/AlDo/im4SCOxHnzwRC3XCmbwXjD/V wP+2hm8ftmZYVzRazeJqJOprOafqShSyD1Nr/z5zB6dSlN0X0B4VBZi2sts8J3DZmV+g7N Q9CkkMVz2TRkrweKE5TrKEmozVWv5/Ks3C1rCe3FIKyNNFlCbSI/93YNLijh+C/BHr3MOC ncv/PWE2z8HfvEqzhNWN6VkP+pc59yTRmUOhFhinidyd2VN+UR2Wv0p4937jjQ== 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 4NWdjN5nmpzFLL; Tue, 13 Dec 2022 12:54:00 +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 2BDCs0g1088991; Tue, 13 Dec 2022 12:54:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BDCs0Ah088990; Tue, 13 Dec 2022 12:54:00 GMT (envelope-from git) Date: Tue, 13 Dec 2022 12:54:00 GMT Message-Id: <202212131254.2BDCs0Ah088990@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Lo=C3=AFc=20Bartoletti?= Subject: git: 0a62917da845 - main - devel/py-attrdict: fix build for python >= 3.10 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: lbartoletti X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0a62917da845614158d3e35fe80c5c51e71b675a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by lbartoletti: URL: https://cgit.FreeBSD.org/ports/commit/?id=0a62917da845614158d3e35fe80c5c51e71b675a commit 0a62917da845614158d3e35fe80c5c51e71b675a Author: Loïc Bartoletti AuthorDate: 2022-12-07 07:06:22 +0000 Commit: Loïc Bartoletti CommitDate: 2022-12-13 12:53:47 +0000 devel/py-attrdict: fix build for python >= 3.10 Replace `from collections import` by `from collections.abc import` --- devel/py-attrdict/Makefile | 1 + devel/py-attrdict/files/patch-attrdict_default.py | 11 +++++++++++ devel/py-attrdict/files/patch-attrdict_mapping.py | 11 +++++++++++ devel/py-attrdict/files/patch-attrdict_merge.py | 11 +++++++++++ devel/py-attrdict/files/patch-attrdict_mixins.py | 11 +++++++++++ 5 files changed, 45 insertions(+) diff --git a/devel/py-attrdict/Makefile b/devel/py-attrdict/Makefile index c6e22f3d6136..d22f45ee7158 100644 --- a/devel/py-attrdict/Makefile +++ b/devel/py-attrdict/Makefile @@ -1,5 +1,6 @@ PORTNAME= attrdict DISTVERSION= 2.0.1 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/devel/py-attrdict/files/patch-attrdict_default.py b/devel/py-attrdict/files/patch-attrdict_default.py new file mode 100644 index 000000000000..d0f6e558f251 --- /dev/null +++ b/devel/py-attrdict/files/patch-attrdict_default.py @@ -0,0 +1,11 @@ +--- attrdict/default.py.orig 2019-02-01 22:18:30 UTC ++++ attrdict/default.py +@@ -1,7 +1,7 @@ + """ + A subclass of MutableAttr that has defaultdict support. + """ +-from collections import Mapping ++from collections.abc import Mapping + + import six + diff --git a/devel/py-attrdict/files/patch-attrdict_mapping.py b/devel/py-attrdict/files/patch-attrdict_mapping.py new file mode 100644 index 000000000000..a3df22356610 --- /dev/null +++ b/devel/py-attrdict/files/patch-attrdict_mapping.py @@ -0,0 +1,11 @@ +--- attrdict/mapping.py.orig 2022-12-06 06:58:43 UTC ++++ attrdict/mapping.py +@@ -1,7 +1,7 @@ + """ + An implementation of MutableAttr. + """ +-from collections import Mapping ++from collections.abc import Mapping + + import six + diff --git a/devel/py-attrdict/files/patch-attrdict_merge.py b/devel/py-attrdict/files/patch-attrdict_merge.py new file mode 100644 index 000000000000..d0295603cbae --- /dev/null +++ b/devel/py-attrdict/files/patch-attrdict_merge.py @@ -0,0 +1,11 @@ +--- attrdict/merge.py.orig 2019-02-01 22:18:30 UTC ++++ attrdict/merge.py +@@ -1,7 +1,7 @@ + """ + A right-favoring Mapping merge. + """ +-from collections import Mapping ++from collections.abc import Mapping + + + __all__ = ['merge'] diff --git a/devel/py-attrdict/files/patch-attrdict_mixins.py b/devel/py-attrdict/files/patch-attrdict_mixins.py new file mode 100644 index 000000000000..426f1d3316fe --- /dev/null +++ b/devel/py-attrdict/files/patch-attrdict_mixins.py @@ -0,0 +1,11 @@ +--- attrdict/mixins.py.orig 2019-02-01 22:18:30 UTC ++++ attrdict/mixins.py +@@ -2,7 +2,7 @@ + Mixin Classes for Attr-support. + """ + from abc import ABCMeta, abstractmethod +-from collections import Mapping, MutableMapping, Sequence ++from collections.abc import Mapping, MutableMapping, Sequence + import re + + import six