[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
205/377: gnu: python-pytest-forked: Update to 1.3.0 and run test suite.
From: |
guix-commits |
Subject: |
205/377: gnu: python-pytest-forked: Update to 1.3.0 and run test suite. |
Date: |
Thu, 2 Sep 2021 17:55:33 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 0a2c8b10fc74606ec41c7b4d8d9b11bb91ba86ee
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Aug 25 15:36:58 2021 -0400
gnu: python-pytest-forked: Update to 1.3.0 and run test suite.
* gnu/packages/check.scm (python-pytest-forked)[origin]: Use git.
[phases]{disable-setuptools-scm}: New phase.
{check}: Override phase.
[propagated-inputs]: Remove field.
[native-inputs]: Remove ??? and add python-pytest-bootstrap.
[home-page]: Fix indentation.
[synopsis]: Update.
[description]: Expound.
---
gnu/packages/check.scm | 47 +++++++++++++++++++++++++++++++++--------------
1 file changed, 33 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 86d468d..b384b82 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1378,26 +1378,45 @@ timeout has been exceeded.")
(define-public python-pytest-forked
(package
(name "python-pytest-forked")
- (version "1.1.3")
+ (version "1.3.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pytest-forked" version))
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/pytest-dev/pytest-forked")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "000i4q7my2fq4l49n8idx2c812dql97qv6qpm2vhrrn9v6g6j18q"))))
+ "1aip4kx50ynvykl7kq2mlbsi82vx701dvb8mm64lhp69bbv105rc"))))
(build-system python-build-system)
- (propagated-inputs
- `(("python-pytest" ,python-pytest)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-setuptools-scm
+ (lambda _
+ (substitute* "setup.py"
+ (("use_scm_version=True")
+ (format #f "version=~s" ,version))
+ (("setup_requires=\\['setuptools_scm'\\],.*")
+ ""))))
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-vv")))))))
(native-inputs
- `(("python-setuptools-scm" ,python-setuptools-scm)))
- (home-page
- "https://github.com/pytest-dev/pytest-forked")
- (synopsis
- "Run tests in isolated forked subprocesses")
- (description
- "Pytest plugin which will run each test in a subprocess and will report if
-a test crashed the process.")
+ ;; XXX: The bootstrap variant of Pytest is used to ensure the
+ ;; 'hypothesis' plugin is not in the environment (due to
+ ;; <http://issues.guix.gnu.org/25235>), which would cause the test suite
+ ;; to fail (see: https://github.com/pytest-dev/pytest-forked/issues/54).
+ `(("python-pytest" ,python-pytest-bootstrap)))
+ (home-page "https://github.com/pytest-dev/pytest-forked")
+ (synopsis "Pytest plugin to run tests in isolated forked subprocesses")
+ (description "This package provides a Pytest plugin which enables running
+each test in a subprocess and will report if a test crashed the process. It
+can be useful to isolate tests against undesirable global environment
+side-effects (such as setting environment variables).")
(license license:expat)))
(define-public python-scripttest
- 183/377: gnu: ocl-icd: Replace with opencl-icd-loader., (continued)
- 183/377: gnu: ocl-icd: Replace with opencl-icd-loader., guix-commits, 2021/09/02
- 184/377: gnu: Add clpeak., guix-commits, 2021/09/02
- 188/377: gnu: mame: Update to 0.235., guix-commits, 2021/09/02
- 190/377: images: pinebook-pro: Fix the agetty baud rate., guix-commits, 2021/09/02
- 196/377: gnu: Add python-resolvelib., guix-commits, 2021/09/02
- 197/377: gnu: Add python-resolvelib-0.5., guix-commits, 2021/09/02
- 193/377: gnu: bootloader: Support multiple targets., guix-commits, 2021/09/02
- 199/377: gnu: Add python-pyspnego., guix-commits, 2021/09/02
- 200/377: gnu: python-pytest-6: Update to 6.2.4 and propagate iniconfig., guix-commits, 2021/09/02
- 202/377: gnu: python-rope: Update to 0.19.0 and remove python2-rope., guix-commits, 2021/09/02
- 205/377: gnu: python-pytest-forked: Update to 1.3.0 and run test suite.,
guix-commits <=
- 204/377: gnu: python-py-next: Update to 1.10.0., guix-commits, 2021/09/02
- 211/377: gnu: ansible: Update to 4.4.0., guix-commits, 2021/09/02
- 209/377: gnu: Add python-pytest-xdist-next., guix-commits, 2021/09/02
- 207/377: gnu: python-pytest-mock: Update to 3.6.1 and run test suite., guix-commits, 2021/09/02
- 214/377: services: base: Honor file-system-create-mount-point? at all times., guix-commits, 2021/09/02
- 235/377: gnu: Add python-pybbi., guix-commits, 2021/09/02
- 228/377: build: Build (gnu packages rocm)., guix-commits, 2021/09/02
- 220/377: gnu: mu: Update to 1.6.5., guix-commits, 2021/09/02
- 217/377: gnu: rofi: Update to 1.7.0., guix-commits, 2021/09/02
- 226/377: bootloader: Report location of the deprecated 'target' field., guix-commits, 2021/09/02