[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
139/361: gnu: python-isort: Move to pyproject-build-system.
From: |
guix-commits |
Subject: |
139/361: gnu: python-isort: Move to pyproject-build-system. |
Date: |
Fri, 22 Nov 2024 06:00:28 -0500 (EST) |
andreas pushed a commit to branch python-team
in repository guix.
commit ab4b1b2c3ef5b2976a233c30ebcbba3c27121fc9
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Fri May 10 00:52:59 2024 +0200
gnu: python-isort: Move to pyproject-build-system.
* gnu/packages/python-xyz.scm (python-isort):
[build-system]: Move to pyproject-build-system.
[arguments]<#:test-flags>: Add option to replace former check phase.
<#:phases>: Remove phases build, install and check.
Change-Id: Idac8f151977f2494eb44d51aa1fcbf3156b5cc87
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/python-xyz.scm | 22 ++++------------------
1 file changed, 4 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c078330bc1..1d54dd48bc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24986,19 +24986,13 @@ package attempts to address the shortcomings of
@code{isodate}.")
(sha256
(base32
"1vbwc4gpffclf6hw08lvvgqlvsgfjlw7gjsm28jfcrln2pixla7j"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
+ #:test-flags '(list "tests/unit/" "-k" "not test_gitignore"
+ "--ignore=tests/unit/test_deprecated_finders.py")
#:phases
#~(modify-phases %standard-phases
- (replace 'build
- (lambda _
- (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
- (replace 'install
- (lambda _
- (let ((whl (car (find-files "dist" "\\.whl$"))))
- (invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--no-deps" "--prefix" #$output whl))))
(add-after 'install 'install-example-plugins
(lambda _
(for-each (lambda (source-directory)
@@ -25012,15 +25006,7 @@ package attempts to address the shortcomings of
@code{isodate}.")
(setenv "HOME" (getcwd))
(let ((example-whls (find-files "dist" "^example.*\\.whl$")))
(apply invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--user" "--no-deps" example-whls))))
- (replace 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (when tests?
- (let ((bin (string-append #$output "/bin")))
- (setenv "PATH" (string-append (getenv "PATH") ":" bin)))
- (invoke "pytest" "-vv" "tests/unit/"
- "-k" "not test_gitignore" ;requires git
- "--ignore=tests/unit/test_deprecated_finders.py")))))))
+ "install" "--user" "--no-deps" example-whls)))))))
(native-inputs
(list python-black
python-colorama
- 52/361: gnu: python-pyproject-metadata: Disable two tests., (continued)
- 52/361: gnu: python-pyproject-metadata: Disable two tests., guix-commits, 2024/11/22
- 49/361: gnu: python-box: Add missing input., guix-commits, 2024/11/22
- 48/361: gnu: python-joblib: Add missing inputs., guix-commits, 2024/11/22
- 84/361: gnu: python-jupyter-kernel-mgmt: Use Tornado 6., guix-commits, 2024/11/22
- 92/361: gnu: python-jupyter-client: Update to 7.4.4., guix-commits, 2024/11/22
- 91/361: gnu: python-trio: Use pyproject-build-system., guix-commits, 2024/11/22
- 121/361: gnu: python-rope: Update to 1.13.0., guix-commits, 2024/11/22
- 129/361: gnu: python-mistune: Update to 3.0.2., guix-commits, 2024/11/22
- 138/361: gnu: python-black: Move to pyproject-build-system., guix-commits, 2024/11/22
- 123/361: gnu: python-lsp-server: Update to 1.11.0., guix-commits, 2024/11/22
- 139/361: gnu: python-isort: Move to pyproject-build-system.,
guix-commits <=
- 140/361: gnu: python-codespell: Improve package style., guix-commits, 2024/11/22
- 142/361: gnu: python-http-ece: Update to 1.2.0., guix-commits, 2024/11/22
- 144/361: gnu: python-aionotify: Update to 0.3.0., guix-commits, 2024/11/22
- 153/361: gnu: python-apiron: Move to pyproject-build-system., guix-commits, 2024/11/22
- 171/361: gnu: python-cucumber-tag-expressions: Move to pyproject-build-system., guix-commits, 2024/11/22
- 164/361: gnu: python-nbval: Move to pyproject-build-system., guix-commits, 2024/11/22
- 168/361: gnu: python-cbor2: Move to pyproject-build-system., guix-commits, 2024/11/22
- 166/361: gnu: gunicorn: Update to 21.2.0., guix-commits, 2024/11/22
- 173/361: gnu: python-parse-type: Move to pyproject-build-system., guix-commits, 2024/11/22
- 179/361: gnu: python-pytest-remotedata: Ignore failing test., guix-commits, 2024/11/22