all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#63628] [PATCH 1/2] gnu: python-plotly: Fix version.
@ 2023-05-21 17:19 Vinicius Monego
  2023-05-21 17:21 ` [bug#63628] [PATCH 2/2] gnu: python-plotly: Update to 5.14.1 Vinicius Monego
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Vinicius Monego @ 2023-05-21 17:19 UTC (permalink / raw)
  To: 63628; +Cc: Vinicius Monego

* gnu/packages/graph.scm (python-plotly)[arguments]: In the fix-version phase,
substitute the correct version string.
---
 gnu/packages/graph.scm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index 1091d3d56e..4e4e3b3e73 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -6,7 +6,7 @@
 ;;; Copyright © 2019 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2020 Alexander Krotov <krotov@iitp.ru>
 ;;; Copyright © 2020 Pierre Langlois <pierre.langlos@gmx.com>
-;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2021, 2023 Vinicius Monego <monego@posteo.net>
 ;;; Copyright © 2021 Alexandre Hannud Abdo <abdo@member.fsf.org>
 ;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
@@ -240,9 +240,10 @@ (define-public python-plotly
           (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)))))
+              (substitute* "packages/python/plotly/plotly/version.py"
+                (("\\_\\_version\\_\\_ = get\\_versions\\(\\)\\[\"version\"\\]")
+                 (format #f "__version__ = ~s"
+                         #$(package-version this-package))))))
           (add-after 'fix-version 'chdir
             (lambda _
               (chdir "packages/python/plotly")))
-- 
2.34.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#63628] [PATCH 2/2] gnu: python-plotly: Update to 5.14.1.
  2023-05-21 17:19 [bug#63628] [PATCH 1/2] gnu: python-plotly: Fix version Vinicius Monego
@ 2023-05-21 17:21 ` Vinicius Monego
  2023-06-10  2:25 ` [bug#63628] [PATCH v2 1/2] gnu: python-plotly: Fix version Vinicius Monego
  2023-07-01 11:13 ` bug#63628: [PATCH 1/2] gnu: python-plotly: Fix version Nicolas Goaziou
  2 siblings, 0 replies; 5+ messages in thread
From: Vinicius Monego @ 2023-05-21 17:21 UTC (permalink / raw)
  To: 63628; +Cc: Vinicius Monego

