-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[24.1] The test suite no longer works offline #12786
Labels
type: bug
A confirmed bug or unintended behavior
type: maintenance
Related to Development and Maintenance Processes
Comments
mgorny
added
S: needs triage
Issues/PRs that need to be triaged
type: bug
A confirmed bug or unintended behavior
labels
Jun 22, 2024
FWICS, this could be resolved by adding diff --git a/tests/conftest.py b/tests/conftest.py
index 35101cef2..5934e9f95 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -395,6 +395,7 @@ def pip_editable_parts(
"-m",
"pip",
"install",
+ "--no-build-isolation",
"--target",
pip_self_install_path,
"-e", Does this look like an acceptable solution? |
ichard26
added
type: maintenance
Related to Development and Maintenance Processes
and removed
S: needs triage
Issues/PRs that need to be triaged
labels
Jun 22, 2024
As pip's build dependencies (setuptools and wheel) are included in |
mgorny
added a commit
to mgorny/pip
that referenced
this issue
Jun 22, 2024
Add `--no-build-isolation` to the pip invocation in `pip_editable_parts` fixture and a few tests, to avoid downloading `setuptools` wheel from PyPI. This change makes it possible again to run the vast majority of pip tests (with the exception of 3 tests) offline. Fixes pypa#12786.
mgorny
added a commit
to mgorny/pip
that referenced
this issue
Jun 22, 2024
Add `--no-build-isolation` to the pip invocation in `pip_editable_parts` fixture and a few tests, to avoid downloading `setuptools` wheel from PyPI. This change makes it possible again to run the vast majority of pip tests (with the exception of 3 tests) offline. Fixes pypa#12786.
pradyunsg
changed the title
In 24.1, the test suite no longer works offline
[24.1] The test suite no longer works offline
Jun 25, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
type: bug
A confirmed bug or unintended behavior
type: maintenance
Related to Development and Maintenance Processes
Description
Up to 24.0, it was possible to run most of the test suite without Internet access, with only a handful of tests failing. However, in 24.1 a large number of tests (776, to be precise) are throwing errors when run in an environment without Internet access.
FWICS the problem stems from
pip_editable_parts
fixture that attempts to fetch and installsetuptools
:Expected behavior
(Most of the) tests working offline again.
pip version
24.1
Python version
3.11.9, 3.12.4
OS
Gentoo Linux amd64
How to Reproduce
unshare -n
).pytest
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: