[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/21: gnu: python-pytest-xdist: Fix by downgrading to 1.34.0, run test
From: |
guix-commits |
Subject: |
16/21: gnu: python-pytest-xdist: Fix by downgrading to 1.34.0, run test suite. |
Date: |
Sun, 29 Aug 2021 01:16:34 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 9482c5ad038a7ca65b33026d1475d55f57868ede
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Aug 26 14:47:31 2021 -0400
gnu: python-pytest-xdist: Fix by downgrading to 1.34.0, run test suite.
Commit ed72e558313 updated the package to 2.1.0, but this version doesn't
work
with Pytest 5, the version currently used in Guix. Downgrade to the last
version that is compatible with Pytest 5.
* gnu/packages/check.scm (python-pytest-xdist): Downgrade to 1.34.0, with a
comment explaining why. Strip trailing #t.
[source]: Remove origin modules and snippet field, no longer necessary.
[phases]{check}: Override to run the test suite.
[propagated-inputs]: Remove python-py and add python-pytest-forked.
---
gnu/packages/check.scm | 32 +++++++++++++-------------------
1 file changed, 13 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 3dc4319..5747728 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1310,38 +1310,32 @@ same arguments.")
(define-public python-pytest-xdist
(package
(name "python-pytest-xdist")
- (version "2.1.0")
+ ;; There is an issue that causes all releases after 1.34 to fail on Pytest
+ ;; 5 (see: https://github.com/pytest-dev/pytest-xdist/issues/697).
+ (version "1.34.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pytest-xdist" version))
(sha256
(base32
- "0wh6pn66nncfs6ay0n863bgyriwsgppn8flx5l7551j1lbqkinc2"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- ;; Remove pre-compiled .pyc files from source.
- (for-each delete-file-recursively
- (find-files "." "__pycache__" #:directories? #t))
- (for-each delete-file (find-files "." "\\.pyc$"))
- #t))))
+ "1vh4ps32lp5ignch5adbl3pgchvigdfmrl6qpmhxih54wa1qw3il"))))
(build-system python-build-system)
(arguments
- '(#:tests? #f)) ;FIXME: Some tests are failing.
- ;; #:phases
- ;; (modify-phases %standard-phases
- ;; (delete 'check)
- ;; (add-after 'install 'check
- ;; (lambda* (#:key inputs outputs #:allow-other-keys)
- ;; (add-installed-pythonpath inputs outputs)
- ;; (zero? (system* "py.test" "-v")))))
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-vv"
+ "-n" (number->string (parallel-job-count)))))))))
(native-inputs
`(("python-setuptools-scm" ,python-setuptools-scm)))
(propagated-inputs
`(("python-execnet" ,python-execnet)
("python-pytest" ,python-pytest)
- ("python-py" ,python-py)))
+ ("python-pytest-forked" ,python-pytest-forked)))
(home-page
"https://github.com/pytest-dev/pytest-xdist")
(synopsis
- branch master updated (7611423 -> 0bc5448), guix-commits, 2021/08/29
- 03/21: gnu: Add python-commentjson., guix-commits, 2021/08/29
- 01/21: gnu: bootloader: Support multiple targets., guix-commits, 2021/08/29
- 05/21: gnu: Add python-resolvelib-0.5., guix-commits, 2021/08/29
- 02/21: Migrate to the new 'targets' field of bootloader-configuration., guix-commits, 2021/08/29
- 08/21: gnu: python-pytest-6: Update to 6.2.4 and propagate iniconfig., guix-commits, 2021/08/29
- 09/21: gnu: python-execnet: Update to 1.9.0 and enable tests., guix-commits, 2021/08/29
- 10/21: gnu: python-rope: Update to 0.19.0 and remove python2-rope., guix-commits, 2021/08/29
- 12/21: gnu: python-py-next: Update to 1.10.0., guix-commits, 2021/08/29
- 14/21: gnu: python-pytest-asyncio: Enable tests and patch for Python 3.8., guix-commits, 2021/08/29
- 16/21: gnu: python-pytest-xdist: Fix by downgrading to 1.34.0, run test suite.,
guix-commits <=
- 20/21: gnu: python-django: Update to 3.2.6., guix-commits, 2021/08/29
- 04/21: gnu: Add python-resolvelib., guix-commits, 2021/08/29
- 06/21: gnu: Add python-ncclient., guix-commits, 2021/08/29
- 07/21: gnu: Add python-pyspnego., guix-commits, 2021/08/29
- 11/21: gnu: python-mock: Update description., guix-commits, 2021/08/29
- 19/21: gnu: ansible: Update to 4.4.0., guix-commits, 2021/08/29
- 15/21: gnu: python-pytest-mock: Update to 3.6.1 and run test suite., guix-commits, 2021/08/29
- 13/21: gnu: python-pytest-forked: Update to 1.3.0 and run test suite., guix-commits, 2021/08/29
- 18/21: gnu: Add ansible-core., guix-commits, 2021/08/29
- 21/21: gnu: python-pytest-django: Update to 4.4.0., guix-commits, 2021/08/29