[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
311/361: gnu: python-coverage: Update to 7.6.7.
From: |
guix-commits |
Subject: |
311/361: gnu: python-coverage: Update to 7.6.7. |
Date: |
Thu, 21 Nov 2024 06:29:41 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit f6b8faf14e67c93c0298ac47d3955b931c241bd2
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Nov 15 23:10:11 2024 +0000
gnu: python-coverage: Update to 7.6.7.
* gnu/packages/check.scm (python-coverage): Update to 7.6.7.
[build-system]: Swap to pyproject-build-system.
[arguments]<tests>: Enable them. <test-flags>: Skip some failing
tests. <phases>: Add patch-pyproject, fix-conftest.
[native-inputs]: Add python-pytest, python-pytest-xdist, python-flaky,
python-setuptools, and python-wheel.
Change-Id: Ib69fbec45876f5f13e0e925c7768cef8fd6eb52c
---
gnu/packages/check.scm | 47 ++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 42 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 8a2cb2a14a..082341342b 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2411,18 +2411,55 @@ have failed since the last commit or what tests are
currently failing.")))
(define-public python-coverage
(package
(name "python-coverage")
- (version "6.4.3")
+ (version "7.6.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "coverage" version))
(sha256
(base32
- "157vndwrzyv9ypn2w3b6g8gv7vw07v994hq8nxasdb75k3ry2apc"))))
- (build-system python-build-system)
+ "094x8fsqfp7blrz3wh823p5vvzdrri5mw17z32hwjh8lwhk4i7fp"))))
+ (build-system pyproject-build-system)
(arguments
- ;; FIXME: 95 tests failed, 539 passed, 6 skipped, 2 errors.
- '(#:tests? #f))
+ (list
+ #:test-flags
+ #~(list "--numprocesses=auto"
+ ;; XXX: Tests fail for multiple assertion reasons or missing
+ ;; fake modules.
+ "--ignore=tests/test_venv.py"
+ "--ignore=tests/test_report.py"
+ "--ignore=tests/test_plugins.py"
+ "--ignore=tests/test_debug.py"
+ "--ignore=tests/test_xml.py"
+ "--ignore=tests/test_python.py"
+ "--ignore=tests/test_concurrency.py"
+ "--ignore=tests/test_process.py"
+
"--deselect=tests/test_annotate.py::AnnotationGoldTest::test_multi"
+
"--deselect=tests/test_cmdline.py::CmdLineStdoutTest::test_version"
+
"--deselect=tests/test_api.py::RelativePathTest::test_files_up_one_level"
+
"--deselect=tests/test_filereporter.py::FileReporterTest::test_zipfile"
+ "--deselect=tests/test_oddball.py::DoctestTest::test_doctest")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-pyproject
+ (lambda _
+ (substitute* "pyproject.toml"
+ ;; Just run pytest with no frills.
+ (("addopts.*") ""))))
+ (add-before 'check 'fix-conftest
+ ;; It tries to scan the whole sys.path and "find some place to
+ ;; write to".
+ (lambda _
+ (with-output-to-file (string-append (getcwd) "/test.pth")
+ (lambda _ (display "")))
+ (substitute* "tests/conftest.py"
+ (("map(Path, sys.path)") (format #f "[~s]" (getcwd)))))))))
+ (native-inputs
+ (list python-pytest
+ python-pytest-xdist ; hardcoded in tests/conftests.py
+ python-flaky
+ python-setuptools
+ python-wheel))
(propagated-inputs
(list python-tomli))
(home-page "https://coverage.readthedocs.io")
- 287/361: gnu: Add python-pypa-installer., (continued)
- 287/361: gnu: Add python-pypa-installer., guix-commits, 2024/11/21
- 289/361: gnu: Remove python-poetry-core-1.0., guix-commits, 2024/11/21
- 288/361: gnu: poetry: Fix build., guix-commits, 2024/11/21
- 291/361: gnu: Add python-rgbxy., guix-commits, 2024/11/21
- 302/361: gnu: Remove python-pluggy-next., guix-commits, 2024/11/21
- 304/361: gnu: python-pexpect: Improve package style., guix-commits, 2024/11/21
- 312/361: gnu: python-pytest-cov: Update to 6.0.0., guix-commits, 2024/11/21
- 299/361: gnu: python-pytest: Update to 8.3.3., guix-commits, 2024/11/21
- 308/361: gnu: python-pytest-mock: Update to 3.14.0., guix-commits, 2024/11/21
- 313/361: gnu: python-pytest-xprocess: Update to 1.0.2., guix-commits, 2024/11/21
- 311/361: gnu: python-coverage: Update to 7.6.7.,
guix-commits <=
- 315/361: gnu: python-cffi: Update to 1.17.1., guix-commits, 2024/11/21
- 314/361: gnu: python-openpyxl: Update to 3.1.5., guix-commits, 2024/11/21
- 331/361: gnu: python-attrs: Update to 24.2.0., guix-commits, 2024/11/21
- 347/361: gnu: python-blinker: Update to 1.9.0., guix-commits, 2024/11/21
- 342/361: gnu: python-matplotlib: Disable more failing tests., guix-commits, 2024/11/21
- 346/361: gnu: python-cloudpickle: Update to 3.1.0., guix-commits, 2024/11/21
- 350/361: gnu: python-graphviz: Update to 0.20.3., guix-commits, 2024/11/21
- 352/361: gnu: python-apispec: Update to 6.7.1., guix-commits, 2024/11/21
- 353/361: gnu: python-flask-restful: Update to 0.3.10., guix-commits, 2024/11/21
- 355/361: gnu: Remove python-flask-jwt., guix-commits, 2024/11/21