[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/12: gnu: gunicorn: Respect '--without-tests'.
From: |
guix-commits |
Subject: |
01/12: gnu: gunicorn: Respect '--without-tests'. |
Date: |
Thu, 6 May 2021 13:16:03 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit d51daf25c4210bdfe8e4d9db096bb8ccf088d3b4
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu May 6 01:00:38 2021 +0200
gnu: gunicorn: Respect '--without-tests'.
* gnu/packages/python-web.scm (gunicorn)[arguments]: Only run tests when
TESTS? is #true.
---
gnu/packages/python-web.scm | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index f13fb5b..8b6b667 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4,7 +4,7 @@
;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
;;; Copyright © 2016, 2017 Danny Milosavljevic <dannym+a@scratchpost.org>
;;; Copyright © 2013, 2014, 2015, 2016, 2020 Andreas Enge <andreas@enge.fr>
-;;; Copyright © 2016, 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2016, 2017, 2019, 2020, 2021 Marius Bakke <marius@gnu.org>
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus
<rekado@elephly.net>
;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
;;; Copyright © 2016, 2017, 2020 Julien Lepiller <julien@lepiller.eu>
@@ -4708,10 +4708,13 @@ event loop. It is implemented in Cython and uses libuv
under the hood.")
(delete-file "docs/build/texinfo/Gunicorn.texi")
#t))
(replace 'check
- (lambda _
- (setenv "PYTHONPATH"
- (string-append ".:" (getenv "PYTHONPATH")))
- (invoke "pytest")))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (if tests?
+ (begin
+ (setenv "PYTHONPATH"
+ (string-append ".:" (getenv "PYTHONPATH")))
+ (invoke "pytest" "-vv"))
+ (format #t "test suite not run~%"))))
(add-after 'install 'install-doc
(lambda* (#:key outputs #:allow-other-keys)
(let* ((doc (string-append (assoc-ref outputs "doc")
- branch master updated (ce7b202 -> dd52cb9), guix-commits, 2021/05/06
- 01/12: gnu: gunicorn: Respect '--without-tests'.,
guix-commits <=
- 02/12: gnu: gunicorn: Remove unneeded runtime dependencies., guix-commits, 2021/05/06
- 03/12: gnu: gunicorn: Update to 2.1.0., guix-commits, 2021/05/06
- 06/12: gnu: python-django: Update to 3.2.2., guix-commits, 2021/05/06
- 05/12: gnu: Remove python-pykka., guix-commits, 2021/05/06
- 08/12: gnu: python-flake8: Do not use the 'bootstrap' pytest., guix-commits, 2021/05/06
- 07/12: gnu: python-django@2.2: Update to 2.2.22., guix-commits, 2021/05/06
- 12/12: gnu: python-hacking: Update to 4.1.0., guix-commits, 2021/05/06
- 04/12: gnu: python-dnspython: Update to 2.1.0., guix-commits, 2021/05/06
- 10/12: gnu: python-flake8: Update to 3.9.1., guix-commits, 2021/05/06
- 09/12: gnu: python-flake8: Do not delete and recreate check phase., guix-commits, 2021/05/06