[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/187: gnu: python-tox: Update to 4.23.2.
From: |
guix-commits |
Subject: |
25/187: gnu: python-tox: Update to 4.23.2. |
Date: |
Wed, 8 Jan 2025 10:15:37 -0500 (EST) |
rekado pushed a commit to branch python-team
in repository guix.
commit b4dd9e61faa2d217e4ed492c69bae2588ff20eff
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Dec 16 21:06:14 2024 +0100
gnu: python-tox: Update to 4.23.2.
* gnu/packages/python-check.scm (python-tox): Update to 4.23.2.
[build-system]: Use pyproject-build-system.
[arguments]: Update list of disabled tests; remove custom 'check phase; add
phase 'virtualenv-compatibility.
[propagated-inputs]: Add python-typing-extensions; remove python-py and
python-six.
[native-inputs]: Add python-devpi-process, python-time-machine, and
python-wheel; remove python-distlib.
Change-Id: I7390ad0f31bf6536227081e55790b6592b3e7c81
---
gnu/packages/python-check.scm | 65 ++++++++++++++++++++++++++++++++++++++-----
1 file changed, 58 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index a6ce5e2523..9e8ef5d842 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -2962,16 +2962,65 @@ Python file for configuration.")
(define-public python-tox
(package
(name "python-tox")
- (version "4.8.0")
+ (version "4.23.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tox" version))
(sha256
(base32
- "0yq3d2wif88d2iih8c2dwjx7rz8axkc7b6gskl5z3k0jbd1wznia"))))
+ "0b2a5wrjwryjzg58v1mwzx3wn7pr2wwk7z2cwy16xpsmwl05w1w6"))))
(build-system pyproject-build-system)
- (arguments (list #:tests? #f)) ;require python-devpi-process
+ (arguments
+ (list
+ #:test-flags
+ '(list "-k"
+ (string-join
+ (map (lambda (test)
+ (string-append "not test_" test))
+ '( ;; These freeze the test suite
+ "parallel"
+ "parallel_live"
+
+ ;; These fail with: Directory cannot be installed in
+ ;; editable mode
+ "skip_missing_interpreters"
+ "skip_missing_interpreters_specified_env"
+ ;; assert 0 == -1
+ "config_skip_missing_interpreters"
+ ;; KeyError: 'env'
+ "legacy_cli_flags"
+ ;; AssertionError: should be None, got code: 0
+ "missing_interpreter_skip_on"
+ "missing_interpreter_skip_off"
+ ;; Unexplainable diff
+ "skip_develop_mode"
+ "show_config_exception"
+ "python_generate_hash_seed"
+ ;; XXX Tries to call python-wrapper-3.10.7/bin/tox
+ "call_as_exe"
+ "usedevelop_with_nonexistent_basepython"))
+ " and ")
+ ;; XXX Our version of virtualenv is too old.
+ "--ignore-glob=tests/tox_env/python/virtual_env/*")
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'virtualenv-compatibility
+ (lambda _
+ (setenv "HOME" "/tmp")
+ ;; XXX: Our version of virtualenv does not like this extra
+ ;; keyword argument.
+ (substitute* "src/tox/tox_env/python/virtual_env/api.py"
+ (("session_via_cli\\(env_dir, options=None,
setup_logging=False, env=env\\)")
+ "session_via_cli(env_dir, options=None, setup_logging=False)"))
+ ;; XXX: This is a real problem, but we cannot fix it without
+ ;; affecting thousands of packages.
+ (substitute* "pyproject.toml"
+ (("virtualenv>=20.26.6") "virtualenv>=20.3.0")
+ (("typing-extensions>=4.12.2") "typing-extensions>=4.10.0")
+ (("platformdirs>=4.3.6") "platformdirs>=4.2.0")
+ (("colorama>=0.4.6") "colorama>=0.4.4")
+ (("chardet>=5.2") "chardet>=5.1.0")))))))
(propagated-inputs
(list python-cachetools
python-chardet
@@ -2982,18 +3031,20 @@ Python file for configuration.")
python-pluggy
python-pyproject-api
python-tomli
+ python-typing-extensions
python-virtualenv))
(native-inputs
- (list python-distlib
- ;;python-devpi-process ;FIXME: package me
+ (list python-devpi-process
python-flaky
- python-hatchling
python-hatch-vcs
+ python-hatchling
python-psutil
python-pytest
python-pytest-mock
python-pytest-xdist
- python-re-assert))
+ python-re-assert
+ python-time-machine
+ python-wheel))
(home-page "https://tox.readthedocs.io")
(synopsis "Virtualenv-based automation of test activities")
(description "Tox is a generic virtualenv management and test command line
- 96/187: gnu: python-openapi-schema-validator: Relax requirements., (continued)
- 96/187: gnu: python-openapi-schema-validator: Relax requirements., guix-commits, 2025/01/08
- 126/187: gnu: Add python-joserfc., guix-commits, 2025/01/08
- 117/187: gnu: python-nr-date: Remove old version of dataclasses., guix-commits, 2025/01/08
- 149/187: gnu: rust-codspeed-2: Update to 2.7.2., guix-commits, 2025/01/08
- 11/187: gnu: Add python-time-machine., guix-commits, 2025/01/08
- 13/187: gnu: python-scikit-build-core: Update to 0.10.7., guix-commits, 2025/01/08
- 05/187: gnu: python-pyramid: Update to 2.0.2., guix-commits, 2025/01/08
- 21/187: gnu: Add python-devpi-common., guix-commits, 2025/01/08
- 17/187: gnu: Add python-legacy-cgi., guix-commits, 2025/01/08
- 24/187: gnu: Add python-devpi-process., guix-commits, 2025/01/08
- 25/187: gnu: python-tox: Update to 4.23.2.,
guix-commits <=
- 30/187: gnu: python-colorama: Update to 0.4.6., guix-commits, 2025/01/08
- 31/187: gnu: python-chardet: Update to 5.2.0., guix-commits, 2025/01/08
- 36/187: gnu: python-waitress: Update to 3.0.2., guix-commits, 2025/01/08
- 38/187: gnu: python-httpx: Update to 0.28.1., guix-commits, 2025/01/08
- 35/187: gnu: python-devtools: Simplify., guix-commits, 2025/01/08
- 41/187: gnu: python-tox: Simplify., guix-commits, 2025/01/08
- 43/187: gnu: python-starlette: Update to 0.42.0., guix-commits, 2025/01/08
- 47/187: gnu: python-email-validator: Update to 2.2.0., guix-commits, 2025/01/08
- 48/187: gnu: linkchecker: Update to 10.5.0., guix-commits, 2025/01/08
- 50/187: gnu: python-beniget: Update to 0.4.2.post1., guix-commits, 2025/01/08