From patchwork Sun Jan 14 23:59:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 58877 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 C62A427BBEC; Mon, 15 Jan 2024 00:00:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 17D7727BBE2 for ; Mon, 15 Jan 2024 00:00:17 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPAOj-0007iu-Qa; Sun, 14 Jan 2024 19:00:13 -0500 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 1rPAOe-0007dl-Rp for guix-patches@gnu.org; Sun, 14 Jan 2024 19:00:09 -0500 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 1rPAOe-0000lc-4Y for guix-patches@gnu.org; Sun, 14 Jan 2024 19:00:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rPAOd-0002at-HC for guix-patches@gnu.org; Sun, 14 Jan 2024 19:00:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66886] [PATCH v4 4/6] gnu: python-jupytext: Update to 1.15.2. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 Jan 2024 00:00:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66886 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 66886@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 66886-submit@debbugs.gnu.org id=B66886.17052767949543 (code B ref 66886); Mon, 15 Jan 2024 00:00:07 +0000 Received: (at 66886) by debbugs.gnu.org; 14 Jan 2024 23:59:54 +0000 Received: from localhost ([127.0.0.1]:44301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPAOP-0002Tm-Uq for submit@debbugs.gnu.org; Sun, 14 Jan 2024 18:59:54 -0500 Received: from confino.investici.org ([2a11:7980:1::2:0]:51147) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPAON-0002Sv-LP for 66886@debbugs.gnu.org; Sun, 14 Jan 2024 18:59:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1705276791; bh=el43snspAHZQrcS5ALEWTgG0W4YP8mR6G0wNE2x7agk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LPMIudD92vlh3DVk90AVSf2uKWkTYcyWVzir3YHlr2gQnLXHYud9akuPpcUV4vPw3 +QNFUacVbhNd8/1rVJhSuBX07J1QW3cHVwlV6xd6BAKdHqUXH/JepkZ8VO1rgRMUHp Gsdl5KyYaFKWpCh6Pf8wWyO701MapFwdPcke4qB0= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4TCshR453nz111C; Sun, 14 Jan 2024 23:59:51 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4TCshR33rXz10yK; Sun, 14 Jan 2024 23:59:51 +0000 (UTC) Date: Mon, 15 Jan 2024 00:59:36 +0100 Message-ID: <20240114235938.24529-4-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240114235938.24529-1-goodoldpaul@autistici.org> References: <20240114235938.24529-1-goodoldpaul@autistici.org> MIME-Version: 1.0 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: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches X-Patchwork-Original-From: Giacomo Leidi via Guix-patches via From: Giacomo Leidi 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/python-xyz.scm (python-jupytext): Update to 1.15.2; [build-system]: switch to pyproject-build-system; [arguments]: add setup-test-environment phase, use check phase from build system and move test flags from here... : ... to here. Change-Id: Iaec4090823715230e26865d4639871fb7c565802 --- gnu/packages/python-xyz.scm | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index cef458e0fc..b4b95637c7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -336,7 +336,7 @@ (define-public python-janus (define-public python-jupytext (package (name "python-jupytext") - (version "1.14.4") + (version "1.15.2") (source (origin (method git-fetch) @@ -345,27 +345,23 @@ (define-public python-jupytext (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "19d443vx597zzxna09qpync9iic3mris80bwm3kd8xaxaq0zq9w4")))) - (build-system python-build-system) + (base32 "0zi2b2g9b2dkzl69li5rwc17pdcxj8cxzlysd8s6jqbcc37jiwqs")))) + (build-system pyproject-build-system) (arguments (list + #:test-flags + #~'("-k" #$(string-join (list "not test_create_header_with_set_formats" + "test_pre_commit_hook" + "test_sync_with_pre_commit_hook") + " and not ")) #:phases #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) + (add-before 'check 'setup-test-environment + (lambda _ ;; some tests fail when HOME=/homeless-shelter. (setenv "HOME" "/tmp") ;; OSError: [Errno 18] Invalid cross-device link - (setenv "TMPDIR" "/tmp") - (when tests? - (let ((disabled-tests - (list "test_create_header_with_set_formats" - "test_pre_commit_hook" - "test_sync_with_pre_commit_hook"))) - (invoke "pytest" "-vv" "-k" - (string-append "not " - (string-join disabled-tests - " and not ")))))))))) + (setenv "TMPDIR" "/tmp")))))) (native-inputs (list git-minimal pre-commit