[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
165/420: gnu: python-pytest-runner: Improve package style.
From: |
guix-commits |
Subject: |
165/420: gnu: python-pytest-runner: Improve package style. |
Date: |
Tue, 26 Nov 2024 16:28:53 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit d990cf28cc9017d4c0be866424d6b913f1db1fcf
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 f36023d0c9..b905fdd75e 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
- 129/420: gnu: python-mistune: Update to 3.0.2., (continued)
- 129/420: gnu: python-mistune: Update to 3.0.2., guix-commits, 2024/11/26
- 131/420: gnu: python-widgetsnbextension: Update to 4.0.10., guix-commits, 2024/11/26
- 135/420: gnu: python-ipywidgets: Update to 8.1.2., guix-commits, 2024/11/26
- 144/420: gnu: python-aionotify: Update to 0.3.0., guix-commits, 2024/11/26
- 146/420: gnu: python-django-localflavor: Move to pyproject-build-system., guix-commits, 2024/11/26
- 145/420: gnu: vdirsyncer: Move to pyproject-build-system and enable tests., guix-commits, 2024/11/26
- 152/420: gnu: qtile: Improve package style., guix-commits, 2024/11/26
- 155/420: gnu: conda: Move to pyproject-build-system., guix-commits, 2024/11/26
- 156/420: gnu: conda: Reindent., guix-commits, 2024/11/26
- 157/420: gnu: python-conda-package-handling: Move to pyproject-build-system., guix-commits, 2024/11/26
- 165/420: gnu: python-pytest-runner: Improve package style.,
guix-commits <=
- 171/420: gnu: python-cucumber-tag-expressions: Move to pyproject-build-system., guix-commits, 2024/11/26
- 176/420: gnu: abjad: Update to 3.19., guix-commits, 2024/11/26
- 188/420: gnu: python-nbstripout: Move to pyproject-build-system., guix-commits, 2024/11/26
- 179/420: gnu: python-pytest-remotedata: Ignore failing test., guix-commits, 2024/11/26
- 197/420: gnu: python-xmltodict: Move to pyproject-build-system., guix-commits, 2024/11/26
- 202/420: gnu: python-uqbar: Upgrade to python-team branch., guix-commits, 2024/11/26
- 205/420: gnu: python-zope-i18nmessageid: Move to pyproject-build-system., guix-commits, 2024/11/26
- 228/420: gnu: python-automat: Update to 22.10.0., guix-commits, 2024/11/26
- 235/420: gnu: python-lazy-loader: Adjust inputs., guix-commits, 2024/11/26
- 229/420: gnu: Remove python-m2r., guix-commits, 2024/11/26