Subject: bug#63628: closed (Re: [bug#63628] [PATCH 1/2] gnu: python-plotly: Fix version.)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 01 Jul 2023 11:15:03 +0000

Your bug report

#63628: [PATCH 1/2] gnu: python-plotly: Fix version.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
63628: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63628
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#63628] [PATCH 1/2] gnu: python-plotly: Fix version.
From: Nicolas Goaziou <[email-masked]>
To: Vinicius Monego <[email-masked]>
Cc: [email-masked]
Date: Sat, 01 Jul 2023 13:13:42 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Vinicius Monego <[email-masked]> 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

Subject: [PATCH 1/2] gnu: python-plotly: Fix version.
From: Vinicius Monego <[email-masked]>
To: [email-masked]
Cc: Vinicius Monego <[email-masked]>
Date: Sun, 21 May 2023 17:19:51 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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 <[email-masked]>
 ;;; Copyright © 2020 Alexander Krotov <[email-masked]>
 ;;; Copyright © 2020 Pierre Langlois <[email-masked]>
-;;; Copyright © 2021 Vinicius Monego <[email-masked]>
+;;; Copyright © 2021, 2023 Vinicius Monego <[email-masked]>
 ;;; Copyright © 2021 Alexandre Hannud Abdo <[email-masked]>
 ;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <[email-masked]>
 ;;; Copyright © 2022 Marius Bakke <[email-masked]>
@@ -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