From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4K1NAbwKd2Gd1QAAgWs5BA (envelope-from ) for ; Mon, 25 Oct 2021 21:51:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iPF/OLsKd2G0BQAAB5/wlQ (envelope-from ) for ; Mon, 25 Oct 2021 19:51:23 +0000 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 8FB2D263AD for ; Mon, 25 Oct 2021 21:51:23 +0200 (CEST) Received: from localhost ([::1]:46092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mf60A-0002HP-LE for larch@yhetil.org; Mon, 25 Oct 2021 15:51:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mf5zr-0001gj-Tk for guix-patches@gnu.org; Mon, 25 Oct 2021 15:51:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mf5zr-00009h-LA for guix-patches@gnu.org; Mon, 25 Oct 2021 15:51:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mf5zr-0000kK-D3 for guix-patches@gnu.org; Mon, 25 Oct 2021 15:51:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51396] [PATCH 3/7] gnu: python-cfn-lint: Respect #:tests?. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Oct 2021 19:51:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51396 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51396@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 51396-submit@debbugs.gnu.org id=B51396.16351914492806 (code B ref 51396); Mon, 25 Oct 2021 19:51:03 +0000 Received: (at 51396) by debbugs.gnu.org; 25 Oct 2021 19:50:49 +0000 Received: from localhost ([127.0.0.1]:44387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mf5zc-0000jC-SX for submit@debbugs.gnu.org; Mon, 25 Oct 2021 15:50:49 -0400 Received: from mout01.posteo.de ([185.67.36.65]:47887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mf5zb-0000il-Bl for 51396@debbugs.gnu.org; Mon, 25 Oct 2021 15:50:48 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 5B83724002A for <51396@debbugs.gnu.org>; Mon, 25 Oct 2021 21:50:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1635191441; bh=YKNGkGmTIn/suoWKAR3wHLJSNl6i7ifzZrmV4aB/Hr0=; h=From:To:Cc:Subject:Date:From; b=FmgOV0QYWYs6p6l+cOXZx7AvRngJ/UQaXQklIgQFZOIgs2nveZfo1glgU4Xe+iBUp Lh678fsZTuM5XKXzoaH+aYjfRDH3WhcSLiP3i9aGpyG8qPbVQPHNEdhgUFVNtVoonH 6HXC/0RbCgpDXL+2sYm9ofXg5KIldyYefsGFyPDXFAh826iIGQ1A2pNGMFSaEiuSL1 AdEbn7lBt1zq4Olv8G4KqqB+a/L4DMCZuBOmRnFBYT/S2q4lk5CUWnqkPRWBUEYk1k 2ZgtbjJvZQ6XqKAthJyqK0q0U8ZGhlwTFRTiDRoXtcI7SaeQVw22l0IccCjb9b8e3z mlZ7bKr4B9ZVA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HdQYD1XC1z6tmQ; Mon, 25 Oct 2021 21:50:39 +0200 (CEST) From: Vinicius Monego Date: Mon, 25 Oct 2021 19:50:01 +0000 Message-Id: <20211025195005.61439-3-monego@posteo.net> In-Reply-To: <20211025195005.61439-1-monego@posteo.net> References: <20211025195005.61439-1-monego@posteo.net> 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635191483; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=uJD08b6UIVzGBE2ej5cec1EbPmO0IMGb4pd+7FdYTP8=; b=KCXnXrtjEozfl/mxMJkNPRLOJFlpK5M0AYqvXXRmNaNWpkd3vHj9yRFvrDG8GapIsQKBo4 dNoKJRcRn0NTqfSPvCrL24UFDb0wzdzYwSANkQVf3sDKqij3LkIMjUbWgqI4d2irolj7zD tzeOR6D4FgQPPpV86uKIfw14bzBo8x/fpTfkJtQg9XaU7HDVPLLOQk+FJINHjREQs0ENho wj/OaYoMHmPRL6YfbCuX3nnkRHYMlnWyMb1i2RxSp955i7AptiSfcoDw/+Mv8OiZxYQogr SE8eMAcoRaaqSfcjYpthzbn19WQqexkg9YyL+DpKibjneXo2bIqWwjia9REfxQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635191483; a=rsa-sha256; cv=none; b=VozRjdYH3pli9SU9N1pc4Nfgzk2Jd6rpTHVu3b6VdQrallFs10ns4Ix2B0qbF7EWl4H/hD D2eUaroKMuM1+4IvoCwzu1lE4Eeo6cH13vKzFQyNHllyhsjctANslmLgpFvUUezA/Ipu5z t4KKnrxBxDHC2CABxOt+htkXP4Wlt876QopsgN4c2UuXkKxhsfeTs8w0Fc94Yjmcfwjm8k 2UiG6f+N5jq2yH5JP4XECIqbk6Ba4Hqv+/6KF/dECvMbt1l4aryJ4a9XF3H/X3OXwu1HLG 2w0/JZ8hbOYvNM+WByq18P7fTLUWTH08PKf3uFQz1k/rDPuYVQvoa0u0dNIcYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=FmgOV0QY; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 5.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=FmgOV0QY; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 8FB2D263AD X-Spam-Score: 5.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: hiQp2STKr3Tw * gnu/packages/python-web.scm (python-cfn-lint)[arguments]: Make some cosmetic changes. Respect #:tests? in the custom 'check phase and simplify it. --- gnu/packages/python-web.scm | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index af6443795e..451a6d3652 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -491,23 +491,23 @@ emit information from within their applications to the AWS X-Ray service.") "106qf19n2k6sdjkb4006aidibd24qqiw901c1613xgjpnyw4dyl6")))) (build-system python-build-system) (arguments - `(#:phases (modify-phases %standard-phases - (replace 'check - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - ;; Remove test for the documentation update scripts - ;; to avoid a dependency on 'git'. - (delete-file - "test/unit/module/maintenance/test_update_documentation.py") - (delete-file - "test/unit/module/maintenance/test_update_resource_specs.py") - (setenv "PYTHONPATH" - (string-append "./build/lib:" - (getenv "PYTHONPATH"))) - (setenv "PATH" (string-append out "/bin:" - (getenv "PATH"))) - (invoke "python" "-m" "unittest" "discover" "-v" - "-s" "test"))))))) + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (let ((out (assoc-ref outputs "out"))) + ;; Remove test for the documentation update scripts + ;; to avoid a dependency on 'git'. + (delete-file + "test/unit/module/maintenance/test_update_documentation.py") + (delete-file + "test/unit/module/maintenance/test_update_resource_specs.py") + (add-installed-pythonpath inputs outputs) + (setenv "PATH" (string-append out "/bin:" + (getenv "PATH"))) + (invoke "python" "-m" "unittest" "discover" + "-s" "test")))))))) (native-inputs `(("python-pydot" ,python-pydot) ("python-mock" ,python-mock))) -- 2.30.2