From nobody Fri Mar 25 13:49:52 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 6A9511A33A29; Fri, 25 Mar 2022 13:49:54 +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 4KQ3PF4qBlz3Qsn; Fri, 25 Mar 2022 13:49:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216193; 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=JRRosxrvQui1QWnzdGLoh3Z/9axh0Kt8qB6o1vuAL8A=; b=feVBrohl6kIqmUZkEKKLxdZUw7lKy+eFwSKG8K58XBeHaR8QtjET5o9OAMrJBGWYF06yN1 Rgm9VmDQ6ffzpESEDI7+qv82IDk56FSD7wpEr/6ALP1Okeej2bI4zi+ypXS8zU5DFZqIKn 5WLg3oAPdsvsvKaArnwzk6POI3JEtqVzBr0rKMwf18NEXzlkwsicwlxo7jxDgoJ+2LD6OH qGKVzsnD4g7XNiwu/xNQHcH4QEqjw43RUTDYQ4X67QUqL37Z6YPYRqRd4BPfi+VeIN0fNg sogH1NZHP+vtxri7YItE6vY7RiJL5tjsO2Ejvr4Bsa8K6Dd3thL06jm+qqQlcw== 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 B32ED5540; Fri, 25 Mar 2022 13:49:52 +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 22PDnqFU027918; Fri, 25 Mar 2022 13:49:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22PDnqoE027917; Fri, 25 Mar 2022 13:49:52 GMT (envelope-from git) Date: Fri, 25 Mar 2022 13:49:52 GMT Message-Id: <202203251349.22PDnqoE027917@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 5bacf5f90c54 - main - devel/py-anyjson: Fix build with setuptools 58.0.0+ 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5bacf5f90c545d4bfc9a7a745436661396b92c84 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216193; 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=JRRosxrvQui1QWnzdGLoh3Z/9axh0Kt8qB6o1vuAL8A=; b=MHAZU1UEi+kZEGdb9Fyg1HW4mmpH/DtbEx86T2tigCtMB+5dblcB9+N6zZNfmEQjxKuc5C v9yKr6fEjBvgUH1rLC/ZY6mQKP2zZHSPM9/hYI3sxrzNehxDq1fRiSxRKgqavb4HmtK3RV 24hUWVKC6lEoYYxChnWgsHGgu+ARcWvz94FEkdBDZQCSfTL8nUqHFXhQkdlb10Ge4kil0Z FTKmSQCYd1F16ccJ/zobHQOnDxA4emqM1j21sxhvsNq1tlFxXFoq+wbS5MrD91xaRIU6Ml UZWZj7IULvRtARGr3GNghEE3yBGn2HJ5FSQiwUjEPDF7HFIYe/5ADSR9lhxZSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648216193; a=rsa-sha256; cv=none; b=mAv0DopSCoK99JcQ/35uDt14yl8+nrEHE7ExheaZ95veWF36JIVb+y3wqzmlHz8P2U1+hC w5MAmw4NIYlE76dl3pt+KoebPscicNR91QfA3sXn7Y6412in66FK3Cuq+rWVAb60vIzMSU 21E52Sl56dgRZNWbZM+MycTAGqhPe6hYdqR7yc4TLSZJwFyYvNtpW2wQMxLQWrcSHRXWD7 7pQriyr5s8aPFTRv8ttuFKOerc5ArrjRz+7N6KhAk76dcLFHVFmcjTFb3sDbFcyUBQayLt JdKGrymqhEYYTtrR81s/VsoG4dA37sNXBnRiV58P75fWy6IuqMbsCRKb9O7vzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=5bacf5f90c545d4bfc9a7a745436661396b92c84 commit 5bacf5f90c545d4bfc9a7a745436661396b92c84 Author: Po-Chuan Hsieh AuthorDate: 2022-03-25 13:32:12 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-25 13:38:07 +0000 devel/py-anyjson: Fix build with setuptools 58.0.0+ With hat: python --- devel/py-anyjson/files/patch-2to3 | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/devel/py-anyjson/files/patch-2to3 b/devel/py-anyjson/files/patch-2to3 new file mode 100644 index 000000000000..081cab6becfe --- /dev/null +++ b/devel/py-anyjson/files/patch-2to3 @@ -0,0 +1,44 @@ +--- anyjson/__init__.py.orig 2012-06-21 23:08:51 UTC ++++ anyjson/__init__.py +@@ -85,8 +85,8 @@ class _JsonImplementation(object): + TypeError if the object could not be serialized.""" + try: + return self._encode(data) +- except self._encode_error, exc: +- raise TypeError, TypeError(*exc.args), sys.exc_info()[2] ++ except self._encode_error as exc: ++ raise TypeError(TypeError(*exc.args)).with_traceback(sys.exc_info()[2]) + serialize = dumps + + def loads(self, s): +@@ -97,8 +97,8 @@ class _JsonImplementation(object): + if self._filedecode and not isinstance(s, basestring): + return self._filedecode(StringIO(s)) + return self._decode(s) +- except self._decode_error, exc: +- raise ValueError, ValueError(*exc.args), sys.exc_info()[2] ++ except self._decode_error as exc: ++ raise ValueError(ValueError(*exc.args)).with_traceback(sys.exc_info()[2]) + deserialize = loads + + +@@ -117,7 +117,7 @@ if __name__ == "__main__": + # We do NOT try to load a compatible module because that may throw an + # exception, which renders the package uninstallable with easy_install + # (It trys to execfile the script when installing, to make sure it works) +- print "Running anyjson as a stand alone script is not supported" ++ print("Running anyjson as a stand alone script is not supported") + sys.exit(1) + else: + for modspec in _modules: +--- setup.py.orig 2012-06-21 22:59:59 UTC ++++ setup.py +@@ -2,8 +2,6 @@ import os + import sys + + extra = {} +-if sys.version_info >= (3, 0): +- extra.update(use_2to3=True) + + try: + from setuptools import setup, find_packages