[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/09: gnu: python-locust: Update to 2.5.1.
From: |
guix-commits |
Subject: |
07/09: gnu: python-locust: Update to 2.5.1. |
Date: |
Wed, 19 Jan 2022 04:08:26 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 8d70f509c700a66a6b94ff42aa0db53d582dfb53
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed Jan 19 00:25:18 2022 +0100
gnu: python-locust: Update to 2.5.1.
* gnu/packages/benchmark.scm (python-locust): Update to 2.5.1.
[arguments]: Remove obsolete phase. Respect TESTS? in check phase.
[native-inputs]: Add PYTHON-RETRY and PYTHON-SETUPTOOL-SCM.
[propagated-inputs]: Add PYTHON-FLASK-CORS, PYTHON-ROUNDROBIN, and
PYTHON-TYPING-EXTENSIONS.
---
gnu/packages/benchmark.scm | 61 ++++++++++++++++++++++------------------------
1 file changed, 29 insertions(+), 32 deletions(-)
diff --git a/gnu/packages/benchmark.scm b/gnu/packages/benchmark.scm
index 817e6b1957..537f6262c4 100644
--- a/gnu/packages/benchmark.scm
+++ b/gnu/packages/benchmark.scm
@@ -254,60 +254,57 @@ file metadata operations that can be performed per
second.")
(define-public python-locust
(package
(name "python-locust")
- (version "1.4.3")
+ (version "2.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "locust" version))
(sha256
(base32
- "0vmw151xcaznd2j85n96iyv9fniss0bkk91xn4maw2gwzym424xk"))))
+ "1516z6z5pikybg7pma2cgxgj3wxaaky7z6d30mxf81wd4krbq16s"))))
(build-system python-build-system)
(arguments
- `(#:phases
+ '(#:phases
(modify-phases %standard-phases
- (add-before 'check 'extend-PATH
- ;; Add the 'locust' script to PATH, which is used in the test
- ;; suite.
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (setenv "PATH" (string-append out "/bin:"
- (getenv "PATH"))))))
(replace 'check
- (lambda _
- (invoke "python" "-m" "pytest"
- "-k" (string-join
- (list
- ;; These tests return "non-zero exit status 1".
- "not test_default_headless_spawn_options"
- "not
test_default_headless_spawn_options_with_shape"
- "not test_headless_spawn_options_wo_run_time"
- ;; These tests depend on networking.
- "not test_html_report_option"
- "not test_web_options"
- ;; This test fails because of the warning "System
open
- ;; file limit '1024' is below minimum setting
'10000'".
- "not test_skip_logging"
- ;; On some (slow?) machines, the following tests
- ;; fail, with the processes returning exit code
- ;; -15 instead of the expected 42 and 0,
- ;; respectively (see:
- ;; https://github.com/locustio/locust/issues/1708).
- "not test_custom_exit_code"
- "not test_webserver") " and ")))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "pytest" "locust"
+ "-k" (string-join
+ '(;; These tests return "non-zero exit status 1".
+ "not test_default_headless_spawn_options"
+ "not
test_default_headless_spawn_options_with_shape"
+ "not test_headless_spawn_options_wo_run_time"
+ ;; These tests depend on networking.
+ "not test_html_report_option"
+ "not test_web_options"
+ ;; This test fails because of the warning
"System open
+ ;; file limit '1024' is below minimum setting
'10000'".
+ "not test_skip_logging"
+ ;; On some (slow?) machines, the following tests
+ ;; fail, with the processes returning exit code
+ ;; -15 instead of the expected 42 and 0,
+ ;; respectively (see:
+ ;;
https://github.com/locustio/locust/issues/1708).
+ "not test_custom_exit_code"
+ "not test_webserver") " and "))))))))
(propagated-inputs
(list python-configargparse
python-flask
python-flask-basicauth
+ python-flask-cors
python-gevent
python-geventhttpclient
python-msgpack
python-psutil
python-pyzmq
python-requests
+ python-roundrobin
+ python-typing-extensions
python-werkzeug))
(native-inputs
- (list python-mock python-pyquery python-pytest)) ;for more easily
skipping tests
+ (list python-mock python-pyquery python-pytest
+ python-retry python-setuptools-scm))
(home-page "https://locust.io/")
(synopsis "Distributed load testing framework")
(description "Locust is a performance testing tool that aims to be easy to
- branch master updated (e45f28f220 -> bf34db9914), guix-commits, 2022/01/19
- 02/09: gnu: python-geventhttpclient: Update to 1.5.3., guix-commits, 2022/01/19
- 03/09: gnu: python-flufl-testing: Explicitly disable tests., guix-commits, 2022/01/19
- 04/09: gnu: Add python-retry., guix-commits, 2022/01/19
- 06/09: gnu: python-pyzmq: Update to 22.3.0., guix-commits, 2022/01/19
- 08/09: gnu: ganeti: Fix test failure., guix-commits, 2022/01/19
- 01/09: gnu: python-flask-cors: Update to 3.0.10., guix-commits, 2022/01/19
- 05/09: gnu: Add python-roundrobin., guix-commits, 2022/01/19
- 07/09: gnu: python-locust: Update to 2.5.1.,
guix-commits <=
- 09/09: gnu: ganeti: Remove input labels., guix-commits, 2022/01/19