From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CFQ1BRsSVmOJdQEAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 06:18:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0OL8BBsSVmMqNAAAauVa8A (envelope-from ) for ; Mon, 24 Oct 2022 06:18:35 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D88BB38CE8 for ; Mon, 24 Oct 2022 06:18:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omjtx-0001u1-A7 for larch@yhetil.org; Sun, 23 Oct 2022 18:57:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omMtW-0004mN-SU for guix-patches@gnu.org; Sat, 22 Oct 2022 18:23:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1omMtV-00061X-LO for guix-patches@gnu.org; Sat, 22 Oct 2022 18:23:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1omMtV-00024m-H3 for guix-patches@gnu.org; Sat, 22 Oct 2022 18:23:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58587] [PATCH v3 18/22] gnu: python-openapi-spec-validator: Use pyproject-build-system. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 22 Oct 2022 22:23:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58587 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58587@debbugs.gnu.org Received: via spool by 58587-submit@debbugs.gnu.org id=B58587.16664773707871 (code B ref 58587); Sat, 22 Oct 2022 22:23:05 +0000 Received: (at 58587) by debbugs.gnu.org; 22 Oct 2022 22:22:50 +0000 Received: from localhost ([127.0.0.1]:42613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omMtG-00022l-0P for submit@debbugs.gnu.org; Sat, 22 Oct 2022 18:22:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omMsy-00021o-Au for 58587@debbugs.gnu.org; Sat, 22 Oct 2022 18:22:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omMss-0005vp-MR for 58587@debbugs.gnu.org; Sat, 22 Oct 2022 18:22:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=t890YTqTGXWI5CZ+gSgkW/OnCT6TiIFvfkvPiDSWrpw=; b=MpDTmkzvJU9bNCyQrNJy pUTqkUhxtR8BxM/dVmPeIs4TEgMQU5McXkXsvCGFzhJNYSMvhWsoJIc/TZ9Ril6dcpTjY5AoaERlH aSDv6/rDS0wAj/5auSja5PdBy7MJI9ikkcrX7q9nwkyrPPaTz/5sADyWpZ9f8Oede4H6lsw41a6Eb GABKVNoUyv48nKkefZ7fHeK//uTO9ujNIxcK9IyEVE4J7W3x/FUFpBN9R8aYJ6ILARgq4EGRc8T7I XYwmJYc8wZX/qoLnxBpkWSjyCG14JFNVyMSoi5z4GF2vOt9C0u+J+7o0FTVEmW0xUxwwPv8sE/XC1 ttH1WBuvQqyUqA==; Received: from [84.214.173.6] (helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omMss-0001Ut-8G for 58587@debbugs.gnu.org; Sat, 22 Oct 2022 18:22:26 -0400 From: Marius Bakke Date: Sun, 23 Oct 2022 00:20:56 +0200 Message-Id: <20221022222100.18103-18-marius@gnu.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221022222100.18103-1-marius@gnu.org> References: <87eduzu18u.fsf@gnu.org> <20221022222100.18103-1-marius@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666585114; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=t890YTqTGXWI5CZ+gSgkW/OnCT6TiIFvfkvPiDSWrpw=; b=bzRJ/+ukLgJleP22B1xRrZUOhvz/GAodRCxV1hnQ2rleyi1f7UXssgDL5znRsDv9NIZpkL SQeOoI/AIjEdRP7kduSJGTSQasHyqro0f2tQXkaqdzJOBB3jlQw45MIYmO2VpuN9H1hXpH yJPQJyqonZ6v1QRVN0wLp//zRgwnh05qWfNREEpBkl0u9/kolxJDSGJqbQzBAvTRHJkYSn n3/afjlm7llsGdW21tq1Pv6k88kI092T/bpAslh8keIplh8B9vcu7bapFhP8Own1oLlCPh u+hnIXcLzGA1/gqpv1yWKUUHi8wnY6vT8wPQo5+O4a/M1SD3Vg045BHOaAV4uw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666585114; a=rsa-sha256; cv=none; b=kSY7xhhc3y51AvV4Q9Id+dAmfXdBupweeBdiSwSCRtLcroLYo+AEdhSj2obqnyBigGePfL 0tcT5Fm7XewFqWFlJoQw4uF9ewrmxZM5R9mmKCnz2RjuHQ1Bm7WqP79BOUBLa2JV/1f6ib zLc/pICB0jVFLXeNnFHHhZZYeYuitYkAKS/A940o89+9b9B+XsTOzpg63dLx7vXveBtKbM lMmyssZPLjcWBrVn70v4EyuT19EEwuS2eZIqAm8SjTKJCP9/J+mAZ1+rKGe8QkHyxW4mxB OMf+GN+JHHROZWcUE8BTgLnDz6jyjg9KZ738oEPuP0Oxfoun3ZDGFNHKLCc+RQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=MpDTmkzv; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=MpDTmkzv; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D88BB38CE8 X-Spam-Score: 0.19 X-Migadu-Scanner: scn1.migadu.com X-TUID: mXx8w7vY9XzY * gnu/packages/python-web.scm (python-openapi-spec-validator)[build-system]: Set to PYPROJECT-BUILD-SYSTEM. [arguments]: Add #:test-flags. Remove obsolete phases. [native-inputs]: Remove PYTHON-PYPA-BUILD. --- gnu/packages/python-web.scm | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 370245de3a..cbc515fc64 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1643,33 +1643,19 @@ (define-public python-openapi-spec-validator (sha256 (base32 "1q09sjh4hsc0c8yqbd97h5mp6rwh427y6zyn8kv8wljk6sa0fs4q")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments (list + ;; The example tests attempt to fetch resources from the Internet + ;; (see: https://github.com/p1c2u/openapi-spec-validator/issues/151). + #:test-flags #~'("-vv" "-k" "not Example and not Exampe") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'remove-coverage-pytest-options (lambda _ (substitute* "pyproject.toml" - (("^--cov.*") "")))) - ;; XXX: PEP 517 manual build copied from python-isort. - (replace 'build - (lambda _ - (invoke "python" "-m" "build" "--wheel" "--no-isolation" "."))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" "-vv" - ;; The example tests attempt to fetch resources from - ;; the Internet (see: - ;; https://github.com/p1c2u/openapi-spec-validator/issues/151). - "-k" "not Example and not Exampe")))) - (replace 'install - (lambda _ - (let ((whl (car (find-files "dist" "\\.whl$")))) - (invoke "pip" "--no-cache-dir" "--no-input" - "install" "--no-deps" "--prefix" #$output whl))))))) - (native-inputs (list python-poetry-core python-pypa-build python-pytest)) + (("^--cov.*") ""))))))) + (native-inputs (list python-poetry-core python-pytest)) (propagated-inputs (list python-jsonschema python-openapi-schema-validator -- 2.38.0