diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2019-03-28 23:12:26 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2019-07-02 10:08:00 +0900 |
commit | d514276b93ccf168438bbd2892fbc64d5661106c (patch) | |
tree | f58d2b3315efdb0ecc5c7b4717cb2a2e331b064a /tests/guix-package-net.sh | |
parent | f801c6215d8d5b2b21926d8cc41c0beb1f734108 (diff) | |
download | guix-d514276b93ccf168438bbd2892fbc64d5661106c.tar guix-d514276b93ccf168438bbd2892fbc64d5661106c.tar.gz |
import: pypi: Include optional test inputs as native-inputs.
* guix/import/pypi.scm (maybe-inputs): Add INPUT-TYPE argument, and use it.
(test-section?): New predicate.
(parse-requires.txt): Collect the optional test inputs, and return them as the
second element of the returned list.
(parse-wheel-metadata): Likewise.
(guess-requirements): Adapt.
(make-pypi-sexp): Likewise, and include the test inputs requirements as native
inputs in the returned package expression.
* tests/pypi.scm (test-requires.txt): Include a test section in the
test-requires.txt data.
(test-requires.txt-beaker): New variable.
("parse-requires.txt"): Adapt.
("parse-requires.txt - Beaker"): New test.
("parse-wheel-metadata, with extras"): Adapt.
("parse-wheel-metadata, with extras - Jedi"): Adapt.
("pypi->guix-package, no wheel"): Re-indent, and add the expected
native-inputs.
("pypi->guix-package, wheels"): Likewise.
Diffstat (limited to 'tests/guix-package-net.sh')
0 files changed, 0 insertions, 0 deletions