unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 63628@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#63628] [PATCH 1/2] gnu: python-plotly: Fix version.
Date: Sun, 21 May 2023 17:19:51 +0000	[thread overview]
Message-ID: <20230521171951.2431541-1-monego@posteo.net> (raw)

* 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





             reply	other threads:[~2023-05-21 17:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-21 17:19 Vinicius Monego [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230521171951.2431541-1-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=63628@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).