* gnu/packages/graph.scm (python-plotly): Update to 5.14.1.
---
 gnu/packages/graph.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index 4e4e3b3e73..3fba34459a 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -218,7 +218,7 @@ (define-public r-rbiofabric
 (define-public python-plotly
   (package
     (name "python-plotly")
-    (version "5.6.0")
+    (version "5.14.1")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -227,7 +227,7 @@ (define-public python-plotly
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0kc9v5ampq2paw6sls6zdchvqvis7b1z8xhdvlhz5xxdr1vj5xnn"))))
+                "12iy5cswn5c0590fvl87nr6vfyhvbxymrldh4c7dfm2gn6h8z8w0"))))
     (build-system python-build-system)
     (arguments
      (list
-- 
2.34.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#63628] [PATCH v2 1/2] gnu: python-plotly: Fix version.
  2023-05-21 17:19 [bug#63628] [PATCH 1/2] gnu: python-plotly: Fix version Vinicius Monego
  2023-05-21 17:21 ` [bug#63628] [PATCH 2/2] gnu: python-plotly: Update to 5.14.1 Vinicius Monego
@ 2023-06-10  2:25 ` Vinicius Monego
  2023-06-10  2:25   ` [bug#63628] [PATCH v2 2/2] gnu: python-plotly: Update to 5.14.1 Vinicius Monego
  2023-07-01 11:13 ` bug#63628: [PATCH 1/2] gnu: python-plotly: Fix version Nicolas Goaziou
  2 siblings, 1 reply; 5+ messages in thread
From: Vinicius Monego @ 2023-06-10  2:25 UTC (permalink / raw)
  To: 63628; +Cc: Vinicius Monego

* gnu/packages/graph.scm (python-plotly)[arguments]: In the fix-version phase,
substitute the correct version string.
---
The substitution in setup.py was fine, the problem was with the __version__ attribute. Both are correct now. I also added a comment about versioneer.

 gnu/packages/graph.scm | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index 1091d3d56e..4f44d5b5f4 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -6,7 +6,7 @@
 ;;; Copyright © 2019 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2020 Alexander Krotov <krotov@iitp.ru>
 ;;; Copyright © 2020 Pierre Langlois <pierre.langlos@gmx.com>
-;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2021, 2023 Vinicius Monego <monego@posteo.net>
 ;;; Copyright © 2021 Alexandre Hannud Abdo <abdo@member.fsf.org>
 ;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
@@ -238,11 +238,16 @@ (define-public python-plotly
             (lambda _
               (setenv "SKIP_NPM" "T")))
           (add-after 'unpack 'fix-version
-            ;; Versioneer is useless when there is no git metadata.
+            ;; TODO: Versioneer in Guix gets its release version from the
+            ;; parent directory, but the plotly package is located inside a
+            ;; depth 3 subdirectory.  Try to use versioneer if possible.
             (lambda _
               (substitute* "packages/python/plotly/setup.py"
                 (("version=versioneer.get_version\\(),")
-                 (format #f "version=~s," #$version)))))
+                 (format #f "version=~s," #$version)))
+              (substitute* "packages/python/plotly/plotly/version.py"
+                (("__version__ = get_versions\\(\\)\\[\"version\"\\]")
+                 (format #f "__version__ = ~s" #$version)))))
           (add-after 'fix-version 'chdir
             (lambda _
               (chdir "packages/python/plotly")))
-- 
2.34.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#63628] [PATCH v2 2/2] gnu: python-plotly: Update to 5.14.1.
  2023-06-10  2:25 ` [bug#63628] [PATCH v2 1/2] gnu: python-plotly: Fix version Vinicius Monego
@ 2023-06-10  2:25   ` Vinicius Monego
  0 siblings, 0 replies; 5+ messages in thread
From: Vinicius Monego @ 2023-06-10  2:25 UTC (permalink / raw)
  To: 63628; +Cc: Vinicius Monego

* gnu/packages/graph.scm (python-plotly): Update to 5.14.1.
---
 gnu/packages/graph.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index 4f44d5b5f4..5510828edf 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -218,7 +218,7 @@ (define-public r-rbiofabric
 (define-public python-plotly
   (package
     (name "python-plotly")
-    (version "5.6.0")
+    (version "5.14.1")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -227,7 +227,7 @@ (define-public python-plotly
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0kc9v5ampq2paw6sls6zdchvqvis7b1z8xhdvlhz5xxdr1vj5xnn"))))
+                "12iy5cswn5c0590fvl87nr6vfyhvbxymrldh4c7dfm2gn6h8z8w0"))))
     (build-system python-build-system)
     (arguments
      (list
-- 
2.34.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#63628: [PATCH 1/2] gnu: python-plotly: Fix version.
  2023-05-21 17:19 [bug#63628] [PATCH 1/2] gnu: python-plotly: Fix version Vinicius Monego
  2023-05-21 17:21 ` [bug#63628] [PATCH 2/2] gnu: python-plotly: Update to 5.14.1 Vinicius Monego
  2023-06-10  2:25 ` [bug#63628] [PATCH v2 1/2] gnu: python-plotly: Fix version Vinicius Monego
@ 2023-07-01 11:13 ` Nicolas Goaziou
  2 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2023-07-01 11:13 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 63628-done

Hello,

Vinicius Monego <monego@posteo.net> writes:

> * gnu/packages/graph.scm (python-plotly)[arguments]: In the fix-version phase,
> substitute the correct version string.

Applied (v2). Thank you.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-01 11:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-21 17:19 [bug#63628] [PATCH 1/2] gnu: python-plotly: Fix version Vinicius Monego
2023-05-21 17:21 ` [bug#63628] [PATCH 2/2] gnu: python-plotly: Update to 5.14.1 Vinicius Monego
2023-06-10  2:25 ` [bug#63628] [PATCH v2 1/2] gnu: python-plotly: Fix version Vinicius Monego
2023-06-10  2:25   ` [bug#63628] [PATCH v2 2/2] gnu: python-plotly: Update to 5.14.1 Vinicius Monego
2023-07-01 11:13 ` bug#63628: [PATCH 1/2] gnu: python-plotly: Fix version Nicolas Goaziou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.