From nobody Mon Dec 6 11:05:48 2021 X-Original-To: python@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 F3F6318BD4F6 for ; Mon, 6 Dec 2021 11:05:48 +0000 (UTC) (envelope-from bugzilla-noreply@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 4J70wD53vfz4rwZ for ; Mon, 6 Dec 2021 11:05:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 5DF95280B for ; Mon, 6 Dec 2021 11:05:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1B6B5m9j075449 for ; Mon, 6 Dec 2021 11:05:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B6B5mqm075448 for python@FreeBSD.org; Mon, 6 Dec 2021 11:05:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 259981] devel/py-setuptools_scm: Fix incorrect *_DEPENDS, causing devel/py-pyparsing (and others) Fails to configure: The 'packaging>=20.0' distribution was not found Date: Mon, 06 Dec 2021 11:05:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch, regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: kai@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kai@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback+ X-Bugzilla-Changed-Fields: flagtypes.name attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638788748; 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: in-reply-to:in-reply-to:references:references; bh=HrW0Ym+6HXflMf90N2ERSbOcVxEYPX80HjoBxyKxmRo=; b=yRlqhlDiBpDkzVM4co0XJdTvBAVc1WnVgT6aiCyXOWPlC73J14oXF6IH69l+hj4J14XYmM wNYlQmby4O6YnJcnTpt441b49NQBnciAHkPO9Ybs4Ey4/Lp8h1zPTRnAysCLGoqnlkgT4M cFcbT/VFaZC7nJQKMIj11q0S2S6O5bNK97J7+OyhKakpHCjndyNOoz1kdqf+HFsrOWKKRL PfLrk5E5M4tDTdXkK2JWs/TrU6g1c7VPCYuuIQ/QbybeHLfhoF4wMkvDk412ZmvyXD0cw/ gl/O1xFNCmTv0YYf6+TNxAtDlh4gyUwtZVJeL5nFioB+fVQA6fgvaK9qw2t6og== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638788748; a=rsa-sha256; cv=none; b=e/ZQC96rsklpeKEyjUkK+ZEZzZx09BmD0U0QX6ecVEM15y3HGJUZGlpzJotFMQdFZ0k6mg RSYlIm7FZAFepRcbKjlvPDAq3jbVFO/503Hmp2tPSUgvRGmM9R0jK7w0RPNxqQrtCaeQBU OvDiHZiucafvlwKOZ9V7IbGcXHZqw07ZCq5l7kaDKubUzAeFoTOCEL15fxf571etBRzgkh 6f7srBhsfwjWj1nKzrFls6OHqkgeTvmPR2zhLvbU3dPwzfGv2H6Y05HDTxePem27LR/uFa 17iQ/rTrY6pRX1BQvOi1iN65TZiCRdKEamof1lCtXeeDstWtoOnwBjNGLf2Obw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259981 Kai Knoblich changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #229940| |maintainer-approval+ Flags| | --- Comment #8 from Kai Knoblich --- Created attachment 229940 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229940&action= =3Dedit py-setuptools_scm-workaround-for-py-packaging-v1.patch Hm, devel/py-setuptools_scm has a fallback (via "try ... except") in [1] wh= en devel/py-packaging is absent. It's also the only location where devel/py-packaging is (optionally) required at the moment. However, this code is not executed because devel/py-setuptools, which checks the dependencies upon invocation and terminates as soon as these are not me= t, which leads then to the errors in comment #0. Attached is a workaround which should remedy the issue by patching out devel/py-packaging from "setup.cfg" but keep it in RUN_DEPENDS. It also adds devel/py-packaging to BUILD_DEPENDS as defined in pyproject.to= ml although it's not strictly required to build the port. I'll leave this patch here for a few days for general testing and feedback. QA: ~~~ - poudriere -> OK (12.2-RELEASE amd64 against all consumers) - portmaster -> OK (using the scenario outlined in comment #5) - "make test" -> OK -- [1] https://github.com/pypa/setuptools_scm/blob/v6.3.2/src/setuptools_scm/_vers= ion_cls.py --=20 You are receiving this mail because: You are on the CC list for the bug.=