[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
138/195: gnu: python-pytest-runner: Improve package style.
From: |
guix-commits |
Subject: |
138/195: gnu: python-pytest-runner: Improve package style. |
Date: |
Tue, 15 Oct 2024 03:30:01 -0400 (EDT) |
sharlatan pushed a commit to branch python-team-rebased
in repository guix.
commit 9984b3a6d19e116865165a09cdddefeb21eb936a
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Fri May 10 00:53:28 2024 +0200
gnu: python-pytest-runner: Improve package style.
* gnu/packages/check.scm (python-pytest-runner):
[build-system]: Move to pyproject-build-system.
[arguments]<#:phases>: Remove check phase replacement. Update
<#:tests?> refusal comment.
[native-inputs]: Add python-pip, python-pypa-build,
python-setuptools and python-wheel.
Change-Id: Id36e7ed4a3cec6098f0877f48f3fbcbd8007f3c3
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/check.scm | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index f67a0af40f..15716f5e6c 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1985,10 +1985,10 @@ Python's @code{random.seed}.")
(sha256
(base32
"11dnhxnjmh4nf1j8rnvx944ha3wg8ggrgrwdcx4c7d19xmi57n5l"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
- ;; FIXME: The test suite requires 'python-flake8' and 'python-black',
+ ;; FIXME: The test suite requires 'python-pytest-virtualenv',
;; but that introduces a circular dependency.
#:tests? #f
#:phases
@@ -2002,14 +2002,10 @@ Python's @code{random.seed}.")
(lambda _
(let ((whl (car (find-files "dist" "\\.whl$"))))
(invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--no-deps" "--prefix" #$output whl))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (if tests?
- (invoke "pytest" "-vv")
- (format #t "test suite not run~%")))))))
+ "install" "--no-deps" "--prefix" #$output whl)))))))
(native-inputs
- (list python-pypa-build python-setuptools-scm python-wheel))
+ (list python-pip python-pypa-build python-pytest
+ python-setuptools python-setuptools-scm python-wheel))
(home-page "https://github.com/pytest-dev/pytest-runner")
(synopsis "Invoke py.test as a distutils command")
(description
- 120/195: gnu: Add xcffibgen., (continued)
- 120/195: gnu: Add xcffibgen., guix-commits, 2024/10/15
- 112/195: gnu: python-codespell: Improve package style., guix-commits, 2024/10/15
- 135/195: gnu: python-pypujs: Improve package style., guix-commits, 2024/10/15
- 132/195: gnu: python-arrow: Move to pyproject-build-system., guix-commits, 2024/10/15
- 128/195: gnu: conda: Reindent., guix-commits, 2024/10/15
- 130/195: gnu: python-scikit-rf: Fix tests., guix-commits, 2024/10/15
- 139/195: gnu: gunicorn: Update to 21.2.0., guix-commits, 2024/10/15
- 122/195: gnu: python-xcffib: Move to (gnu packages xorg)., guix-commits, 2024/10/15
- 143/195: gnu: behave: Move to pyproject-build-system., guix-commits, 2024/10/15
- 141/195: gnu: python-cbor2: Move to pyproject-build-system., guix-commits, 2024/10/15
- 138/195: gnu: python-pytest-runner: Improve package style.,
guix-commits <=
- 150/195: gnu: abjad-ext-rmakers: Update to 3.19., guix-commits, 2024/10/15
- 144/195: gnu: python-cucumber-tag-expressions: Move to pyproject-build-system., guix-commits, 2024/10/15
- 159/195: gnu: python-jaraco-packaging: Move to pyproject-build-system., guix-commits, 2024/10/15
- 158/195: gnu: python-jaraco-functools: Move to pyproject-build-system., guix-commits, 2024/10/15
- 156/195: gnu: python-jaraco-classes: Move to pyproject-build-system., guix-commits, 2024/10/15
- 157/195: gnu: python-jaraco-context: Move to pyproject-build-system., guix-commits, 2024/10/15
- 162/195: gnu: Add ghc-xcb-types., guix-commits, 2024/10/15
- 185/195: gnu: python-multidict: Move to pyproject-build-system., guix-commits, 2024/10/15
- 172/195: gnu: python-cmd2: Move to pyproject-build-system., guix-commits, 2024/10/15
- 04/195: gnu: sssd: Import ensure-no-mtimes-pre-1980., guix-commits, 2024/10/15