From patchwork Sat Aug 20 22:33:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 41788 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 C46ED27BBEA; Sat, 20 Aug 2022 23:35:22 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED 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 3803227BBE9 for ; Sat, 20 Aug 2022 23:35:22 +0100 (BST) Received: from localhost ([::1]:39744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPX3p-0004QT-CW for patchwork@mira.cbaines.net; Sat, 20 Aug 2022 18:35:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPX3X-0004Py-MR for guix-patches@gnu.org; Sat, 20 Aug 2022 18:35:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPX3W-0008HE-Oa 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-0004tH-Br for guix-patches@gnu.org; Sat, 20 Aug 2022 18:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57092] [PATCH v3 1/2] gnu: python-tox: Move from python-xyz.scm to python-check.scm. References: <877d3hglaf.fsf@ngraves.fr> In-Reply-To: <877d3hglaf.fsf@ngraves.fr> 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.166103485718733 (code B ref 57092); Sat, 20 Aug 2022 22:35:02 +0000 Received: (at 57092) by debbugs.gnu.org; 20 Aug 2022 22:34:17 +0000 Received: from localhost ([127.0.0.1]:33576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPX2n-0004rz-2t for submit@debbugs.gnu.org; Sat, 20 Aug 2022 18:34:17 -0400 Received: from 18.mo582.mail-out.ovh.net ([46.105.73.110]:42775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPX2j-0004rm-5h for 57092@debbugs.gnu.org; Sat, 20 Aug 2022 18:34:15 -0400 Received: from player786.ha.ovh.net (unknown [10.110.171.54]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id 1383322D46 for <57092@debbugs.gnu.org>; Sat, 20 Aug 2022 22:34:10 +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 player786.ha.ovh.net (Postfix) with ESMTPSA id 285A62D9C4177; Sat, 20 Aug 2022 22:34:09 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-110S00475ad2a3a-04a6-4164-81b0-34756bb1a947, C8CBABBE99A1CFCA32B8479B4E532621BE5A0254) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 213.44.161.47 Date: Sun, 21 Aug 2022 00:33:52 +0200 Message-Id: <20220820223353.9094-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Ovh-Tracer-Id: 7017171172641661666 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeigedguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepteeiteeiheeuieejffekheevfefhleeiudetvdehudeukeevhedugfeivdehieevnecuffhomhgrihhnpehrvggrughthhgvughotghsrdhiohenucfkpheptddrtddrtddrtddpvddufedrgeegrdduiedurdegjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeekiedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeehjedtledvseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkedv 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" Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves X-getmail-retrieved-from-mailbox: Patches * (python-tox): Move from gnu/packages/python-xyz.scm to gnu/packages/python-check.scm. --- gnu/packages/python-check.scm | 37 +++++++++++++++++++++++++++++++++++ gnu/packages/python-xyz.scm | 37 ----------------------------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 20ab26facf..5d6cf49c50 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -2424,3 +2424,40 @@ (define-public python-pycotap attachments). @end itemize") (license license:expat))) + +(define-public python-tox + (package + (name "python-tox") + (version "3.20.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "tox" version)) + (sha256 + (base32 + "0nk0nyzhzamcrvn0qqzzy54isxxqwdi28swml7a2ym78c3f9sqpb")))) + (build-system python-build-system) + (arguments + ;; FIXME: Tests require pytest-timeout, which itself requires + ;; pytest>=2.8.0 for installation. + '(#:tests? #f)) + (propagated-inputs + (list python-filelock + python-packaging + python-pluggy + python-py + python-six + python-toml + python-virtualenv)) + (native-inputs + (list ; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout) + python-pytest ; >= 2.3.5 + 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 +tool. It can be used to check that a package installs correctly with +different Python versions and interpreters, or run tests in each type of +supported environment, or act as a frontend to continuous integration +servers.") + (license license:expat))) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f6b986d4e8..b049cded13 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -14739,43 +14739,6 @@ (define-public python-deprecation that deprecated code is eventually removed.") (license license:asl2.0))) -(define-public python-tox - (package - (name "python-tox") - (version "3.20.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "tox" version)) - (sha256 - (base32 - "0nk0nyzhzamcrvn0qqzzy54isxxqwdi28swml7a2ym78c3f9sqpb")))) - (build-system python-build-system) - (arguments - ;; FIXME: Tests require pytest-timeout, which itself requires - ;; pytest>=2.8.0 for installation. - '(#:tests? #f)) - (propagated-inputs - (list python-filelock - python-packaging - python-pluggy - python-py - python-six - python-toml - python-virtualenv)) - (native-inputs - (list ; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout) - python-pytest ; >= 2.3.5 - 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 -tool. It can be used to check that a package installs correctly with -different Python versions and interpreters, or run tests in each type of -supported environment, or act as a frontend to continuous integration -servers.") - (license license:expat))) - (define-public python-jmespath (package (name "python-jmespath") From patchwork Sat Aug 20 22:33:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 41789 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 CDC5F27BBEA; Sat, 20 Aug 2022 23:35:28 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED 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 4F7C227BBE9 for ; Sat, 20 Aug 2022 23:35:28 +0100 (BST) Received: from localhost ([::1]:59996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPX3v-0004bt-Gf for patchwork@mira.cbaines.net; Sat, 20 Aug 2022 18:35:27 -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) Authentication-Results: garm.ovh; auth=pass (GARM-97G00296814493-bba7-4f6a-a1dd-53cdebec5801, C8CBABBE99A1CFCA32B8479B4E532621BE5A0254) smtp.auth=ngraves@ngraves.fr 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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves X-getmail-retrieved-from-mailbox: Patches * 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