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

Previous Next

Package: guix-patches;

Reported by: Vinicius Monego <monego <at> posteo.net>

Date: Sun, 21 May 2023 17:21:02 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#63628: closed ([PATCH 1/2] gnu: python-plotly: Fix version.)
Date: Sat, 01 Jul 2023 11:15:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 01 Jul 2023 13:13:42 +0200
with message-id <877crjkhp5.fsf <at> nicolasgoaziou.fr>
and subject line Re: [bug#63628] [PATCH 1/2] gnu: python-plotly: Fix version.
has caused the debbugs.gnu.org bug report #63628,
regarding [PATCH 1/2] gnu: python-plotly: Fix version.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
63628: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63628
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Vinicius Monego <monego <at> posteo.net>
To: guix-patches <at> gnu.org
Cc: Vinicius Monego <monego <at> posteo.net>
Subject: [PATCH 1/2] gnu: python-plotly: Fix version.
Date: Sun, 21 May 2023 17:19:51 +0000
* 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 <at> enge.fr>
 ;;; Copyright © 2020 Alexander Krotov <krotov <at> iitp.ru>
 ;;; Copyright © 2020 Pierre Langlois <pierre.langlos <at> gmx.com>
-;;; Copyright © 2021 Vinicius Monego <monego <at> posteo.net>
+;;; Copyright © 2021, 2023 Vinicius Monego <monego <at> posteo.net>
 ;;; Copyright © 2021 Alexandre Hannud Abdo <abdo <at> member.fsf.org>
 ;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
 ;;; Copyright © 2022 Marius Bakke <marius <at> 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



[Message part 3 (message/rfc822, inline)]
From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Vinicius Monego <monego <at> posteo.net>
Cc: 63628-done <at> debbugs.gnu.org
Subject: Re: [bug#63628] [PATCH 1/2] gnu: python-plotly: Fix version.
Date: Sat, 01 Jul 2023 13:13:42 +0200
Hello,

Vinicius Monego <monego <at> 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


This bug report was last modified 1 year and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.