|
From: | Ludovic Courtès |
Subject: | Re: [PATCH 3/5] import: pypi: Compute test requirements when using wheels. |
Date: | Fri, 22 Jul 2016 23:28:42 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Cyril Roelandt <address@hidden> skribis: > * guix/import/pypi.scm (read-wheel-metadata): Read test requirements from the > metadata included in the wheel. > * guix/import/pypi.scm (guess-requirement-from-source): Return an empty list > for test requirements. > * guix/import/pypi.scm (compute-inputs): Return both the runtime requirements > and the test requirements. > * guix/import.pypi.scm (make-pypi-sexp): Compute native inputs. > * tests/pypi.scm ("pypi->guix-package, wheels"): Update accordingly. [...] > (requirements (if run_requires > (hash-ref (list-ref run_requires > 0) > "requires") > - '()))) > - (map (lambda (r) > - (python->package-name (clean-requirement r))) > - requirements))))) > + '())) > + (test-requirements (if test_requires > + (hash-ref (list-ref > test_requires 0) > + "requires") > + '()))) Maybe for a subsequent patch: these two occurrences could be written as (match test_requires ((head _ ...) (hash-ref head "requires")) (_ '())) LGTM, thanks! Ludo’.
[Prev in Thread] | Current Thread | [Next in Thread] |