From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cI8lNbwhZmLISwAAbAwnHQ (envelope-from ) for ; Mon, 25 Apr 2022 06:21:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WL0eNbwhZmLeMgEA9RJhRA (envelope-from ) for ; Mon, 25 Apr 2022 06:21:16 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6EAAF29ED5 for ; Mon, 25 Apr 2022 06:21:16 +0200 (CEST) Received: from localhost ([::1]:42854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niqDr-0008SL-K8 for larch@yhetil.org; Mon, 25 Apr 2022 00:21:15 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650860476; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=j6KUn+OnPG9SariLXTEoSQMHineVILS/GzdxFdJKUFU=; b=FAUXqhUXA9uj7FQBuE160J/RxKAji6HehnKS58uxZx7MnlTWYBB5y2EJd9tr1O/B74njuJ +G4zfEtMyr8KHJ7NKb2QSfId961btnjXnZa1o82D9LiRLMc9FuDl6zZQDCubBfTLZfjqgI 3v3L6A0Crzv47zcDRWKWd9aWn4Eyb1SI1mG58w/qWMS8iFXSrtsT0ODPWgZdYpO+N1Am9u mgUneR1RZbTuf0mqbxsztk4mT3y65tLHygoiJe8m8MZ3JCRmS9QCQjsGw2ibh3LLFwGf+E agYx+gOK3ODqxEW7+3ujlXS17QbUokGHyNEKIDaAOfhwLGj+ALu4nZMVg83NYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650860476; a=rsa-sha256; cv=none; b=DrO4vI6oiZh8kerdUlZK1N6kD2Zi3hxt9M01mxiWjLY4OssxybhIL/T2jkwFbtgoTy0yqN iFAhF3kKOfhoCcKWmOt66SHO0lemcPL4QNCdqaD5rBAj2kHFuIYHVWSIFzQ10/XieEimyu zoj/JuBXEhJFN9eHafQZi99i28CemwJo7jaeLpHuYxagwH6JDiANe7EAKk26M5w+JtQ/EX aA+XumPK2/2qV4BNmCAnWla3bmU+5pBWjuAwHDly7GXqM8zTGHCJqczv4KB2tit+bliS9l Ysii/N4+47ScAHAP/IdAYfbY9Xl6RyPa/NykZlLNiF6ZoTv4JmSSXDNl/+2DTw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FScCnEJm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FScCnEJm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6EAAF29ED5 X-Spam-Score: 7.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: inp9ccTrf3qb * 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") -- 2.34.0