guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

09/11: import: pypi: Refresher recognizes pythonhosted.org source URLs.


From: guix-commits
Subject: 09/11: import: pypi: Refresher recognizes pythonhosted.org source URLs.
Date: Wed, 18 Sep 2019 17:10:38 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 45fbc15a48d04cf9deaa5d40658846426cc94845
Author: Ludovic Courtès <address@hidden>
Date:   Wed Sep 18 22:53:17 2019 +0200

    import: pypi: Refresher recognizes pythonhosted.org source URLs.
    
    This is a followup to a5376200541abf8245973e601be246bf65b8b6c7.
    Since that commit, 'pypi-package?' would return false for most Python
    packages, and thus "guix refresh python-xxx" would report that no
    updaters apply to the package.
    
    * guix/import/pypi.scm (pypi-package?)[pypi-url?]: Recognize
    "files.pythonhosted.org" URLs.
---
 guix/import/pypi.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index 9b3d80a..354cae9 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -437,7 +437,8 @@ VERSION, SOURCE-URL, HOME-PAGE, SYNOPSIS, DESCRIPTION, and 
LICENSE."
   (define (pypi-url? url)
     (or (string-prefix? "https://pypi.org/"; url)
         (string-prefix? "https://pypi.python.org/"; url)
-        (string-prefix? "https://pypi.org/packages"; url)))
+        (string-prefix? "https://pypi.org/packages"; url)
+        (string-prefix? "https://files.pythonhosted.org/packages"; url)))
 
   (let ((source-url (and=> (package-source package) origin-uri))
         (fetch-method (and=> (package-source package) origin-method)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]