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 cM2fGLFhAWP0NQAAbAwnHQ (envelope-from ) for ; Sun, 21 Aug 2022 00:35:29 +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 sIKHGLFhAWMVcQAA9RJhRA (envelope-from ) for ; Sun, 21 Aug 2022 00:35:29 +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 2048C1FAE for ; Sun, 21 Aug 2022 00:35:29 +0200 (CEST) Received: from localhost ([::1]:59996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPX3w-0004bt-6n for larch@yhetil.org; Sat, 20 Aug 2022 18:35:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPX3X-0004Pz-Mr for guix-patches@gnu.org; Sat, 20 Aug 2022 18:35:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPX3X-0008N0-1M for guix-patches@gnu.org; Sat, 20 Aug 2022 18:35:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oPX3W-0004tO-T9 for guix-patches@gnu.org; Sat, 20 Aug 2022 18:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57092] [PATCH v3 2/2] gnu: python-tox: Add native-inputs and enable tests. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Aug 2022 22:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57092 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 57092@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 57092-submit@debbugs.gnu.org id=B57092.166103486218746 (code B ref 57092); Sat, 20 Aug 2022 22:35:02 +0000 Received: (at 57092) by debbugs.gnu.org; 20 Aug 2022 22:34:22 +0000 Received: from localhost ([127.0.0.1]:33578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPX2r-0004sH-Pz for submit@debbugs.gnu.org; Sat, 20 Aug 2022 18:34:22 -0400 Received: from 14.mo561.mail-out.ovh.net ([188.165.43.98]:54005) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPX2m-0004rr-0U for 57092@debbugs.gnu.org; Sat, 20 Aug 2022 18:34:17 -0400 Received: from player157.ha.ovh.net (unknown [10.110.115.188]) by mo561.mail-out.ovh.net (Postfix) with ESMTP id 200D3230F0 for <57092@debbugs.gnu.org>; Sat, 20 Aug 2022 22:34:13 +0000 (UTC) Received: from ngraves.fr (met42-h01-213-44-161-47.dsl.sta.abo.bbox.fr [213.44.161.47]) (Authenticated sender: ngraves@ngraves.fr) by player157.ha.ovh.net (Postfix) with ESMTPSA id 44D282DB8A078; Sat, 20 Aug 2022 22:34:11 +0000 (UTC) X-OVh-ClientIp: 213.44.161.47 Date: Sun, 21 Aug 2022 00:33:53 +0200 Message-Id: <20220820223353.9094-2-ngraves@ngraves.fr> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220820223353.9094-1-ngraves@ngraves.fr> References: <20220820223353.9094-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 7018015594785596130 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeigedguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepleevueeghffgtdeiueegffduvefhleehtedtffehgeetudfhgfdvledvteelkeegnecuffhomhgrihhnpehrvggrughthhgvughotghsrdhiohenucfkpheptddrtddrtddrtddpvddufedrgeegrdduiedurdegjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrudehjedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeehjedtledvseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehiedu 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" Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via 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=1661034929; h=from:from:sender:sender:reply-to: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; bh=78i9M7BUAePALFLACeneLdVg/hHneAvVylQ7c41cr50=; b=fUj+X1WjAuZH2Ks3+/Nl9NiSvuvQpRqtUjQtzLysf06xm1qM6NbY91ETOkvltrlryE5ncS XNdIDc8GOyRuAPgCZl9KqwLYWxzj/00bpMpBT6GKOhBV+JHHGw6OrEF5iJ2LoLSmRV8+d3 02IQ+EIQenSIg/NLL/eUhncdGtuzK2zqXodE4ZinIOVnUWpgeVpWVEhaD0g8CBd0YOQFMf l7IRs7A8Vi06p3LAl5uV2VH9lZyy89Q0Dgh0JjBGUE9UcTUevrJSdUkGz1IdZWXQ+voME1 con+iSGisJT8GdVxznKGanW4YRAUXjyzpvSMG9G5q9izLYe5MSNygLO5hoce7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661034929; a=rsa-sha256; cv=none; b=bKwhZh+QHenUXeGCzW5xdeEWyOi9M0lvvENIHmeP52XSFoPMxe3FHsvNusy7lc7CjxBz5y eJAEL+dKAj8Gztiia/ZxgXTrqDSMUh7MBPPvxKcpCgI2Db+IEaMvVNFTmV+/h6BuuRuMtS zC+E5dMucv+lbyAsPvsglUWOxQRyyiYSiOA8ltSV3XeeGUP9GucbPeSIuyCWAHeqxY8/3Q aBECyfK1G10vWhx9YnK7yffAkS7aXlQpulUo67o1+iniRtM22ZJY23ec32gxWbl71yf5JI K4yOSqfJih3YHUcaTCIMVqhr9dNdvYrNGYsuM4iZbCizBzdXWgxtm7Tp21Y2JQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: -1.64 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 2048C1FAE X-Spam-Score: -1.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: jkpfWsW5A26q * gnu/packages/python-check.scm (python-tox): Add native-inputs and enable tests. --- gnu/packages/python-check.scm | 45 ++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 5d6cf49c50..a5eb06f249 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -2438,9 +2438,40 @@ (define-public python-tox "0nk0nyzhzamcrvn0qqzzy54isxxqwdi28swml7a2ym78c3f9sqpb")))) (build-system python-build-system) (arguments - ;; FIXME: Tests require pytest-timeout, which itself requires - ;; pytest>=2.8.0 for installation. - '(#:tests? #f)) + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (invoke + "pytest" "-vv" + "-k" + (string-append + "not test_invocation_error " + "and not test_create_KeyboadInterrupt " + "and not test_exit_code " + "and not test_tox_get_python_executable " + "and not test_find_alias_on_path " + "and not test_get_executable " + "and not test_get_executable_no_exist " + "and not test_get_sitepackagesdir_error " + "and not test_spinner_stdout_not_unicode " + "and not test_provision_non_canonical_dep " + "and not test_package_setuptools " + "and not test_package_poetry " + "and not test_parallel_interrupt " + "and not test_provision_missing " + "and not test_provision_from_pyvenv " + "and not test_provision_interrupt_child " + "and not test_create " + "and not test_run_custom_install_command " + "and not test_toxuone_env " + "and not test_different_config_cwd " + "and not test_test_usedevelop " + "and not test_build_backend_without_submodule " + "and not test_parallel " + "and not test_parallel_live " + "and not test_tox_env_var_flags_inserted_isolated ")))))))) (propagated-inputs (list python-filelock python-packaging @@ -2450,9 +2481,11 @@ (define-public python-tox python-toml python-virtualenv)) (native-inputs - (list ; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout) - python-pytest ; >= 2.3.5 - python-setuptools-scm)) + (list python-flaky + python-pathlib2 + python-pytest-timeout + python-pytest + python-setuptools-scm)) (home-page "https://tox.readthedocs.io") (synopsis "Virtualenv-based automation of test activities") (description "Tox is a generic virtualenv management and test command line -- 2.37.2