diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2024-06-01 17:36:33 +0200 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-02-07 12:28:37 +0100 |
| commit | 5e22e9b3aa26f6e62746c7d8c17c1c2786c11e93 (patch) | |
| tree | d89bd9b1c8081e64b283f62cffbbb042330d1635 /tests | |
| parent | 77e1781ffed490f07ceb190d9e0d174622fb9cf3 (diff) | |
import: pypi: Ignore pypi-ignored-inputs.
* guix/import/pypi.scm (pypi-ignored-inputs): New variable.
(compute-inputs): Use it.
* tests/pypi.scm (parse-requires.txt): Add ignored input to test the
feature.
* guix/lint.scm (check-inputs-should-be-native): Adapt list.
(check-inputs-should-not-be-an-input-at-all): Use pypi-ignored-list.
Change-Id: I297793b71f9ffdfbe7cc4e883777f8823941adf0
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/import/pypi.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/import/pypi.scm b/tests/import/pypi.scm index 59d0bfc2104..8da15edcd98 100644 --- a/tests/import/pypi.scm +++ b/tests/import/pypi.scm | |||
| @@ -97,6 +97,7 @@ bar != 2 | |||
| 97 | 97 | ||
| 98 | [test] | 98 | [test] |
| 99 | pytest (>=2.5.0) | 99 | pytest (>=2.5.0) |
| 100 | pytest-cov # read but ignored | ||
| 100 | ") | 101 | ") |
| 101 | 102 | ||
| 102 | ;; Beaker contains only optional dependencies. | 103 | ;; Beaker contains only optional dependencies. |
| @@ -258,7 +259,7 @@ files specified by SPECS. Return its file name." | |||
| 258 | (map specification->requirement-name test-specifications)) | 259 | (map specification->requirement-name test-specifications)) |
| 259 | 260 | ||
| 260 | (test-equal "parse-requires.txt" | 261 | (test-equal "parse-requires.txt" |
| 261 | (list '("foo" "bar") '("pytest")) | 262 | (list '("foo" "bar") '("pytest" "pytest-cov")) |
| 262 | (mock ((ice-9 ports) call-with-input-file | 263 | (mock ((ice-9 ports) call-with-input-file |
| 263 | call-with-input-string) | 264 | call-with-input-string) |
| 264 | (parse-requires.txt test-requires.txt))) | 265 | (parse-requires.txt test-requires.txt))) |
