[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
337/361: gnu: python-versioneer: Simplify tests.
From: |
guix-commits |
Subject: |
337/361: gnu: python-versioneer: Simplify tests. |
Date: |
Thu, 21 Nov 2024 06:29:46 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit 7944bd76a8f00252ccdef5ebb97123171754f888
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sat Nov 16 22:44:10 2024 +0000
gnu: python-versioneer: Simplify tests.
* gnu/packages/python-xyz.scm (python-versioneer): Reduce amount of
dependencies for not stable tests.
[arguments]<test-flags>: Disable expensive tests which require
virtual environment setup.
<phases>: Use default 'check phase.
[native-inputs]: Remove git-minimal, python-flake8, python-pycodestyle,
python-pyflakes, and python-pypa-build; add git-minimal/pinned and
python-pytest.
Change-Id: Ida1c7ac401a1bb9a80136b88099019389a5c51cc
---
gnu/packages/python-xyz.scm | 33 ++++++++++++++-------------------
1 file changed, 14 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f749cb2c15..a43efe143d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -33766,27 +33766,22 @@ EDU SDK. This library has the following features:
(build-system pyproject-build-system)
(arguments
(list
+ ;; Minimize test requirements.
+ #:test-flags
+ #~(list "--deselect=test/git/test_git.py::Repo::test_pyproject"
+ "--ignore=test/git/test_invocations.py"
+ "--ignore=test/test_render.py")
#:phases
#~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; Taken from tox.ini.
- (invoke "python" "setup.py" "make_versioneer")
- (invoke "python" "-m" "unittest" "discover" "test")
- (invoke "python" "test/git/test_git.py" "-v")
- ;; Some invocation tests require the network.
- ;;(invoke "python" "test/git/test_invocations.py" "-v")
- (invoke "python" "setup.py" "make_long_version_py_git")
- (invoke "pyflakes" "setup.py" "versioneer.py" "git_version.py")
- (invoke "python" "test/run_pyflakes_src.py")
- (invoke "pyflakes" "test")
- (invoke "flake8" "git_version.py" "versioneer.py")
- (invoke "pycodestyle" "--max-line-length=88"
- "git_version.py" "versioneer.py")))))))
- (native-inputs
- (list git-minimal python-flake8 python-pycodestyle python-pyflakes
- python-pypa-build python-setuptools python-wheel))
+ (add-before 'check 'pre-check
+ (lambda _
+ (invoke "python" "setup.py" "make_versioneer"
+ "make_long_version_py_git"))))))
+ (native-inputs
+ (list git-minimal/pinned
+ python-pytest
+ python-setuptools
+ python-wheel))
(propagated-inputs
(list python-tomli))
(home-page "https://github.com/python-versioneer/python-versioneer")
- 271/361: gnu: python-pytest-virtualenv: Update to 1.8.0., (continued)
- 271/361: gnu: python-pytest-virtualenv: Update to 1.8.0., guix-commits, 2024/11/21
- 275/361: gnu: python-orthopy: Adjust inputs., guix-commits, 2024/11/21
- 280/361: gnu: Remove beets-next., guix-commits, 2024/11/21
- 282/361: gnu: python-mutagen: Update to 1.47.0., guix-commits, 2024/11/21
- 283/361: gnu: python-mediafile: Update to 0.13.0., guix-commits, 2024/11/21
- 290/361: gnu: python-mpv: Adjust inputs., guix-commits, 2024/11/21
- 292/361: gnu: Add python-rich-tables., guix-commits, 2024/11/21
- 309/361: gnu: python-filelock: Update to 3.16.1., guix-commits, 2024/11/21
- 345/361: gnu: python-pandas-2: Update to 2.2.3., guix-commits, 2024/11/21
- 319/361: gnu: python-jedi: Update to 0.19.2., guix-commits, 2024/11/21
- 337/361: gnu: python-versioneer: Simplify tests.,
guix-commits <=
- 340/361: gnu: python-werkzeug: Update to 3.1.3., guix-commits, 2024/11/21
- 322/361: gnu: python-execnet: Update to 2.1.1., guix-commits, 2024/11/21
- 323/361: gnu: python-flaky: Update to 3.8.1., guix-commits, 2024/11/21
- 335/361: gnu: python-numpy: Update to 1.24.4., guix-commits, 2024/11/21
- 338/361: gnu: python-watchdog: Update to 6.0.0., guix-commits, 2024/11/21
- 336/361: gnu: python-isort: Update to 5.13.2., guix-commits, 2024/11/21
- 348/361: gnu: python-itsdangerous: Update to 2.2.0., guix-commits, 2024/11/21
- 361/361: gnu: python-pydantic: Update to 1.10.19., guix-commits, 2024/11/21
- 238/361: gnu: python-parameterized-next: Adjust inputs., guix-commits, 2024/11/21
- 245/361: gnu: nikola: Fix build., guix-commits, 2024/11/21