guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: Use pypi.org.


From: Leo Famulari
Subject: 01/01: gnu: Use pypi.org.
Date: Thu, 18 Oct 2018 23:46:51 -0400 (EDT)

lfam pushed a commit to branch master
in repository guix.

commit 7277d06d8b956263ef1773c5f61e53dc65583ddd
Author: Leo Famulari <address@hidden>
Date:   Fri Oct 12 23:47:15 2018 -0400

    gnu: Use pypi.org.
    
    <pypi.io> redirects to <pypi.org>.
    
    * guix/build-system/python.scm (pypi-uri): Replace pypi.io with pypi.org.
    * guix/import/pypi.scm (pypi-url?): Likewise.
    * tests/pypi.scm: Likewise.
---
 guix/build-system/python.scm | 2 +-
 guix/import/pypi.scm         | 2 +-
 tests/pypi.scm               | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/guix/build-system/python.scm b/guix/build-system/python.scm
index ffed837..b753940 100644
--- a/guix/build-system/python.scm
+++ b/guix/build-system/python.scm
@@ -50,7 +50,7 @@
   "Return a URI string for the Python package hosted on the Python Package
 Index (PyPI) corresponding to NAME and VERSION.  EXTENSION is the file name
 extension, such as '.tar.gz'."
-  (string-append "https://pypi.io/packages/source/";
+  (string-append "https://pypi.org/packages/source/";
                  (string-take name 1) "/" name "/"
                  name "-" version extension))
 
diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index 87b047b..3a20fc4 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -330,7 +330,7 @@ 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.io/packages"; url)))
+        (string-prefix? "https://pypi.org/packages"; url)))
 
   (let ((source-url (and=> (package-source package) origin-uri))
         (fetch-method (and=> (package-source package) origin-method)))
diff --git a/tests/pypi.scm b/tests/pypi.scm
index 616ec19..6daa44a 100644
--- a/tests/pypi.scm
+++ b/tests/pypi.scm
@@ -81,7 +81,7 @@ baz > 13.37")
    (dummy-package "foo"
                   (source (dummy-origin
                            (uri
-                            
"https://pypi.io/packages/source/p/psutil/psutil-4.3.0.tar.gz";))))))
+                            
"https://pypi.org/packages/source/p/psutil/psutil-4.3.0.tar.gz";))))))
 
 (test-equal "guix-package->pypi-name, new URL style"
   "certbot"



reply via email to

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