[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/299: gnu: python-tox: Update to 4.23.2.
From: |
guix-commits |
Subject: |
25/299: gnu: python-tox: Update to 4.23.2. |
Date: |
Mon, 13 Jan 2025 07:30:02 -0500 (EST) |
rekado pushed a commit to branch python-team
in repository guix.
commit 974f9b2250ebc80791cacee6bb2643826894877a
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
- 229/299: gnu: python-asgi-csrf: Update to 0.11., (continued)
- 229/299: gnu: python-asgi-csrf: Update to 0.11., guix-commits, 2025/01/13
- 236/299: gnu: datasette: Update to 1.0a16., guix-commits, 2025/01/13
- 239/299: gnu: python-ailment: Add missing inputs., guix-commits, 2025/01/13
- 248/299: gnu: python-django-taggit: Update to 6.1.0., guix-commits, 2025/01/13
- 250/299: gnu: Add python-nanobind., guix-commits, 2025/01/13
- 265/299: gnu: python-django-redis: Use pyproject-build-system., guix-commits, 2025/01/13
- 260/299: gnu: python-libensemble: Add missing inputs., guix-commits, 2025/01/13
- 262/299: gnu: python-django-assets: Disable bad tests., guix-commits, 2025/01/13
- 263/299: gnu: python-django-jinja: Update to 2.11.0., guix-commits, 2025/01/13
- 20/299: gnu: Add python-pypitoken., guix-commits, 2025/01/13
- 25/299: gnu: python-tox: Update to 4.23.2.,
guix-commits <=
- 29/299: gnu: python-extension-helpers: Update to 1.2.0., guix-commits, 2025/01/13
- 48/299: gnu: linkchecker: Update to 10.5.0., guix-commits, 2025/01/13
- 55/299: gnu: python-eventlet: Update to 0.38.2., guix-commits, 2025/01/13
- 52/299: gnu: python-pandas-2: Remove X., guix-commits, 2025/01/13
- 56/299: gnu: python-gevent: Propagate greenlet., guix-commits, 2025/01/13
- 67/299: gnu: pyscenic: Update to 0.12.1-1.eaf23eb., guix-commits, 2025/01/13
- 72/299: gnu: Add python-types-simplejson., guix-commits, 2025/01/13
- 76/299: gnu: python-cachecontrol: Update to 0.14.1., guix-commits, 2025/01/13
- 82/299: gnu: python-rdflib-6: Accept newer isodate., guix-commits, 2025/01/13
- 07/299: gnu: python-cachetools: Update to 5.5.0., guix-commits, 2025/01/13