all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xinglu Chen <public@yoctocell.xyz>
To: Ricardo Wurmus <rekado@elephly.net>, 47746@debbugs.gnu.org
Subject: bug#47746: pypi importer generates wrong pypi-uri without underscore
Date: Tue, 13 Apr 2021 20:54:56 +0200	[thread overview]
Message-ID: <87y2dmf20v.fsf@yoctocell.xyz> (raw)
In-Reply-To: <87pmyytx8d.fsf@elephly.net>

On Tue, Apr 13 2021, Ricardo Wurmus wrote:

> When importing a package from Pypi whose name includes an 
> underscore, the importer will generate a pypi-uri expression where 
> the underscore has been replaced with a dash.

Hmm, I just grabbed a random package from PyPi, and the URI seems fine
to me.

--8<---------------cut here---------------start------------->8---
~/src/guix $ ./pre-inst-env guix import pypi angreal_data_science_project
Starting download of /tmp/guix-file.4MH43L
From
https://files.pythonhosted.org/packages/28/5a/6c77f8f5c2333ab2d3e83c27615358a0badcfeb6513a36079ba0fee78524/angreal_data_science_project-0.5.5.tar.gz...
 …_project-0.5.5.tar.gz  15KiB        378KiB/s 00:00 [##################] 100.0%

Starting download of /tmp/guix-file.hrC4cL
From
https://files.pythonhosted.org/packages/f4/18/e4747e2f3232ca1fbbd1286455fe57f3390a94b14c26a37dba72eb829523/angreal_data_science_project-0.5.5-py3-none-any.whl...
 …ect-0.5.5-py3-none-any.whl  28KiB   244KiB/s 00:00 [##################] 100.0%
(package
  (name "python-angreal-data-science-project")
  (version "0.5.5")
  (source
    (origin
      (method url-fetch)
      (uri (pypi-uri "angreal_data_science_project" version))
      (sha256
        (base32
          "1krvhwmlmv77j8w3sxaxlkmhd0xzmr24f4n873p00631lacwmpck"))))
  (build-system python-build-system)
  (home-page
    "https://gitlab.com/angreal/data-science-project")
  (synopsis
    "An angreal template for data science projects.")
  (description
    "An angreal template for data science projects.")
  (license #f))
--8<---------------cut here---------------end--------------->8---

How would I reproduce the bug?




  reply	other threads:[~2021-04-13 18:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-13  8:17 bug#47746: pypi importer generates wrong pypi-uri without underscore Ricardo Wurmus
2021-04-13 18:54 ` Xinglu Chen [this message]
2021-04-13 21:39   ` Ricardo Wurmus
2021-04-14 12:45     ` Xinglu Chen
2021-04-19  2:37       ` Maxim Cournoyer

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

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

  git send-email \
    --in-reply-to=87y2dmf20v.fsf@yoctocell.xyz \
    --to=public@yoctocell.xyz \
    --cc=47746@debbugs.gnu.org \
    --cc=rekado@elephly.net \
    /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 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.