From patchwork Fri Nov 5 01:58:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 34246 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 58ECF27BBE3; Fri, 5 Nov 2021 02:00:22 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2446B27BBE1 for ; Fri, 5 Nov 2021 02:00:22 +0000 (GMT) Received: from localhost ([::1]:57996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mioWj-0000tC-BN for patchwork@mira.cbaines.net; Thu, 04 Nov 2021 22:00:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mioWR-0000kn-96 for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mioWR-0005nh-0p for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mioWQ-0004FZ-UQ for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51396] [PATCH v2 2/8] gnu: python-cfn-lint: Update to 0.54.3. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Nov 2021 02:00:02 +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.163607757816203 (code B ref 51396); Fri, 05 Nov 2021 02:00:02 +0000 Received: (at 51396) by debbugs.gnu.org; 5 Nov 2021 01:59:38 +0000 Received: from localhost ([127.0.0.1]:44031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioW2-0004DH-Bu for submit@debbugs.gnu.org; Thu, 04 Nov 2021 21:59:38 -0400 Received: from mout02.posteo.de ([185.67.36.66]:34137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioW1-0004Cs-7R for 51396@debbugs.gnu.org; Thu, 04 Nov 2021 21:59:37 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 74D99240101 for <51396@debbugs.gnu.org>; Fri, 5 Nov 2021 02:59:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636077571; bh=yB9XRi3N9JUeZPxhBYBEIbHZRjlKV7iPEqU6xnZruzw=; h=From:To:Cc:Subject:Date:From; b=DcNVdlVGn6jgjmU32InFPILSC0y5GPZyY5ffdD2WsRCYItekc951PPFSui9S6cSaw rRSCF4xnE/d5P/xtEvRlkeIKfTG/SXcus1cq7ezYdFVHSjFvwRT8pJ455LhsJDO7C4 DQw6dr2MsYt3V+H9+MQfR0e/eLdhx/Tp5+FFyDEz+/XV7MJWel0Rq5AdIM+i993G2Q PqDOVGFfQYEBN+4voiWA5mC9WPGD2OxICyihg7/GxJgh1HzjUN3fRLy7EaCVi/CbIm 9MlPZI+3/klAMHm1c2EnnTi5f+SqIaeM5IE1GGnpprZoEeUw3RVJ7vtyMraarZpZbv +vu1X83mEsm1Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HlkGB3fJfz6tm9; Fri, 5 Nov 2021 02:59:29 +0100 (CET) From: Vinicius Monego Date: Fri, 5 Nov 2021 01:58:30 +0000 Message-Id: <20211105015836.1046845-2-monego@posteo.net> In-Reply-To: <20211105015836.1046845-1-monego@posteo.net> References: <20211105015836.1046845-1-monego@posteo.net> 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-cfn-lint): Update to 0.54.3. [home-page]: Follow redirect. --- gnu/packages/python-web.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 29c0b7e15e..4ffdb0ad7f 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -496,8 +496,8 @@ emit information from within their applications to the AWS X-Ray service.") (define-public python-cfn-lint (package (name "python-cfn-lint") - (version "0.54.1") - (home-page "https://github.com/aws-cloudformation/cfn-python-lint") + (version "0.54.3") + (home-page "https://github.com/aws-cloudformation/cfn-lint") (source (origin (method git-fetch) (uri (git-reference @@ -506,7 +506,7 @@ emit information from within their applications to the AWS X-Ray service.") (file-name (git-file-name name version)) (sha256 (base32 - "161mzzlpbi85q43kwzrj39qb32l6wg6xhnbbd4z860yrfbymsn87")))) + "106qf19n2k6sdjkb4006aidibd24qqiw901c1613xgjpnyw4dyl6")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases From patchwork Fri Nov 5 01:58:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 34248 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 EA9C427BBE3; Fri, 5 Nov 2021 02:00:26 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 79BC027BBE1 for ; Fri, 5 Nov 2021 02:00:26 +0000 (GMT) Received: from localhost ([::1]:58382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mioWn-00019P-Le for patchwork@mira.cbaines.net; Thu, 04 Nov 2021 22:00:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mioWR-0000l2-Rb for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60735) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mioWR-0005oN-Bt for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mioWR-0004Fg-B6 for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51396] [PATCH v2 3/8] gnu: python-cfn-lint: Honor #:tests? flag. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Nov 2021 02:00: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.163607758416222 (code B ref 51396); Fri, 05 Nov 2021 02:00:03 +0000 Received: (at 51396) by debbugs.gnu.org; 5 Nov 2021 01:59:44 +0000 Received: from localhost ([127.0.0.1]:44034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioW7-0004DY-LZ for submit@debbugs.gnu.org; Thu, 04 Nov 2021 21:59:43 -0400 Received: from mout02.posteo.de ([185.67.36.66]:35897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioW6-0004D9-8a for 51396@debbugs.gnu.org; Thu, 04 Nov 2021 21:59:42 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 7D714240101 for <51396@debbugs.gnu.org>; Fri, 5 Nov 2021 02:59:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636077576; bh=1MZpaIk4aD0OmqMaWpTSOHo5p2sPzcU/QGEMxgWTk3Y=; h=From:To:Cc:Subject:Date:From; b=XWdadW1/Dts3bJhqeWvTleWOBB3qjhtaPFHrLKixb9X8qHBDj0zx6mYj4HPmj1RIh zN3PMf/NkUgse6CQz5Y6HguLP3mlk34PAGqeanIeADg34TSc4DcJbcGYmK4gNq82hV FaLpO9e+x0j94gyFfTlszQdKU4nExHEQhDwsmkcY7iJNaHkFHtnM9dQc9CSyIpWtSR ImwQMGvum897wX5CgY0WsJ1mhKFV9Uv6qy2StUrzFIrBlU79gNRPsleEubGt42s9M6 pswF5S90meJXyp3VW1TrVanzmt2dWvjpGovkUmjlOyQABy27XxAxSM0N/eTmgyZ6ug ccozz5Zy8lOAw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HlkGH0vqdz9rxF; Fri, 5 Nov 2021 02:59:34 +0100 (CET) From: Vinicius Monego Date: Fri, 5 Nov 2021 01:58:31 +0000 Message-Id: <20211105015836.1046845-3-monego@posteo.net> In-Reply-To: <20211105015836.1046845-1-monego@posteo.net> References: <20211105015836.1046845-1-monego@posteo.net> 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-cfn-lint)[arguments]: Make some cosmetic changes. Adjust custom 'check phase to honor the #:tests? flag. --- 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 4ffdb0ad7f..66411173d0 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -509,23 +509,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))) From patchwork Fri Nov 5 01:58:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 34247 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 D881127BBE3; Fri, 5 Nov 2021 02:00:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4A3CE27BBE1 for ; Fri, 5 Nov 2021 02:00:19 +0000 (GMT) Received: from localhost ([::1]:57850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mioWg-0000m9-5Y for patchwork@mira.cbaines.net; Thu, 04 Nov 2021 22:00:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mioWS-0000lA-27 for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60737) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mioWR-0005oV-Pb for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mioWR-0004Fn-Ou for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51396] [PATCH v2 4/8] gnu: python-s3transfer: Update to 0.5.0. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Nov 2021 02:00: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.163607758916239 (code B ref 51396); Fri, 05 Nov 2021 02:00:03 +0000 Received: (at 51396) by debbugs.gnu.org; 5 Nov 2021 01:59:49 +0000 Received: from localhost ([127.0.0.1]:44037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioWC-0004Dr-Ut for submit@debbugs.gnu.org; Thu, 04 Nov 2021 21:59:49 -0400 Received: from mout01.posteo.de ([185.67.36.65]:54689) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioWB-0004DR-Br for 51396@debbugs.gnu.org; Thu, 04 Nov 2021 21:59:47 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 272BD240026 for <51396@debbugs.gnu.org>; Fri, 5 Nov 2021 02:59:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636077581; bh=0RULO+u78ukdJ/OTXtClrr7RXe7nXMXOgh6tH+IhqZU=; h=From:To:Cc:Subject:Date:From; b=HBTn3FQkpLI163NxLEjmbnO57dusyArfPeouMXRaySxP/IoSC3Ii6TozNbkwhtciY v/pNridbXeh67N2fV326SV8ySjGirZ/IHDulZ6JRQ1jxjJ64RrvlLyEKNpl11DUPFq PzohMxJis9o2QXr97caSr1ai1ZbnqslX8X5UGiYgZjN3G5BKlHCSC+s+sp9kmRiIgL BHQpQiuPHdACRur/8OFGwHDCm4fDS1/YAxLqxiYcw1NY3D6C+xjBtdbAaGeSX2xHkT xsPC2Ex9dTi/k7wUykFWEfVAMfsJg0s7RuZBnj+6+5A94RLSmWGftJK63b/YKkaNTM 7QSTwOkLCQs5A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HlkGM5j2Tz6tm9; Fri, 5 Nov 2021 02:59:39 +0100 (CET) From: Vinicius Monego Date: Fri, 5 Nov 2021 01:58:32 +0000 Message-Id: <20211105015836.1046845-4-monego@posteo.net> In-Reply-To: <20211105015836.1046845-1-monego@posteo.net> References: <20211105015836.1046845-1-monego@posteo.net> 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-s3transfer): Update to 0.5.0. [arguments]<#:phases>: Remove 'patch phase because the issue was fixed upstream. Don't return #t in custom 'check phase. --- gnu/packages/python-web.scm | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 66411173d0..2953198a08 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3404,32 +3404,22 @@ Betamax that may possibly end up in the main package.") (define-public python-s3transfer (package (name "python-s3transfer") - (version "0.3.3") + (version "0.5.0") (source (origin (method url-fetch) (uri (pypi-uri "s3transfer" version)) (sha256 (base32 - "1nzp5kwmy9669334shcz9ipg89jgpdqhrmbkgdg18r7wmvi3f6lj")))) + "0k6sc956yrrv9b4laa0r79jhxajpyxr21jcd1ka8m1n53lz85vah")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases - (add-after 'unpack 'patch - (lambda _ - ;; There's a small issue with one test with Python 3.8, this - ;; change has been suggested upstream: - ;; https://github.com/boto/s3transfer/pull/164 - (substitute* "tests/unit/test_s3transfer.py" - (("super\\(FailedDownloadParts, self\\)\\.submit\\(function\\)") - "futures.Future()")) - #t)) (replace 'check (lambda _ ;; Some of the 'integration' tests require network access or ;; login credentials. - (invoke "nosetests" "--exclude=integration") - #t))))) + (invoke "nosetests" "--exclude=integration")))))) (native-inputs `(("python-docutils" ,python-docutils) ("python-mock" ,python-mock) From patchwork Fri Nov 5 01:58:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 34250 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 1517927BBE3; Fri, 5 Nov 2021 02:00:34 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CCEC227BBE1 for ; Fri, 5 Nov 2021 02:00:33 +0000 (GMT) Received: from localhost ([::1]:58836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mioWv-0001Rp-0p for patchwork@mira.cbaines.net; Thu, 04 Nov 2021 22:00:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mioWS-0000lL-LT for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60738) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mioWS-0005of-CY for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mioWS-0004G0-Bt for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51396] [PATCH v2 5/8] gnu: python-s3transfer: Honor #:tests? flag. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Nov 2021 02:00:04 +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.163607759216255 (code B ref 51396); Fri, 05 Nov 2021 02:00:04 +0000 Received: (at 51396) by debbugs.gnu.org; 5 Nov 2021 01:59:52 +0000 Received: from localhost ([127.0.0.1]:44040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioWG-0004E7-6d for submit@debbugs.gnu.org; Thu, 04 Nov 2021 21:59:52 -0400 Received: from mout02.posteo.de ([185.67.36.66]:56145) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioWE-0004Di-S1 for 51396@debbugs.gnu.org; Thu, 04 Nov 2021 21:59:51 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 21385240103 for <51396@debbugs.gnu.org>; Fri, 5 Nov 2021 02:59:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636077585; bh=CKoHoi1RvwUAz27ck3bN9TZRGcfYT0bBXuT3eeiKuaU=; h=From:To:Cc:Subject:Date:From; b=Kbe4p8wMaCNjHkkvoWGzzMA/pEFrLBajrK/4OZLm1SzF1rUE1HXouK1kBvJ0ftGD2 4V99wfqsfHiibPfn88AhYwC5l0qf7uInZWicJ9YPNae4okqG4fLCR65BKhVCJrWb/P iku5GjUofTowkX2CyoDfVtBvRA+iRRAAc4uA3XblbHlXxnsc/ubDVED6YmqVN90beT ayI7vvFdebBAfAnJqTMBFKv/MBN1z0Jt9MG9XnwWZ+OLdCSFP+Dzf5qoUI2wxpG2xv hgwoS6iD3GZaAEQyYiK8I0UR7sJjnRTlNSf/3dtqDkbGxCw/d/IhDqar5LobjuW/G8 trGuVRQXHae3g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HlkGS1S67z6tm9; Fri, 5 Nov 2021 02:59:43 +0100 (CET) From: Vinicius Monego Date: Fri, 5 Nov 2021 01:58:33 +0000 Message-Id: <20211105015836.1046845-5-monego@posteo.net> In-Reply-To: <20211105015836.1046845-1-monego@posteo.net> References: <20211105015836.1046845-1-monego@posteo.net> 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-s3transfer)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. --- gnu/packages/python-web.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 2953198a08..9d1ae458d3 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3416,10 +3416,11 @@ Betamax that may possibly end up in the main package.") `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - ;; Some of the 'integration' tests require network access or - ;; login credentials. - (invoke "nosetests" "--exclude=integration")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; Some of the 'integration' tests require network access or + ;; login credentials. + (invoke "nosetests" "--exclude=integration"))))))) (native-inputs `(("python-docutils" ,python-docutils) ("python-mock" ,python-mock) From patchwork Fri Nov 5 01:58:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 34249 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 241D227BBE3; Fri, 5 Nov 2021 02:00:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DAE4727BBE1 for ; Fri, 5 Nov 2021 02:00:28 +0000 (GMT) Received: from localhost ([::1]:58554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mioWq-0001Gg-0R for patchwork@mira.cbaines.net; Thu, 04 Nov 2021 22:00:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mioWT-0000lW-5p for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mioWS-0005os-Pz for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mioWS-0004G7-Pi for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51396] [PATCH v2 6/8] gnu: Update awscli, python-boto3 and python-botocore. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Nov 2021 02:00:04 +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.163607759716274 (code B ref 51396); Fri, 05 Nov 2021 02:00:04 +0000 Received: (at 51396) by debbugs.gnu.org; 5 Nov 2021 01:59:57 +0000 Received: from localhost ([127.0.0.1]:44043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioWL-0004EQ-EN for submit@debbugs.gnu.org; Thu, 04 Nov 2021 21:59:57 -0400 Received: from mout01.posteo.de ([185.67.36.65]:43093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioWJ-0004Dz-11 for 51396@debbugs.gnu.org; Thu, 04 Nov 2021 21:59:55 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 5D0AB240026 for <51396@debbugs.gnu.org>; Fri, 5 Nov 2021 02:59:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636077589; bh=Yh0NCkMWuBr+KMcVR7nkf95ppW2X26GgowKpASPjf6c=; h=From:To:Cc:Subject:Date:From; b=aNXWxU3EfsTCzTC+Y1b7GLOY64VpIl+5PKljMdj8wVYqOmVFjmKgdAtqHK3Huyk9O b6J7r+t3TwmMPw5k6eoHdUdhJgj58ErkRPFP2ebouZ0bGY0V2Y4VG7prZbP3Lqia25 fKeyVCuC1oN33Aev5HADG8AOvoQ9RaOvtDQK2FqgGlClgAinHyX6ekF24kUqcncG+L cnX32TrqaN24TFLeVsSGgwHW/3ygpjk0Iv7YVk1NcwJIfkdGxQE1p0inGv7aFltvuB sMBxJW8nr/3Lm7RTze5jL+GVomD2qN57Hp3pPJzl4xVWtpTtpwEzwfcMG2OelGIj8d qIg/a6dQyFPig== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HlkGX3cD3z9rwg; Fri, 5 Nov 2021 02:59:48 +0100 (CET) From: Vinicius Monego Date: Fri, 5 Nov 2021 01:58:34 +0000 Message-Id: <20211105015836.1046845-6-monego@posteo.net> In-Reply-To: <20211105015836.1046845-1-monego@posteo.net> References: <20211105015836.1046845-1-monego@posteo.net> 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches awscli, botocore and boto3 work together and typically require matching versions. * gnu/packages/python-xyz.scm (python-botocore): Update to 1.22.11. (python-boto3): Update to 1.19.11. [native-inputs]: Add python-pytest. * gnu/packages/python-web.scm (awscli): Update to 1.21.11. --- gnu/packages/python-web.scm | 4 ++-- gnu/packages/python-xyz.scm | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9d1ae458d3..a2d82f03cd 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2866,14 +2866,14 @@ supports url redirection and retries, and also gzip and deflate decoding.") (package ;; Note: updating awscli typically requires updating botocore as well. (name "awscli") - (version "1.18.203") + (version "1.21.11") (source (origin (method url-fetch) (uri (pypi-uri name version)) (sha256 (base32 - "128zg24961j8nmnq2dxqg6a7zwh3qgv87cmvclsdqwwih9nigxv9")))) + "0fkivwbx4nind5b7l4jhqm5bb9drgqsclcslrg4aggf9rcs4g4s0")))) (build-system python-build-system) (arguments ;; FIXME: The 'pypi' release does not contain tests. diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f12cca9757..24aa9d95a7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13473,14 +13473,14 @@ This software is unmaintained, and new projects should use @code{boto3} instead. ;; are compatible. (package (name "python-botocore") - (version "1.19.22") + (version "1.22.11") (source (origin (method url-fetch) (uri (pypi-uri "botocore" version)) (sha256 (base32 - "0iim86x7c6hqmvd61ygz6x6x9glnsfbnyzv2y67qjdcdx8jpkmw7")))) + "1z7g2scyzvfq4yj9b4w911k7802ry1v6lqfnwq12l0ak7ywmsvrh")))) (build-system python-build-system) (arguments ;; FIXME: Many tests are failing. @@ -13501,7 +13501,7 @@ interface to the Amazon Web Services (AWS) API.") (define-public python-boto3 (package (name "python-boto3") - (version "1.16.22") + (version "1.19.11") (home-page "https://github.com/boto/boto3") (source (origin (method git-fetch) @@ -13509,19 +13509,19 @@ interface to the Amazon Web Services (AWS) API.") (file-name (git-file-name name version)) (sha256 (base32 - "0h20hgl4yfl58g75qhb6ibrdmzn47md3srgar7hask14cjmfhfy3")))) + "1wv0ci2z5ywvm63dh4mp64vqyyvkm4qxc8dxv8ncrqiiphpgr9aq")))) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'delete-network-tests ;; Deleting integration tests because they are trying to connect to AWS. - (lambda _ - (delete-file-recursively "tests/integration") - #t))))) + (lambda _ + (delete-file-recursively "tests/integration")))))) (build-system python-build-system) (native-inputs `(("python-nose" ,python-nose) - ("python-mock" ,python-mock))) + ("python-mock" ,python-mock) + ("python-pytest" ,python-pytest))) (propagated-inputs `(("python-botocore" ,python-botocore) ("python-jmespath" ,python-jmespath) From patchwork Fri Nov 5 01:58:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 34251 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 2391827BBE3; Fri, 5 Nov 2021 02:00:54 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8E78727BBE1 for ; Fri, 5 Nov 2021 02:00:53 +0000 (GMT) Received: from localhost ([::1]:59118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mioXE-0001dq-OL for patchwork@mira.cbaines.net; Thu, 04 Nov 2021 22:00:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mioWT-0000mL-OK for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mioWT-0005oy-Ea for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mioWT-0004GJ-Df for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51396] [PATCH v2 7/8] gnu: python-moto: Update to 2.2.12. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Nov 2021 02:00:05 +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.163607760116290 (code B ref 51396); Fri, 05 Nov 2021 02:00:05 +0000 Received: (at 51396) by debbugs.gnu.org; 5 Nov 2021 02:00:01 +0000 Received: from localhost ([127.0.0.1]:44046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioWO-0004Eg-PJ for submit@debbugs.gnu.org; Thu, 04 Nov 2021 22:00:01 -0400 Received: from mout02.posteo.de ([185.67.36.66]:44413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioWN-0004EG-Iq for 51396@debbugs.gnu.org; Thu, 04 Nov 2021 22:00:00 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id CC1F8240101 for <51396@debbugs.gnu.org>; Fri, 5 Nov 2021 02:59:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636077593; bh=RG6kgYMi7R0aGgaQ6h+qlQSxqdjBITixeA5A7yt/dzg=; h=From:To:Cc:Subject:Date:From; b=F31v7lQkwGDhetpVbLa9BHBEnfMKFHUQq3cC3qaTdNAsZsQ7z+aeG/6sakZmJ4iUU m/sz3gp2FVTjRviw8jH8XUXh3niy0M48ymrENBFk+samMi4bVJV2nQfe4Dfy2zmKty 2dgkVOcWDy4tUzUArQ4csaM7N1JUM+zxJDSrqM9+iYV9Pl/u6vR0K3tQStpWnVav2T fLnf1C6Xg3lcvswsAOxf08Fco8iq5cq/7BZaCJumi5TZXqCprc4jvt+liU1qMAiLO3 VEvYxhAvdf0Gtyx0cJ+GmMvrJGwGzlVrCujGQnXu6GU/RKp580CM0PjV5iOogpDENY LL1dSyG95Or7Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HlkGc59fDz6tm9; Fri, 5 Nov 2021 02:59:52 +0100 (CET) From: Vinicius Monego Date: Fri, 5 Nov 2021 01:58:35 +0000 Message-Id: <20211105015836.1046845-7-monego@posteo.net> In-Reply-To: <20211105015836.1046845-1-monego@posteo.net> References: <20211105015836.1046845-1-monego@posteo.net> 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-moto): Update to 2.2.12. [arguments]: Make some cosmetic changes. <#:phases>: Don't return #t. Support cross-compilation in 'patch-hardcoded-executable-names. Skip more tests and simplify the custom 'check phase. --- gnu/packages/python-xyz.scm | 51 ++++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 24aa9d95a7..528e3b025a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13095,34 +13095,41 @@ text.") (define-public python-moto (package (name "python-moto") - ;; XXX: Use a pre-release for compatibility with latest botocore & friends. - (version "1.3.16.dev134") + (version "2.2.12") (source (origin (method url-fetch) (uri (pypi-uri "moto" version)) (sha256 (base32 - "1pix0c7zszjwzfy88n1rpih9vkdm25nqcvz93z850xvgwb4v81bd")))) + "0pvay0jp119lzzwf5qj5h6311271yq0w2i6344ds20grpf6g6gz8")))) (build-system python-build-system) (arguments - `(#:phases (modify-phases %standard-phases - (add-after 'unpack 'patch-hardcoded-executable-names - (lambda _ - (substitute* "moto/batch/models.py" - (("/bin/sh") - (which "sh"))) - (substitute* (find-files "tests" "\\.py$") - (("#!/bin/bash") - (string-append "#!" (which "bash")))) - #t)) - (replace 'check - (lambda _ - (setenv "PYTHONPATH" (string-append "./build/lib:" - (getenv "PYTHONPATH"))) - (invoke "pytest" "-vv" "-m" "not network" - ;; These tests require Docker. - "-k" "not test_terminate_job \ -and not test_invoke_function_from_sqs_exception")))))) + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-hardcoded-executable-names + (lambda* (#:key inputs #:allow-other-keys) + (let ((bash-exec (string-append + (assoc-ref inputs "bash") + "/bin/sh"))) + (substitute* "moto/batch/models.py" + (("/bin/sh") bash-exec)) + (substitute* (find-files "tests" "\\.py$") + (("#!/bin/bash") (string-append "#!" bash-exec)))))) + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-vv" "-m" "not network" "-k" + (string-append + ;; These tests require Docker. + "not test_terminate_job" + " and not test_invoke_function_from_sqs_exception" + " and not test_rotate_secret_lambda_invocations" + ;; These tests also require the network. + " and not test_put_record_batch_http_destination" + " and not test_put_record_http_destination" + " and not test_dependencies" + " and not test_cancel_running_job" + " and not test_container_overrides"))))))) (native-inputs `(("python-flask" ,python-flask) ("python-flask-cors" ,python-flask-cors) @@ -13130,6 +13137,8 @@ and not test_invoke_function_from_sqs_exception")))))) ("python-parameterized" ,python-parameterized) ("python-pytest" ,python-pytest) ("python-sure" ,python-sure))) + (inputs + `(("bash" ,bash-minimal))) (propagated-inputs `(("python-aws-xray-sdk" ,python-aws-xray-sdk) ("python-boto" ,python-boto) From patchwork Fri Nov 5 01:58:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 34252 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 682FE27BBE3; Fri, 5 Nov 2021 02:01:20 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 36B0C27BBE1 for ; Fri, 5 Nov 2021 02:01:20 +0000 (GMT) Received: from localhost ([::1]:59364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mioXf-0001ti-4n for patchwork@mira.cbaines.net; Thu, 04 Nov 2021 22:01:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mioXS-0001qY-IU for guix-patches@gnu.org; Thu, 04 Nov 2021 22:01:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mioXO-0006Db-Cr for guix-patches@gnu.org; Thu, 04 Nov 2021 22:01:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mioXO-0004J9-Bz for guix-patches@gnu.org; Thu, 04 Nov 2021 22:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51396] [PATCH v2 8/8] gnu: python-moto: Honor #:tests? flag. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Nov 2021 02:01:02 +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.163607760516396 (code B ref 51396); Fri, 05 Nov 2021 02:01:02 +0000 Received: (at 51396) by debbugs.gnu.org; 5 Nov 2021 02:00:05 +0000 Received: from localhost ([127.0.0.1]:44055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioWT-0004GI-3P for submit@debbugs.gnu.org; Thu, 04 Nov 2021 22:00:05 -0400 Received: from mout02.posteo.de ([185.67.36.66]:60849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioWR-0004EX-Fm for 51396@debbugs.gnu.org; Thu, 04 Nov 2021 22:00:03 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id BE5C0240103 for <51396@debbugs.gnu.org>; Fri, 5 Nov 2021 02:59:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636077597; bh=nyz6JtQD2+GhuRAbqZh9jfAUvtIYL5Ys8IS6JNiFL2s=; h=From:To:Cc:Subject:Date:From; b=DsiH3U88BxpYWzUTOAT0pAZqlPFVHWb9MaiQ+MaGKOmtOV6W755mfNqqKSeqgAK/L 2Dfc2IJruNllIrg/p4W3SyZJ8bzrjtUmwGmAKnHFudan78dYQnuR8s0xDPGDXDdciH QYHDksrI4paU1hPv/E2nJazsXj9oZyCq9OOYVUgWz1HG0irORvVYhmgtt0DnEmxSuO IkJ2tkx27ATLDGGFwprC/mItDPMqvCES5PE4QwZcYFtQuNIC39kuXf8G/RsxN5uKNl rpAlwa8HneRYVlfFAG0HTx9lICe5kzEhJgnMB2bIrLu33a8r1RcXoS8/r2P+AfIIAo zdFOfO+CX4NdA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HlkGh6B2nz6tm9; Fri, 5 Nov 2021 02:59:56 +0100 (CET) From: Vinicius Monego Date: Fri, 5 Nov 2021 01:58:36 +0000 Message-Id: <20211105015836.1046845-8-monego@posteo.net> In-Reply-To: <20211105015836.1046845-1-monego@posteo.net> References: <20211105015836.1046845-1-monego@posteo.net> 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-moto)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. --- gnu/packages/python-xyz.scm | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 528e3b025a..0ef836e0bc 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13116,20 +13116,21 @@ text.") (substitute* (find-files "tests" "\\.py$") (("#!/bin/bash") (string-append "#!" bash-exec)))))) (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (invoke "pytest" "-vv" "-m" "not network" "-k" - (string-append - ;; These tests require Docker. - "not test_terminate_job" - " and not test_invoke_function_from_sqs_exception" - " and not test_rotate_secret_lambda_invocations" - ;; These tests also require the network. - " and not test_put_record_batch_http_destination" - " and not test_put_record_http_destination" - " and not test_dependencies" - " and not test_cancel_running_job" - " and not test_container_overrides"))))))) + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-vv" "-m" "not network" "-k" + (string-append + ;; These tests require Docker. + "not test_terminate_job" + " and not test_invoke_function_from_sqs_exception" + " and not test_rotate_secret_lambda_invocations" + ;; These tests also require the network. + " and not test_put_record_batch_http_destination" + " and not test_put_record_http_destination" + " and not test_dependencies" + " and not test_cancel_running_job" + " and not test_container_overrides")))))))) (native-inputs `(("python-flask" ,python-flask) ("python-flask-cors" ,python-flask-cors)