[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23/24: gnu: python-plotly: Fix version detection.
From: |
guix-commits |
Subject: |
23/24: gnu: python-plotly: Fix version detection. |
Date: |
Wed, 15 Mar 2023 19:18:22 -0400 (EDT) |
ngz pushed a commit to branch master
in repository guix.
commit 1c0056876ccabf5ad30007e7163ae94b8152e20c
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Wed Mar 8 23:26:36 2023 +0000
gnu: python-plotly: Fix version detection.
* gnu/packages/graph.scm (python-plotly): Apply new package style.
[arguments]: Add new fix-version phase.
[arguments]{phases}: chdir phase, remove trailing #f from lambda.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/graph.scm | 34 ++++++++++++++++++++--------------
1 file changed, 20 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index 62a5a400d2..b719b1be42 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -230,24 +230,30 @@ lines.")
"0kc9v5ampq2paw6sls6zdchvqvis7b1z8xhdvlhz5xxdr1vj5xnn"))))
(build-system python-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
(add-before 'build 'skip-npm
;; npm is not packaged so build without it
(lambda _
(setenv "SKIP_NPM" "T")))
- (add-after 'unpack 'chdir
- (lambda _
- (chdir "packages/python/plotly")
- #t))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-x" "plotly/tests/test_core")
- (invoke "pytest" "-x" "plotly/tests/test_io")
- ;; FIXME: Add optional dependencies and enable their tests.
- ;; (invoke "pytest" "-x" "plotly/tests/test_optional")
- (invoke "pytest" "_plotly_utils/tests")))))))
+ (add-after 'unpack 'fix-version
+ ;; Versioneer is useless when there is no git metadata.
+ (lambda _
+ (substitute* "packages/python/plotly/setup.py"
+ (("version=versioneer.get_version\\(),")
+ (format #f "version=~s," #$version)))))
+ (add-after 'fix-version 'chdir
+ (lambda _
+ (chdir "packages/python/plotly")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-x" "plotly/tests/test_core")
+ (invoke "pytest" "-x" "plotly/tests/test_io")
+ ;; FIXME: Add optional dependencies and enable their tests.
+ ;; (invoke "pytest" "-x" "plotly/tests/test_optional")
+ (invoke "pytest" "_plotly_utils/tests")))))))
(native-inputs
(list python-ipywidgets python-pytest python-xarray))
(propagated-inputs
- 18/24: gnu: emacs-yaml: Update to 0.5.2., (continued)
- 18/24: gnu: emacs-yaml: Update to 0.5.2., guix-commits, 2023/03/15
- 02/24: gnu: Add emacs-ac-php., guix-commits, 2023/03/15
- 04/24: gnu: Add julia-tokenize., guix-commits, 2023/03/15
- 10/24: gnu: emacs-citar: Update to 1.2.0., guix-commits, 2023/03/15
- 14/24: gnu: emacs-inspector: Update to 0.28., guix-commits, 2023/03/15
- 15/24: gnu: emacs-package-lint: Update to 0.17., guix-commits, 2023/03/15
- 17/24: gnu: emacs-zenburn-theme: Update to 2.8.0., guix-commits, 2023/03/15
- 24/24: gnu: Add python-poliastro., guix-commits, 2023/03/15
- 19/24: gnu: emacs-jsonrpc: Update to 1.0.17., guix-commits, 2023/03/15
- 22/24: gnu: Add python-czml3., guix-commits, 2023/03/15
- 23/24: gnu: python-plotly: Fix version detection.,
guix-commits <=
- 12/24: gnu: emacs-ef-themes: Update to 0.11.0., guix-commits, 2023/03/15
- 08/24: gnu: emacs-eglot: Update to 1.13., guix-commits, 2023/03/15
- 21/24: gnu: xmoto: Update to 0.6.2., guix-commits, 2023/03/15
- 20/24: gnu: lagrange: Update to 1.15.4., guix-commits, 2023/03/15