From patchwork Thu May 9 22:53:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 27277 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 573F427BBE9; Thu, 9 May 2024 23:58:43 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0398627BBED for ; Thu, 9 May 2024 23:58:39 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5CiK-0006tb-FH; Thu, 09 May 2024 18:58:12 -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 1s5CiF-0006lX-Of for guix-patches@gnu.org; Thu, 09 May 2024 18:58:07 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s5CiF-0006lX-Ft for guix-patches@gnu.org; Thu, 09 May 2024 18:58:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s5CiD-0002qW-Pm for guix-patches@gnu.org; Thu, 09 May 2024 18:58:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70855] [PATCH 45/92] gnu: python-sphinx-autodoc-typehints: Move to pyproject-build-system. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 May 2024 22:58:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70855 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70855@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 70855-submit@debbugs.gnu.org id=B70855.171529545810623 (code B ref 70855); Thu, 09 May 2024 22:58:05 +0000 Received: (at 70855) by debbugs.gnu.org; 9 May 2024 22:57:38 +0000 Received: from localhost ([127.0.0.1]:41206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5Chl-0002lB-LH for submit@debbugs.gnu.org; Thu, 09 May 2024 18:57:38 -0400 Received: from 13.mo561.mail-out.ovh.net ([188.165.33.202]:36035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5ChS-0002iT-EH for 70855@debbugs.gnu.org; Thu, 09 May 2024 18:57:19 -0400 Received: from director3.ghost.mail-out.ovh.net (unknown [10.109.140.166]) by mo561.mail-out.ovh.net (Postfix) with ESMTP id 4Vb6pl06d6z1LRt for <70855@debbugs.gnu.org>; Thu, 9 May 2024 22:57:19 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-b2m69 (unknown [10.110.168.23]) by director3.ghost.mail-out.ovh.net (Postfix) with ESMTPS id C19C31FD4B; Thu, 9 May 2024 22:57:18 +0000 (UTC) Received: from ngraves.fr ([37.59.142.98]) by ghost-submission-6684bf9d7b-b2m69 with ESMTPSA id XPuBLc5UPWYcKBYAAHTvYQ (envelope-from ); Thu, 09 May 2024 22:57:18 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-98R002207f661f-af35-4079-ab8c-6c1dee1205fe, E63BAB6C0A71DD4DA934779D5D345DF804807214) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.146.208 Date: Fri, 10 May 2024 00:53:40 +0200 Message-ID: <20240509225530.24649-45-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240509225530.24649-1-ngraves@ngraves.fr> References: <20240509225530.24649-1-ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 6111103221180523234 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdeffedgudeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepleffjeetueethfefkeffffefvddukeejkefgleduiedthfekvefhiedvhfffgeegnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugeeirddvtdekpdefjedrheelrddugedvrdelkeenucevlhhushhtvghrufhiiigvpeehnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepjedtkeehheesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheeiuddpmhhouggvpehsmhhtphhouhht 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/sphinx.scm (python-sphinx-autodoc-typehints): [build-system]: Move to pyproject-build-system. [arguments]<#:phases>: Move 'check phase replacement... ... to argument <#:test-flags>. Change-Id: I2b41dffd5ee35442e1bb42f426bff69e17648785 --- gnu/packages/sphinx.scm | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index ea643040fbf..195cd63ae61 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -1135,9 +1135,12 @@ (define-public python-sphinx-autodoc-typehints (sha256 (base32 "049dlay21f4bccig31fkbzq2m8v0h6g63p1cn3dxay9q3h0mzgs0")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments (list + ;; This test requires to download an objects.inv file + ;; from the Sphinx website. + #:test-flags '(list "-k" "not test_format_annotation") #:phases #~(modify-phases %standard-phases (add-before 'build 'pretend-version @@ -1145,14 +1148,7 @@ (define-public python-sphinx-autodoc-typehints ;; without the git metadata available, the version string is set to ;; '0.0.0'. (lambda _ - (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" "-vv" "tests" - ;; This test requires to download an objects.inv file - ;; from the Sphinx website. - "-k" "not test_format_annotation"))))))) + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) (propagated-inputs (list python-sphinx)) (native-inputs (list python-nptyping