From nobody Fri Mar 25 13:50:09 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 913C81A33EA7; Fri, 25 Mar 2022 13:50:11 +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 4KQ3PZ4yLMz3RB0; Fri, 25 Mar 2022 13:50:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216211; 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=W0bVsc7V26BxK0id139x/tmsSkoH4a2k4jXXncFer2E=; b=uMQuT5LM7qiMu6XRbs0S5Yy6jhAJm86hgJVPafFKgL/11XcoLbcXQtC0LvXnvtZA2DxmGS DUNwzys/RPgTWDaVRXDvrF/zVbmLwdnSspsCvdF1dpH6RalmwYD3EYfO3URM+3zswgAWep 75THq8mMCY+11EsaeQhtGluz5TTyssYDRywqEQD09kMApW9HhhqJ8H3VIutyqJYnKn7OxS s8qQOioK4n+cx1cgjFr0zM152kJNcxN3Rcu/gTK0qJL7Nqby2kzrKrX5aAIM9NAJ85z/+x Er0jZxZ/QqgJ9boX1ciRm8u6QtbZVSqd6qDo8nMdgyld/u0K4U6qqfNFFArkXg== 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 8C17E586C; Fri, 25 Mar 2022 13:50:09 +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 22PDo9kR031354; Fri, 25 Mar 2022 13:50:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22PDo9Gj031352; Fri, 25 Mar 2022 13:50:09 GMT (envelope-from git) Date: Fri, 25 Mar 2022 13:50:09 GMT Message-Id: <202203251350.22PDo9Gj031352@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: 7c8889de076a - main - devel/py-pygpx: 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: 7c8889de076a63b6cf76d781d177889b6a7953ef Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216211; 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=W0bVsc7V26BxK0id139x/tmsSkoH4a2k4jXXncFer2E=; b=lguyiY2o8NerMNcxUkO4UuV+Roo417dl2ZvLCOiM4Mp7IbSv4XrJDbg2dWGVtauLb8xjkG dbMSgrlsItFNQCpP+LFSDtVpmGmJoR3e++Gl7zeE4nrUmTDtQTYHtx/NVFSY8NIQ+D2Lef yt8rEhfvLfEzKaSV1HeV3o/jQ9QKGRDYVKBPqXeDSHRJYt4SNVxhh8MU4XRmcHN7uxGvdk 41A+oOWwUh9B4cQJGCJFQMC78CxBJBghmVQlO5h9RenZfP0IKF87MFIwb+WELhant2srUl xoFPuZmv1vhSIVeKEUhi9vAfeZcVypz0nAh6cHP5J2+6t4Xf2tCeMjFBY2vc5w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648216211; a=rsa-sha256; cv=none; b=iYorVnmzYbZ+1pNFyVnI9jEVGX+xDfZHGqf7JOXTN+MbjIs4u2NCPTiNaJ7A89ssFl3gJ2 KGUVqfxuLcoLGpxFWd7ymqlfT2iAeaX+C7j6fcYAaSf34uyMVjj1gL03GDN+t9QYn88SRL 9Z77KOq5Jmai/bhTBh8pm/pfdb7zZDKxNPAURiqC02ADSOycFaHHddUJvMtmPQfk36h/a/ bDTn2KkQUyIxU4BZCZoy/6YK+IGL0eWk6UUzVmhqTDteJ3OycK+GtpNtHDuNWdvW/TKsPN 2kWkyGWnnH4u5oklcYkNPEp9fcxIlaJscf3r4mP7RkDUMzzb83tSF19mET7VLw== 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=7c8889de076a63b6cf76d781d177889b6a7953ef commit 7c8889de076a63b6cf76d781d177889b6a7953ef Author: Po-Chuan Hsieh AuthorDate: 2022-03-25 13:32:22 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-25 13:38:11 +0000 devel/py-pygpx: Fix build with setuptools 58.0.0+ With hat: python --- devel/py-pygpx/files/patch-2to3 | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/devel/py-pygpx/files/patch-2to3 b/devel/py-pygpx/files/patch-2to3 new file mode 100644 index 000000000000..a50a30ef4de9 --- /dev/null +++ b/devel/py-pygpx/files/patch-2to3 @@ -0,0 +1,44 @@ +--- pygpx.py.orig 2006-07-30 12:33:23 UTC ++++ pygpx.py +@@ -44,7 +44,7 @@ class GPXTrackPt: + elif node.nodeName == "ele": + self.elevation = float(node.firstChild.data) + else: +- raise ValueError, "Can't handle node", node.nodeName ++ raise ValueError("Can't handle node").with_traceback(node.nodeName) + + def distance(self, other): + """Compute the distance from this point to another.""" +@@ -72,7 +72,7 @@ class GPXTrackSeg: + elif node.nodeName == "trkpt": + self.trkpts.append(GPXTrackPt(node, self.version)) + else: +- raise ValueError, "Can't handle node <%s>" % node.nodeName ++ raise ValueError("Can't handle node <%s>" % node.nodeName) + + def distance(self): + """Return the distance along the track segment.""" +@@ -105,7 +105,7 @@ class GPXTrack: + elif node.nodeName == "number": + self.name = node.firstChild.data + else: +- raise ValueError, "Can't handle node <%s>" % node.nodeName ++ raise ValueError("Can't handle node <%s>" % node.nodeName) + + def distance(self): + """Return the distance for this track.""" +@@ -155,7 +155,7 @@ class GPX: + if self.version == "1.0": + self._init_version_1_0() + else: +- raise ValueError, "Can't handle version", self.version ++ raise ValueError("Can't handle version").with_traceback(self.version) + + def _init_version_1_0(self): + """Initialise a version 1.0 GPX instance.""" +@@ -168,4 +168,4 @@ class GPX: + elif node.nodeName == "trk": + self.tracks.append(GPXTrack(node, self.version)) + else: +- raise ValueError, "Can't handle node", node.nodeName ++ raise ValueError("Can't handle node").with_traceback(node.nodeName)