[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/12: import: pypi: Use "pypi-uri" instead of building the URL manually
From: |
Cyril Roelandt |
Subject: |
02/12: import: pypi: Use "pypi-uri" instead of building the URL manually. |
Date: |
Tue, 03 Nov 2015 20:39:25 +0000 |
steap pushed a commit to branch master
in repository guix.
commit d8bdd38201328b95d849dc95073f842db6eb3b8d
Author: Cyril Roelandt <address@hidden>
Date: Mon Oct 12 01:03:25 2015 +0200
import: pypi: Use "pypi-uri" instead of building the URL manually.
* guix/import/pypi.scm (make-pypi-sexp): Use "pypi-uri".
* tests/pypi.scm: Update the tests accordingly.
---
guix/import/pypi.scm | 2 +-
tests/pypi.scm | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index d04a685..647ef61 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -165,7 +165,7 @@ VERSION, SOURCE-URL, HOME-PAGE, SYNOPSIS, DESCRIPTION, and
LICENSE."
(version ,version)
(source (origin
(method url-fetch)
- (uri (string-append ,@(factorize-uri source-url
version)))
+ (uri (pypi-uri ,name version))
(sha256
(base32
,(guix-hash-url temp)))))
diff --git a/tests/pypi.scm b/tests/pypi.scm
index c772474..960b8cd 100644
--- a/tests/pypi.scm
+++ b/tests/pypi.scm
@@ -84,8 +84,7 @@ baz > 13.37")
('version "1.0.0")
('source ('origin
('method 'url-fetch)
- ('uri ('string-append "https://example.com/foo-"
- 'version ".tar.gz"))
+ ('uri (pypi-uri "foo" version))
('sha256
('base32
(? string? hash)))))
- branch master updated (f8ae32a -> 465b61f), Cyril Roelandt, 2015/11/03
- 04/12: gnu: Add python-mccabe 0.2.1, Cyril Roelandt, 2015/11/03
- 05/12: gnu: Add python-flake8-2.2.4, Cyril Roelandt, 2015/11/03
- 01/12: guix: Add a "pypi-uri" helper method., Cyril Roelandt, 2015/11/03
- 02/12: import: pypi: Use "pypi-uri" instead of building the URL manually.,
Cyril Roelandt <=
- 03/12: gnu: Update python-requests., Cyril Roelandt, 2015/11/03
- 06/12: gnu: Add python-hacking., Cyril Roelandt, 2015/11/03
- 07/12: gnu: Add python-oslosphinx., Cyril Roelandt, 2015/11/03
- 08/12: gnu: Add python-os-testr., Cyril Roelandt, 2015/11/03
- 09/12: gnu: paramiko: Move python-pycrypto to the propagated inputs., Cyril Roelandt, 2015/11/03
- 10/12: gnu: Add python-oslo.log., Cyril Roelandt, 2015/11/03
- 12/12: gnu: Add python-tempest-lib., Cyril Roelandt, 2015/11/03
- 11/12: gnu: python-oslotest: move mox3 to the propagated-inputs, Cyril Roelandt, 2015/11/03