From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: 57092@debbugs.gnu.org
Cc: ngraves@ngraves.fr
Subject: [bug#57092] [PATCH v3 2/2] gnu: python-tox: Add native-inputs and enable tests.
Date: Sun, 21 Aug 2022 00:33:53 +0200 [thread overview]
Message-ID: <20220820223353.9094-2-ngraves@ngraves.fr> (raw)
In-Reply-To: <20220820223353.9094-1-ngraves@ngraves.fr>
* 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
next prev parent reply other threads:[~2022-08-20 22:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-09 21:27 [bug#57092] repairing tox Nicolas Graves via Guix-patches via
2022-08-09 22:07 ` [bug#57092] [PATCH 1/2] gnu: python-tox: Move from python-xyz.scm to python-check.scm Nicolas Graves via Guix-patches via
2022-08-09 22:07 ` [bug#57092] [PATCH 2/2] gnu: python-tox: Add native-inputs and enable tests Nicolas Graves via Guix-patches via
2022-08-10 8:47 ` Liliana Marie Prikler
2022-08-10 8:45 ` [bug#57092] [PATCH 1/2] gnu: python-tox: Move from python-xyz.scm to python-check.scm Liliana Marie Prikler
2022-08-11 5:48 ` [bug#57092] [PATCH v2 " Nicolas Graves via Guix-patches via
2022-08-11 5:48 ` [bug#57092] [PATCH v2 2/2] gnu: python-tox: Add native-inputs and enable tests Nicolas Graves via Guix-patches via
2022-08-15 9:16 ` [bug#57092] repairing tox Mathieu Othacehe
2022-08-20 22:33 ` [bug#57092] [PATCH v3 1/2] gnu: python-tox: Move from python-xyz.scm to python-check.scm Nicolas Graves via Guix-patches via
2022-08-20 22:33 ` Nicolas Graves via Guix-patches via [this message]
2022-08-20 22:45 ` [bug#57092] [PATCH v3 2/2] gnu: python-tox: Add native-inputs and enable tests Nicolas Graves via Guix-patches via
2022-08-31 21:27 ` [bug#57092] repairing tox Ludovic Courtès
2022-09-01 6:08 ` Liliana Marie Prikler
2022-09-01 8:54 ` Ludovic Courtès
2022-09-01 11:51 ` bug#57092: " Liliana Marie Prikler
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=20220820223353.9094-2-ngraves@ngraves.fr \
--to=guix-patches@gnu.org \
--cc=57092@debbugs.gnu.org \
--cc=ngraves@ngraves.fr \
/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).