From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: 48645@debbugs.gnu.org
Subject: [bug#48645] [PATCH 2/2] gnu: Add python-pytest-mp.
Date: Tue, 25 May 2021 10:36:59 +0200 [thread overview]
Message-ID: <7a6f8d0a36821597ebc833cd6ce2fdfcf6d309d7.1621931753.git.h.goebel@crazy-compilers.com> (raw)
In-Reply-To: <d470496b5ee8c7d5bbc741a881f7639f6dd65374.1621931753.git.h.goebel@crazy-compilers.com>
* gnu/packages/python-check.scm (python-pytest-mp): New variable.
---
gnu/packages/python-check.scm | 39 ++++++++++++++++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index f0b454eec9..19e87d3ab7 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2019, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
-;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
+;;; Copyright © 2019, 2021 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
@@ -1463,3 +1463,40 @@ allows one to create a set of tests using @emph{pairwise combinations} method,
reducing a number of combinations of variables into a lesser set that covers
most situations.")
(license license:expat)))
+
+(define-public python-pytest-mp
+ (package
+ (name "python-pytest-mp")
+ (version "0.0.4p2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ansible/pytest-mp")
+ (commit "49a8ff2ca9ef62d8c86854ab31d6b5d5d6cf3f28")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "01v98b6n3yvkfmxf2v38xk5ijqlk6ika0yljwkhl5bh6qhq23498"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-psutil" ,python-psutil)))
+ (arguments
+ ;; tests require setuptools-markdown, which is deprecated and not in guix
+ '(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'remove-useless-requirements
+ (lambda _
+ (substitute* "setup.py"
+ ((" setup_requires=") " #")))))))
+ (home-page "https://github.com/ansible/pytest-mp")
+ (synopsis "Multiprocess and Segregate Tests")
+ (description "pytest-mp is a minimalist approach to distributing and
+segregating pytest tests across processes using python's multiprocessing
+library and is heavily inspired by pytest-concurrent and pytest-xdist. As a
+very early beta, it doesn't pledge or intend to support the majority of
+platforms or use cases. Design is based on supporting slow, io-bound testing
+with often tedious system under test configuration that can benefit from
+running several tests at one time.")
+ (license license:expat)))
--
2.30.2
next prev parent reply other threads:[~2021-05-25 8:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-25 8:36 [bug#48644] [PATCH 1/2] gnu: Add python-asn1tools Hartmut Goebel
2021-05-25 8:36 ` Hartmut Goebel [this message]
2021-06-05 20:33 ` [bug#48645] [PATCH 2/2] gnu: Add python-pytest-mp Ludovic Courtès
2021-06-06 15:54 ` Hartmut Goebel
2021-06-06 15:59 ` bug#48645: " Hartmut Goebel
2021-05-31 21:09 ` [bug#48644] [PATCH 1/2] gnu: Add python-asn1tools Xinglu Chen
2021-06-05 20:29 ` Ludovic Courtès
2021-07-07 10:35 ` bug#48644: (no subject) Hartmut Goebel
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7a6f8d0a36821597ebc833cd6ce2fdfcf6d309d7.1621931753.git.h.goebel@crazy-compilers.com \
--to=h.goebel@crazy-compilers.com \
--cc=48645@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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).