[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/96: gnu: python-isort: Update to 5.12.0.
From: |
guix-commits |
Subject: |
25/96: gnu: python-isort: Update to 5.12.0. |
Date: |
Wed, 19 Apr 2023 21:41:07 -0400 (EDT) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 2e6da431e26b36b0b648e367e4bc563727fff2c4
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Apr 16 21:57:06 2023 -0400
gnu: python-isort: Update to 5.12.0.
* gnu/packages/python-xyz.scm (python-isort): Update to 5.12.0.
[arguments]: Delete loosen-requirements phase. Streamline
install-example-plugins phase.
---
gnu/packages/python-xyz.scm | 48 ++++++++++++++-------------------------------
1 file changed, 15 insertions(+), 33 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 87afdc3a4b..316c3aaacf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20281,7 +20281,7 @@ builds partial trees by inspecting living objects.")
(define-public python-isort
(package
(name "python-isort")
- (version "5.10.1")
+ (version "5.12.0")
(source
(origin
(method git-fetch)
@@ -20294,19 +20294,11 @@ builds partial trees by inspecting living objects.")
(snippet '(for-each delete-file (find-files "." "\\.whl$")))
(sha256
(base32
- "09spgl2k9xrprr5gbpfc91a8p7mx7a0c64ydgc91b3jhrmnd9jg1"))))
+ "1vbwc4gpffclf6hw08lvvgqlvsgfjlw7gjsm28jfcrln2pixla7j"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'loosen-requirements
- (lambda _
- ;; Permit newer versions of black.
- (substitute* "example_isort_formatting_plugin/pyproject.toml"
- (("\\^20\\.08b1")
- ">= 20.08b1"))))
- ;; A foretaste of what our future python-build-system will need to
- ;; do.
(replace 'build
(lambda _
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
@@ -20317,29 +20309,19 @@ builds partial trees by inspecting living objects.")
(invoke "pip" "--no-cache-dir" "--no-input"
"install" "--no-deps" "--prefix" out whl))))
(add-after 'install 'install-example-plugins
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- ;; Patch to use the core poetry API.
- (substitute* '("example_isort_formatting_plugin/pyproject.toml"
- "example_isort_sorting_plugin/pyproject.toml"
- "example_shared_isort_profile/pyproject.toml")
- (("poetry>=0.12")
- "poetry-core>=1.0.0")
- (("poetry.masonry.api")
- "poetry.core.masonry.api"))
- ;; Build the example plugins.
- (for-each (lambda (source-directory)
- (invoke "python" "-m" "build" "--wheel"
- "--no-isolation" "--outdir=dist"
- source-directory))
- '("example_isort_formatting_plugin"
- "example_isort_sorting_plugin"
- "example_shared_isort_profile"))
- ;; Install them to temporary storage, for the test.
- (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)))))
+ (lambda _
+ (for-each (lambda (source-directory)
+ (invoke "python" "-m" "build" "--wheel"
+ "--no-isolation" "--outdir=dist"
+ source-directory))
+ '("example_isort_formatting_plugin"
+ "example_isort_sorting_plugin"
+ "example_shared_isort_profile"))
+ ;; Install them to temporary storage, for the test.
+ (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?
- 69/96: gnu: emacs-envrc: Update to 0.5., (continued)
- 69/96: gnu: emacs-envrc: Update to 0.5., guix-commits, 2023/04/19
- 70/96: gnu: emacs-envrc: Add DIRENV as an input., guix-commits, 2023/04/19
- 43/96: gnu: font-meera-inimai: Use gexps and remove labels., guix-commits, 2023/04/19
- 71/96: gnu: emacs-marginalia: Update to 1.2., guix-commits, 2023/04/19
- 72/96: gnu: emacs-osm: Update to 0.11., guix-commits, 2023/04/19
- 79/96: gnu: r-structuralvariantannotation: Update to 1.14.1., guix-commits, 2023/04/19
- 80/96: gnu: r-enrichplot: Update to 1.18.4., guix-commits, 2023/04/19
- 82/96: gnu: r-gdsfmt: Update to 1.34.1., guix-commits, 2023/04/19
- 92/96: gnu: gnutls: Extend test timeout on powerpc-linux., guix-commits, 2023/04/19
- 23/96: gnu: qtbase: Disable unstable tst_qpauseanimation test., guix-commits, 2023/04/19
- 25/96: gnu: python-isort: Update to 5.12.0.,
guix-commits <=
- 40/96: gnu: python-scikit-build: Update to 0.17.1., guix-commits, 2023/04/19
- 41/96: gnu: python-fonttools: Update to 4.39.3., guix-commits, 2023/04/19
- 57/96: snippets: tempel: Simplify git-commit-mode detection., guix-commits, 2023/04/19
- 62/96: gnu: texlive-latex-acronym: Replace with texlive-acronym., guix-commits, 2023/04/19
- 64/96: gnu: texlive-latex-lastpage: Replace with texlive-lastpage., guix-commits, 2023/04/19
- 37/96: gnu: python-pytest-trio: Update to 0.8.0., guix-commits, 2023/04/19
- 44/96: gnu: python-anyio: Update to 3.6.2., guix-commits, 2023/04/19
- 46/96: environment: Really auto-load (guix scripts pack)., guix-commits, 2023/04/19
- 47/96: services: agetty: 'term-console' succeeds by default., guix-commits, 2023/04/19
- 48/96: substitute: Download nar from another server upon ETIMEDOUT., guix-commits, 2023/04/19