mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 20:19:18 -05:00
gnu: python-tox: Build with tests.
* gnu/packages/python-check.scm (python-tox)[arguments]: Convert to list of G-Expressions. Drop #:tests?. Add #:phases. [native-inputs]: Add python-flaky, python-pathlib2, python-pytest-freezegun, and python-pytest-timeout. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
parent
3bf5a19609
commit
58974e7b19
1 changed files with 41 additions and 5 deletions
|
@ -2300,9 +2300,42 @@ (define-public python-tox
|
||||||
"0nk0nyzhzamcrvn0qqzzy54isxxqwdi28swml7a2ym78c3f9sqpb"))))
|
"0nk0nyzhzamcrvn0qqzzy54isxxqwdi28swml7a2ym78c3f9sqpb"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
;; FIXME: Tests require pytest-timeout, which itself requires
|
(list
|
||||||
;; pytest>=2.8.0 for installation.
|
#:phases
|
||||||
'(#:tests? #f))
|
#~(modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "pytest" "-vv" "-k"
|
||||||
|
(string-join
|
||||||
|
(map (lambda (test)
|
||||||
|
(string-append "not test_" test))
|
||||||
|
'("invocation_error"
|
||||||
|
"create_KeyboadInterrupt"
|
||||||
|
"exit_code"
|
||||||
|
"tox_get_python_executable"
|
||||||
|
"find_alias_on_path"
|
||||||
|
"get_executable"
|
||||||
|
"get_executable_no_exist"
|
||||||
|
"get_sitepackagesdir_error"
|
||||||
|
"spinner_stdout_not_unicode"
|
||||||
|
"provision_non_canonical_dep"
|
||||||
|
"package_setuptools"
|
||||||
|
"package_poetry"
|
||||||
|
"parallel_interrupt"
|
||||||
|
"provision_missing"
|
||||||
|
"provision_from_pyvenv"
|
||||||
|
"provision_interrupt_child"
|
||||||
|
"create"
|
||||||
|
"run_custom_install_command"
|
||||||
|
"toxuone_env"
|
||||||
|
"different_config_cwd"
|
||||||
|
"test_usedevelop"
|
||||||
|
"build_backend_without_submodule"
|
||||||
|
"parallel"
|
||||||
|
"parallel_live"
|
||||||
|
"tox_env_var_flags_inserted_isolated"))
|
||||||
|
" and "))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-filelock
|
(list python-filelock
|
||||||
python-packaging
|
python-packaging
|
||||||
|
@ -2312,8 +2345,11 @@ (define-public python-tox
|
||||||
python-toml
|
python-toml
|
||||||
python-virtualenv))
|
python-virtualenv))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list ; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout)
|
(list python-flaky
|
||||||
python-pytest ; >= 2.3.5
|
python-pathlib2
|
||||||
|
python-pytest ; >= 2.3.5
|
||||||
|
python-pytest-freezegun
|
||||||
|
python-pytest-timeout
|
||||||
python-setuptools-scm))
|
python-setuptools-scm))
|
||||||
(home-page "https://tox.readthedocs.io")
|
(home-page "https://tox.readthedocs.io")
|
||||||
(synopsis "Virtualenv-based automation of test activities")
|
(synopsis "Virtualenv-based automation of test activities")
|
||||||
|
|
Loading…
Reference in a new issue