[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50018] [PATCH v3 04/21] gnu: python-cfn-lint: Respect #:tests?.
From: |
Vinicius Monego |
Subject: |
[bug#50018] [PATCH v3 04/21] gnu: python-cfn-lint: Respect #:tests?. |
Date: |
Thu, 16 Sep 2021 16:20:55 +0000 |
* gnu/packages/python-web.scm (python-cfn-lint)[arguments]: Make some cosmetic
changes. Respect #:tests? in the custom 'check phase.
---
gnu/packages/python-web.scm | 36 +++++++++++++++++++-----------------
1 file changed, 19 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index e1742cf71b..8e0f768087 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -492,23 +492,25 @@ emit information from within their applications to the
AWS X-Ray service.")
"161mzzlpbi85q43kwzrj39qb32l6wg6xhnbbd4z860yrfbymsn87"))))
(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 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")
+ (setenv "PYTHONPATH"
+ (string-append "./build/lib:"
+ (getenv "PYTHONPATH")))
+ (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
- [bug#50018] [PATCH v3 00/21] Update Celery to version 5., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 03/21] gnu: Add python-pytest-subtests., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 05/21] gnu: python-botocore: Update to 1.21.42., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 01/21] gnu: Add python-click-repl., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 02/21] gnu: Add python-click-didyoumean., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 04/21] gnu: python-cfn-lint: Respect #:tests?.,
Vinicius Monego <=
- [bug#50018] [PATCH v3 10/21] gnu: python-moto: Update to 2.2.7., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 09/21] gnu: python-aws-sam-translator: Change source for tests., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 16/21] gnu: Add python-pytest-celery., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 14/21] gnu: python-amqp: Update to 5.0.6., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 19/21] gnu: Remove python2-celery., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 08/21] gnu: awscli: Update to 1.20.42., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 06/21] gnu: python-s3transfer: Update to 0.5.0., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 12/21] gnu: python-vine: Update to 5.0.0., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 21/21] gnu: Remove python2-amqp., Vinicius Monego, 2021/09/16