From nobody Wed Oct 18 21:15:44 2023 X-Original-To: dev-commits-ports-all@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 4S9kCh6Q5jz4xX6J; Wed, 18 Oct 2023 21:15:44 +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 4S9kCh58chz3J2h; Wed, 18 Oct 2023 21:15:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697663744; 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=LBz79xxb5T+Zfd1Ia88QSfSRYIWHh6WfeGVWR4IhrvM=; b=PR7maG6nKWsYZUXYW3RgKTSFUudGE90OhGbsjmSQsDj2BOS8ExUGUAYc7mldikPmNcf68U LBfl6wMV6MH+WflJ6mQ3CmIB++Q13+sDcMg/JMsEO710do8bHnS2QVAhqDO3EvBa2A/W4q YPQmyjAo4/jzrKc3BpK+7KjTR8x9koJ/M2itGmhzzb7IMZIzmDgU0hXlZzS4wjJcUbRaiN +oBeAVrE+c2ahKlClfflgPWrCEZIYk9F/+ZP3nwRjK1BxIswEwjEGF2KOpYp/HiGM78Lw2 PGMo0BChIIfcCLe+xBphjhao7gGP+VHCpBpw+Fuib72gs7ijVQaL5DUKIoATog== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697663744; a=rsa-sha256; cv=none; b=YpD3Gd0grmFhfFQeIXKNsKug3NwDPeO6TPFGPnqJvQReNvEd/OPA8YapkfL0kkA5jbrCSo jfvkIuw2fxMvmZoB+knCK25k0llEI/C9EXCNp+zCwt2W57t61hmxWtL1xIknx2jILPMEKE geg+zQvbhmOt+HKAU5zH1txTYsKHgw+EYQmSFrHNCzPbfRjRNBe1Fq7VI3r0BtAGigJC2y jVofa3FCslJCR32YwKxgH/A2z02elEO/K4EnPueWhblPIq3/dPhvbuwsj1unkgaLQiS0Vf pQ7+izCh3hezDEpMJsUHhZdBQvV9adXBOnvHKI9ZdBLujxJxhZYLIXo6c1AtXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697663744; 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=LBz79xxb5T+Zfd1Ia88QSfSRYIWHh6WfeGVWR4IhrvM=; b=pysblgBiyyZfE7LSVrnuJwCAXYMmC5EQQKm++c/ovvvsoa/KFkYtOILcPNZ2CN6Sp0zNQM gPxQcoEXT2ZdfgLZUug/n8XDGCUC9vXGgUIH22dh07OHo/FfZKyBqw6Zr0ObYRlj7S/jHY Ix83p/DUUUM7wblS+Oz8yBcqTBGGwWXnNvjdlV6PckLGovfYMLpNqObienjQ1bXn2xu8sr cnQLWgHCril7l0C6MhLwGIfz3R5OjB/lsB6z9KNN5WsnNgm7L0IUO84FMBpxDLgyq1CUq4 2K82F3tqQf43xo8b2YZDLQe37Vha8KHq7T9tlJ5P1mZpprno7M0yUuvSVcdhlw== 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 4S9kCh3tXPz7JT; Wed, 18 Oct 2023 21:15:44 +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 39ILFio9063094; Wed, 18 Oct 2023 21:15:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39ILFim0063091; Wed, 18 Oct 2023 21:15:44 GMT (envelope-from git) Date: Wed, 18 Oct 2023 21:15:44 GMT Message-Id: <202310182115.39ILFim0063091@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 935065c7f7b4 - main - devel/py-pipdeptree: Fix runtime List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 935065c7f7b49fc512df152f12859fcdd3ba476d Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=935065c7f7b49fc512df152f12859fcdd3ba476d commit 935065c7f7b49fc512df152f12859fcdd3ba476d Author: Muhammad Moinur Rahman AuthorDate: 2023-10-18 20:47:30 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-10-18 21:15:32 +0000 devel/py-pipdeptree: Fix runtime At runtime the program crashes due to an error like the following: ImportError: cannot import name '__version__' from 'pipdeptree.version' Which is caused due to the new template format of the setuptools_scm. Currently this is just a dirty hack to support older(<7) setuptools_scm format. PR: 274101 Reported by: vedran@miletic.net --- devel/py-pipdeptree/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devel/py-pipdeptree/Makefile b/devel/py-pipdeptree/Makefile index fae39f27b264..741dea072f10 100644 --- a/devel/py-pipdeptree/Makefile +++ b/devel/py-pipdeptree/Makefile @@ -1,5 +1,6 @@ PORTNAME= pipdeptree PORTVERSION= 2.13.0 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -20,4 +21,8 @@ USE_PYTHON= autoplist concurrent pep517 pytest NO_ARCH= yes +post-patch: + @${REINPLACE_CMD} -e 's|import __version__|import version as __version__|g' \ + ${WRKSRC}/src/pipdeptree/_cli.py + .include