From patchwork Mon Apr 25 03:56:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 38847 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8DC2B27BBEB; Mon, 25 Apr 2022 05:21:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 372DF27BBE9 for ; Mon, 25 Apr 2022 05:21:15 +0100 (BST) Received: from localhost ([::1]:42854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niqDq-0008SL-B2 for patchwork@mira.cbaines.net; Mon, 25 Apr 2022 00:21:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nipvO-0007y0-U4 for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nipvN-0001g9-Uo for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nipvN-0008Bf-Rm for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55104] [PATCH 062/232] gnu: Add python-pytest-randomly. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Apr 2022 04:02:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55104 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55104@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 55104-submit@debbugs.gnu.org id=B55104.165085931331218 (code B ref 55104); Mon, 25 Apr 2022 04:02:09 +0000 Received: (at 55104) by debbugs.gnu.org; 25 Apr 2022 04:01:53 +0000 Received: from localhost ([127.0.0.1]:60834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nipv6-00087L-Ku for submit@debbugs.gnu.org; Mon, 25 Apr 2022 00:01:53 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:40959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nipto-0007po-HH for 55104@debbugs.gnu.org; Mon, 25 Apr 2022 00:00:32 -0400 Received: by mail-qk1-f177.google.com with SMTP id e128so9967863qkd.7 for <55104@debbugs.gnu.org>; Sun, 24 Apr 2022 21:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j6KUn+OnPG9SariLXTEoSQMHineVILS/GzdxFdJKUFU=; b=FScCnEJmrHdJInU+2TTjtPbiv+e7jcNcGyNpt77H9yKgNjnSQptNr/fXPIBJKxZ4+u raWb5ZM7wiNg0uuxndttwuS8fHKP9Evf2BTDi4bh2Oum9f+UD0uA10LDSGNzu/jnOcNz SZxrrs5H2efLuuBYKTFEiKUidzOcohyNhTZt0SGFFB8hbbI661/cnmjjAscZ/6wcYmHP s2ukAxlfJp6914KUn20dZfPUKhyH8GXyw+d4Qx4Qf5eza27/PNvUM9XaxbWmvTzorpyf CRHL/FmljGS/GJgF+w3/yI6n22D0vhxLEWKudmskt/FQ38Z+AgIqdQFYKXGOoUMgMphq VJMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j6KUn+OnPG9SariLXTEoSQMHineVILS/GzdxFdJKUFU=; b=euybFchHrDfzpMyBNxQUBnTGgDCtAgiDEulp3MvnBjz2iV/q95US1gWz2qOkA2qBR5 ydvSLnJ6bnCjSDCQH+O23QxplZQPZOixI48GM7rzNUGlwedZBzJTybBDc5nVf/fUZJ3f yp24VECeqTBG6b6N62WRFmq6QAjqwz/KKJSbAzafWVydYR3iSGB0zb/EPJVAjJnWchXX P06zi35g7Blrw1l7UTC9JJnfSvQIOlEuYxHxLky0tatv3i/FptkqaaaUK6NNTNAf6JA4 7ZZfwlEOhBE/rtjF23JlqJm7eqdYjUJcBty2BPioWe4mUZC5iPSwkpEClPbio06VgVbU DEgw== X-Gm-Message-State: AOAM532XLm6nB+x53z1DipIUGyEOlDtTF/PcQ3so6n5hHfW9vRArHCPj DHCRbR/q4r9ArQim1c9ctj4u8ZZYJs8cEw== X-Google-Smtp-Source: ABdhPJxTEfyERmNTrBvmdZybRlePswnSgxgn57RUuP618uBRB9zKfIlnx4Y8D1XgyYN+fVtRhl6r5g== X-Received: by 2002:a05:620a:74b:b0:69b:db1d:f91e with SMTP id i11-20020a05620a074b00b0069bdb1df91emr9015427qki.286.1650859226853; Sun, 24 Apr 2022 21:00:26 -0700 (PDT) Received: from localhost.localdomain (dsl-150-232.b2b2c.ca. [66.158.150.232]) by smtp.gmail.com with ESMTPSA id w82-20020a376255000000b0069ee3f0ae63sm4478142qkb.45.2022.04.24.21.00.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 21:00:26 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 24 Apr 2022 23:56:28 -0400 Message-Id: <20220425035918.25683-62-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220425035918.25683-1-maxim.cournoyer@gmail.com> References: <20220425035918.25683-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/check.scm (python-pytest-randomly): New variable. --- gnu/packages/check.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index e3523d77dc..c67a6f2675 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1242,6 +1242,47 @@ (define-public python-pytest-random-order reported in a previous test run.") (license license:expat))) +(define-public python-pytest-randomly + (package + (name "python-pytest-randomly") + (version "3.11.0") + (source (origin + (method git-fetch) ;no tests in pypi archive + (uri (git-reference + (url "https://github.com/pytest-dev/pytest-randomly") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1sjgq49g8f8973vhmzrim79b6wz29a765n99azjk1maimqh7mmik")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; The tests validating ordering fail, as well as as two + ;; others, for unknown reasons (see: + ;; https://github.com/pytest-dev/pytest-randomly/issues/454). + (invoke "pytest" "-vv" "-k" + (string-append + "not reordered " + "and not test_it_runs_before_stepwise " + "and not test_entrypoint_injection")))))))) + (native-inputs (list python-coverage + python-factory-boy + python-faker + python-numpy + python-pytest-xdist)) + (propagated-inputs (list python-importlib-metadata python-pytest)) + (home-page "https://github.com/pytest-dev/pytest-randomly") + (synopsis "Pytest plugin to randomly order tests") + (description "This is a Pytest plugin to randomly order tests and control +Python's @code{random.seed}.") + (license license:expat))) + (define-public python-pytest-runner (package (name "python-pytest-runner")