Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f9366da
Remove setup.py develop code path
sbidoul Mar 8, 2025
cafa715
Remove legacy editable tests
sbidoul May 10, 2025
aed7024
Refactor get_created_direct_url test
sbidoul May 18, 2025
8add656
Rework PipTestResult for detection of modern editables
sbidoul May 18, 2025
50804ff
Update tests that were looking for egg-link files to detect editables
sbidoul May 10, 2025
85bb55a
Test there is no fallback when backend has no PEP 660
sbidoul Sep 27, 2025
3cc9e6b
Update uninstall tests that depend on legacy install methods
sbidoul Sep 27, 2025
4eda5e4
Update pip show test that depends on legacy install method
sbidoul Sep 27, 2025
674df32
Remove non PEP 517 code paths
sbidoul Sep 28, 2025
90fa35d
Remove --use-pep517 option test
sbidoul Sep 28, 2025
0dbd25e
Remove --no-use-pep517 test
sbidoul Sep 28, 2025
05e53ef
Update creation of test package that must fail building
sbidoul Sep 28, 2025
fe02d65
Run unit tests with no build isolation
sbidoul Sep 28, 2025
873a1c5
Remove tests that exercise --global-option
sbidoul Sep 28, 2025
017d5e6
Rework test that needed --global-option to use --config-setting
sbidoul Sep 28, 2025
0e07ba2
Test install pip without build isolation
sbidoul Sep 28, 2025
16b2601
Remove legacy 'setup.py clean' tests
sbidoul Sep 28, 2025
8fec3f0
Add --no-build-isolation to tests
sbidoul Sep 28, 2025
b3871c6
Add news
sbidoul Sep 27, 2025
6feecc2
Fix and expand PEP 660 detection
sbidoul Sep 28, 2025
893ab4b
Remove a few more obsolete pep517 things from the test suite
sbidoul Sep 29, 2025
5a17132
Docs: reflect removal of direct setup.py invocations
sbidoul Oct 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove --no-use-pep517 test
This option is gone.
  • Loading branch information
sbidoul committed Oct 21, 2025
commit 0dbd25e72bf613973e7ea53a91dd947b771909fb
24 changes: 0 additions & 24 deletions tests/functional/test_install_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
_create_test_package_with_subdirectory,
create_basic_sdist_for_package,
create_basic_wheel_for_package,
make_wheel,
need_svn,
requirements_file,
)
Expand Down Expand Up @@ -918,26 +917,3 @@ def test_config_settings_local_to_package(
assert "--verbose" not in simple3_args
simple2_args = simple2_sdist.args()
assert "--verbose" not in simple2_args


def test_nonpep517_setuptools_import_failure(script: PipTestEnvironment) -> None:
"""Any import failures of `setuptools` should inform the user both that it's
not pip's fault, but also exactly what went wrong in the import."""
# Install a poisoned version of 'setuptools' that fails to import.
name = "setuptools_poisoned"
module = """\
raise ImportError("this 'setuptools' was intentionally poisoned")
"""
path = make_wheel(name, "0.1.0", extra_files={"setuptools.py": module}).save_to_dir(
script.scratch_path
)
script.pip("install", "--no-index", path)

result = script.pip_install_local("--no-use-pep517", "simple", expect_error=True)
nice_message = (
"ERROR: Can not execute `setup.py`"
" since setuptools failed to import in the build environment"
)
exc_message = "ImportError: this 'setuptools' was intentionally poisoned"
assert nice_message in result.stderr
assert exc_message in result.stderr