[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/150: gnu: python-testpath: Remove custom build phases.
From: |
guix-commits |
Subject: |
17/150: gnu: python-testpath: Remove custom build phases. |
Date: |
Sun, 24 Apr 2022 05:12:16 -0400 (EDT) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit 2d800a693bf6f353327fe744da6fa0f7f3fa4f7e
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Thu Nov 25 13:24:31 2021 +0100
gnu: python-testpath: Remove custom build phases.
python-build-system supports PEP 517 now.
* gnu/packages/check.scm (python-testpath)[#:phases]: Remove.
[arguments]: Add #:build-backend.
[native-inputs]: Add pytest.
---
gnu/packages/check.scm | 28 ++++------------------------
1 file changed, 4 insertions(+), 24 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index c0eadbad4b..a74672b269 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1936,31 +1936,11 @@ C/C++, R, and more, and uploads it to the
@code{codecov.io} service.")
(base32
"08r1c6bhvj8pcdvzkqv1950k36a6q3v81fd2p1yqdq3c07mcwgif"))))
(build-system python-build-system)
- (arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'relax-requirements
- (lambda _
- (substitute* "pyproject.toml"
- (("flit_core >=3.2.0,<3.3")
- "flit_core >=3.2.0"))))
- ;; XXX: PEP 517 manual build copied from python-isort.
- (replace 'build
- (lambda _
- (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest"))))
- (replace 'install
- (lambda _
- (let ((whl (car (find-files "dist" "\\.whl$"))))
- (invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--no-deps" "--prefix" #$output whl)))))))
+ ;; pyproject.toml uses wrong package.
+ (arguments `(#:build-backend "flit_core.buildapi"))
(native-inputs
- (list python-pypa-build python-flit-core python-pytest))
- (home-page "https://github.com/jupyter/testpath")
+ (list python-flit-core python-pytest))
+ (home-page "https://github.com/takluyver/testpath")
(synopsis "Test utilities for code working with files and commands")
(description
"Testpath is a collection of utilities for Python code working with files
- 134/150: gnu: python-cwcwidth: Disable tests., (continued)
- 134/150: gnu: python-cwcwidth: Disable tests., guix-commits, 2022/04/24
- 136/150: gnu: python-ilinkedlist: Disable tests., guix-commits, 2022/04/24
- 143/150: gnu: python-libsass: Fix 'sanity-check phase., guix-commits, 2022/04/24
- 137/150: gnu: python-importmagic: Add missing test input., guix-commits, 2022/04/24
- 139/150: gnu: python-jinja2-cli: Disable tests., guix-commits, 2022/04/24
- 140/150: gnu: python-jupyter-packaging: Disable failing tests., guix-commits, 2022/04/24
- 145/150: gnu: python-lunr: Disable tests., guix-commits, 2022/04/24
- 146/150: gnu: meson: Match shebang instead of setuptools-specific line., guix-commits, 2022/04/24
- 148/150: gnu: python-parsedatetime: Explicit test-backend., guix-commits, 2022/04/24
- 03/150: python-build-system: Use PEP 517-compatible builds., guix-commits, 2022/04/24
- 17/150: gnu: python-testpath: Remove custom build phases.,
guix-commits <=
- 09/150: gnu: python-flit: Inherit from python-flit-core., guix-commits, 2022/04/24
- 35/150: gnu: python-urwidtrees: Remove dependency on mock., guix-commits, 2022/04/24
- 52/150: gnu: python-pytest-xvfb: Remove obsolete test target., guix-commits, 2022/04/24
- 50/150: gnu: python-pytest-benchmark: Disable tests., guix-commits, 2022/04/24
- 53/150: gnu: python-pytest-qt: Remove obsolete test target., guix-commits, 2022/04/24
- 51/150: gnu: python-entrypoint2: Remove obsolete test target., guix-commits, 2022/04/24
- 57/150: gnu: python-argon2-cffi: Do not override 'build., guix-commits, 2022/04/24
- 69/150: gnu: python-three-merge: Remove obsolete argument., guix-commits, 2022/04/24
- 64/150: gnu: python-pyls-black: Remove obsolete argument., guix-commits, 2022/04/24
- 85/150: gnu: python-libxml2: Fix build., guix-commits, 2022/04/24