all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 51396@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#51396] [PATCH v2 3/8] gnu: python-cfn-lint: Honor #:tests? flag.
Date: Fri,  5 Nov 2021 01:58:31 +0000	[thread overview]
Message-ID: <20211105015836.1046845-3-monego@posteo.net> (raw)
In-Reply-To: <20211105015836.1046845-1-monego@posteo.net>

* 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)))
-- 
2.30.2





  parent reply	other threads:[~2021-11-05  2:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-25 19:44 [bug#51396] [PATCH 0/7] Update python-moto Vinicius Monego
2021-10-25 19:49 ` [bug#51396] [PATCH 1/7] gnu: python-aws-sam-translator: Update to 1.39.0 Vinicius Monego
2021-10-25 19:50   ` [bug#51396] [PATCH 2/7] gnu: python-cfn-lint: Update to 0.54.3 Vinicius Monego
2021-10-25 19:50   ` [bug#51396] [PATCH 3/7] gnu: python-cfn-lint: Respect #:tests? Vinicius Monego
2021-10-25 19:50   ` [bug#51396] [PATCH 4/7] gnu: python-s3transfer: Update to 0.5.0 Vinicius Monego
2021-10-25 19:50   ` [bug#51396] [PATCH 5/7] gnu: Update awscli, python-boto3 and python-botocore Vinicius Monego
2021-10-25 19:50   ` [bug#51396] [PATCH 6/7] gnu: python-moto: Update to 2.2.11 Vinicius Monego
2021-10-25 19:50   ` [bug#51396] [PATCH 7/7] gnu: python-moto: Respect #:tests? Vinicius Monego
2021-11-05  1:58 ` [bug#51396] [PATCH v2 1/8] gnu: python-aws-sam-translator: Update to 1.40.0 Vinicius Monego
2021-11-05  1:58   ` [bug#51396] [PATCH v2 2/8] gnu: python-cfn-lint: Update to 0.54.3 Vinicius Monego
2021-11-05  1:58   ` Vinicius Monego [this message]
2021-11-05  1:58   ` [bug#51396] [PATCH v2 4/8] gnu: python-s3transfer: Update to 0.5.0 Vinicius Monego
2021-11-05  1:58   ` [bug#51396] [PATCH v2 5/8] gnu: python-s3transfer: Honor #:tests? flag Vinicius Monego
2021-11-05  1:58   ` [bug#51396] [PATCH v2 6/8] gnu: Update awscli, python-boto3 and python-botocore Vinicius Monego
2021-11-05  1:58   ` [bug#51396] [PATCH v2 7/8] gnu: python-moto: Update to 2.2.12 Vinicius Monego
2021-11-05  1:58   ` [bug#51396] [PATCH v2 8/8] gnu: python-moto: Honor #:tests? flag Vinicius Monego
2021-12-11 23:27 ` bug#51396: [PATCH 0/7] Update python-moto Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211105015836.1046845-3-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=51396@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.