[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
165/361: gnu: python-pytest-runner: Improve package style.
From: |
guix-commits |
Subject: |
165/361: gnu: python-pytest-runner: Improve package style. |
Date: |
Thu, 21 Nov 2024 06:29:11 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit 42853efbbe8e31a9a8488b44d350cf6f2a373e27
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 8c6bbcd4c3..fd290178bb 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1994,10 +1994,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
@@ -2011,14 +2011,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
- 115/361: gnu: python-myst-parser: Update to 3.0.1., (continued)
- 115/361: gnu: python-myst-parser: Update to 3.0.1., guix-commits, 2024/11/21
- 120/361: gnu: python-platformdirs: Update to 4.2.1., guix-commits, 2024/11/21
- 150/361: gnu: python-xcffib: Move to (gnu packages xorg)., guix-commits, 2024/11/21
- 162/361: gnu: python-pypujs: Improve package style., guix-commits, 2024/11/21
- 154/361: gnu: python-alembic: Move to pyproject-build-system., guix-commits, 2024/11/21
- 112/361: gnu: python-json5: Update to 0.9.25., guix-commits, 2024/11/21
- 166/361: gnu: gunicorn: Update to 21.2.0., guix-commits, 2024/11/21
- 164/361: gnu: python-nbval: Move to pyproject-build-system., guix-commits, 2024/11/21
- 161/361: gnu: zulip-term: Move to pyproject-build-system., guix-commits, 2024/11/21
- 158/361: gnu: python-scikit-rf: Fix tests., guix-commits, 2024/11/21
- 165/361: gnu: python-pytest-runner: Improve package style.,
guix-commits <=
- 172/361: gnu: python-flask-login: Move to pyproject-build-system., guix-commits, 2024/11/21
- 171/361: gnu: python-cucumber-tag-expressions: Move to pyproject-build-system., guix-commits, 2024/11/21
- 176/361: gnu: abjad: Update to 3.19., guix-commits, 2024/11/21
- 184/361: gnu: python-jaraco-context: Move to pyproject-build-system., guix-commits, 2024/11/21
- 191/361: gnu: python-pytest-enabler: Break dependency cycle., guix-commits, 2024/11/21
- 192/361: gnu: python-pint: Disable benchmark tests., guix-commits, 2024/11/21
- 195/361: gnu: python-orderedmultidict: Move to pyproject-build-system., guix-commits, 2024/11/21
- 198/361: gnu: python-rich: Update to 13.7.1., guix-commits, 2024/11/21
- 206/361: gnu: python-funsor: Ignore flaky test., guix-commits, 2024/11/21
- 208/361: gnu: tuir: Move to pyproject-build-system., guix-commits, 2024/11/21