[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/07: lint: Adjust ‘check-inputs-should-not-be-an-input-at-all’ tests f
From: |
guix-commits |
Subject: |
01/07: lint: Adjust ‘check-inputs-should-not-be-an-input-at-all’ tests for Python. |
Date: |
Fri, 24 Jan 2025 18:06:08 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 3e626bb39d2a073d715ea89e91aa5981712d33bb
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Jan 24 15:45:34 2025 +0100
lint: Adjust ‘check-inputs-should-not-be-an-input-at-all’ tests for Python.
This is a followup to bea2914b3d1b06cc8cc1d9cff88c0dd7d8ebb1be, which
removed ‘python-setuptools’ from the list of “unauthorized” inputs.
* tests/lint.scm ("inputs: python-pip should not be an input at all
(input)")
("inputs: python-pip should not be an input at all (native-input)")
("inputs: python-pip should not be an input at all (propagated-input)"):
New tests, with s/python-setuptools/python-pip/.
Change-Id: Ic575825da5c64052d3d573b37b458bd61547bae1
---
tests/lint.scm | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/tests/lint.scm b/tests/lint.scm
index 3e9dbd29db..71476f5ae2 100644
--- a/tests/lint.scm
+++ b/tests/lint.scm
@@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013 Cyril Roelandt <tipecaml@gmail.com>
;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org>
-;;; Copyright © 2014-2024 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2014-2025 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2017 Alex Kost <alezost@gmail.com>
@@ -448,31 +448,29 @@
(check-inputs-should-be-native pkg))))
(test-equal
- "inputs: python-setuptools should not be an input at all (input)"
- "'python-setuptools' should probably not be an input at all"
+ "inputs: python-pip should not be an input at all (input)"
+ "'python-pip' should probably not be an input at all"
(single-lint-warning-message
(let ((pkg (dummy-package "x"
- (inputs `(("python-setuptools"
- ,python-setuptools))))))
+ (inputs `(("python-pip" ,python-pip))))))
(check-inputs-should-not-be-an-input-at-all pkg))))
(test-equal
- "inputs: python-setuptools should not be an input at all (native-input)"
- "'python-setuptools' should probably not be an input at all"
+ "inputs: python-pip should not be an input at all (native-input)"
+ "'python-pip' should probably not be an input at all"
(single-lint-warning-message
(let ((pkg (dummy-package "x"
(native-inputs
- `(("python-setuptools"
- ,python-setuptools))))))
+ `(("python-pip" ,python-pip))))))
(check-inputs-should-not-be-an-input-at-all pkg))))
(test-equal
- "inputs: python-setuptools should not be an input at all
(propagated-input)"
- "'python-setuptools' should probably not be an input at all"
+ "inputs: python-pip should not be an input at all (propagated-input)"
+ "'python-pip' should probably not be an input at all"
(single-lint-warning-message
(let ((pkg (dummy-package "x"
(propagated-inputs
- `(("python-setuptools" ,python-setuptools))))))
+ `(("python-pip" ,python-pip))))))
(check-inputs-should-not-be-an-input-at-all pkg))))
(test-assert "input labels: no warnings"
- branch master updated (ea7a6fa8c6 -> 646202bf73), guix-commits, 2025/01/24
- 02/07: upstream: ‘package-archive-type’ doesn’t choke on lack of extension., guix-commits, 2025/01/24
- 03/07: gnu: linux-libre: Remove duplicate “linux-libre-arm64-generic@6.12” package., guix-commits, 2025/01/24
- 05/07: tests: pack: Improve AppImage tests., guix-commits, 2025/01/24
- 04/07: pack: Support localstatedir in AppImage format., guix-commits, 2025/01/24
- 07/07: docker: Build tarballs reproducibly., guix-commits, 2025/01/24
- 06/07: services: restic-backup: Implement as a Shepherd timer., guix-commits, 2025/01/24
- 01/07: lint: Adjust ‘check-inputs-should-not-be-an-input-at-all’ tests for Python.,
guix-commits <=