[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/15: gnu: python-cfn-lint: Honor #:tests? flag.
From: |
guix-commits |
Subject: |
10/15: gnu: python-cfn-lint: Honor #:tests? flag. |
Date: |
Sat, 11 Dec 2021 18:29:31 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit dbf5d938c54dbc0cf3271018a0a4aa5b69ec4037
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Fri Nov 5 01:58:31 2021 +0000
gnu: python-cfn-lint: Honor #:tests? flag.
* gnu/packages/python-web.scm (python-cfn-lint)[arguments]: Make some
cosmetic
changes. Adjust custom 'check phase to honor the #:tests? flag.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
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 f47ba86..063b2c5 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -514,23 +514,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)))
- branch master updated (d5cfca2 -> 8bb6c74), guix-commits, 2021/12/11
- 01/15: challenge: Use SRFI-71 instead of SRFI-11., guix-commits, 2021/12/11
- 02/15: challenge: Store item contents are returned in canonical order., guix-commits, 2021/12/11
- 03/15: substitutes: Build correct narinfo URLs for cache URLs without trailing slash., guix-commits, 2021/12/11
- 05/15: gnu: Add ascii., guix-commits, 2021/12/11
- 07/15: gnu: python-vcrpy: Update to 4.1.1., guix-commits, 2021/12/11
- 04/15: narinfo: Do not repeat slash when building nar URLs., guix-commits, 2021/12/11
- 08/15: gnu: python-aws-sam-translator: Update to 1.40.0., guix-commits, 2021/12/11
- 06/15: gnu: Add python-ipaddress., guix-commits, 2021/12/11
- 09/15: gnu: python-cfn-lint: Update to 0.54.3., guix-commits, 2021/12/11
- 10/15: gnu: python-cfn-lint: Honor #:tests? flag.,
guix-commits <=
- 12/15: gnu: python-s3transfer: Honor #:tests? flag., guix-commits, 2021/12/11
- 13/15: gnu: Update awscli, python-boto3 and python-botocore., guix-commits, 2021/12/11
- 11/15: gnu: python-s3transfer: Update to 0.5.0., guix-commits, 2021/12/11
- 15/15: gnu: python-moto: Honor #:tests? flag., guix-commits, 2021/12/11
- 14/15: gnu: python-moto: Update to 2.2.12., guix-commits, 2021/12/11