import: pypi: Adjust test to new setuptools and wheel requirements.

This is a followup to c904350a81 and
d7890af335, which led to adding
‘setuptools’ and ‘wheel’ to ‘native-inputs’ in many (most?) cases.

* tests/pypi.scm ("pypi->guix-package, no wheel")
("pypi->guix-package, no requires.txt, but wheel.")
("pypi->guix-package, no usable requirement file, no wheel."): Add
‘python-setuptools’ and ‘python-wheel’ to the native inputs.
("package-latest-release"): Add ‘setuptools’ and ‘wheel’ to the expected
result.

Change-Id: I4d1001b0ad332836fe7d1d9ecd07d4adc32330af
This commit is contained in:
Ludovic Courtès 2024-12-30 10:48:41 +01:00
parent 4ebc1aba19
commit bdde278dc9
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -326,7 +326,9 @@ (define-syntax-rule (with-pypi responses body ...)
(base32 ,(? string? hash))))) (base32 ,(? string? hash)))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(propagated-inputs (list python-bar python-foo)) (propagated-inputs (list python-bar python-foo))
(native-inputs (list python-pytest)) (native-inputs (list python-pytest
python-setuptools
python-wheel))
(home-page "http://example.com") (home-page "http://example.com")
(synopsis "summary") (synopsis "summary")
(description "summary.") (description "summary.")
@ -444,7 +446,9 @@ (define-syntax-rule (with-pypi responses body ...)
(base32 ,(? string? hash))))) (base32 ,(? string? hash)))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(propagated-inputs (list python-bar python-baz)) (propagated-inputs (list python-bar python-baz))
(native-inputs (list python-pytest)) (native-inputs (list python-pytest
python-setuptools
python-wheel))
(home-page "http://example.com") (home-page "http://example.com")
(synopsis "summary") (synopsis "summary")
(description "summary.") (description "summary.")
@ -473,6 +477,7 @@ (define-syntax-rule (with-pypi responses body ...)
(sha256 (sha256
(base32 ,(? string? hash))))) (base32 ,(? string? hash)))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(native-inputs (list python-setuptools python-wheel))
(home-page "http://example.com") (home-page "http://example.com")
(synopsis "summary") (synopsis "summary")
(description "summary.") (description "summary.")
@ -502,7 +507,9 @@ (define-syntax-rule (with-pypi responses body ...)
(properties (quote (("upstream-name" . "foo-99")))) (properties (quote (("upstream-name" . "foo-99"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(propagated-inputs (list python-bar python-foo)) (propagated-inputs (list python-bar python-foo))
(native-inputs (list python-pytest)) (native-inputs (list python-pytest
python-setuptools
python-wheel))
(home-page "http://example.com") (home-page "http://example.com")
(synopsis "summary") (synopsis "summary")
(description "summary.") (description "summary.")
@ -525,6 +532,14 @@ (define-syntax-rule (with-pypi responses body ...)
(upstream-input (upstream-input
(name "pytest") (name "pytest")
(downstream-name "python-pytest") (downstream-name "python-pytest")
(type 'native))
(upstream-input
(name "setuptools")
(downstream-name "python-setuptools")
(type 'native))
(upstream-input
(name "wheel")
(downstream-name "python-wheel")
(type 'native)))) (type 'native))))
(let ((tarball (pypi-tarball (let ((tarball (pypi-tarball
"foo-1.0.0" "foo-1.0.0"