1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Remove the opt-in for 2020-resolver

This has been the default for quite some time now.
This commit is contained in:
Pradyun Gedam 2022-10-07 11:56:34 +01:00
parent fe78726b36
commit 6421ab59d5
No known key found for this signature in database
GPG key ID: FF99710C4332258E
3 changed files with 10 additions and 10 deletions

View file

@ -151,13 +151,6 @@ class Command(CommandContextMixIn):
)
options.cache_dir = None
if "2020-resolver" in options.features_enabled:
logger.warning(
"--use-feature=2020-resolver no longer has any effect, "
"since it is now the default dependency resolver in pip. "
"This will become an error in pip 21.0."
)
def intercepts_unhandled_exc(
run_func: Callable[..., int]
) -> Callable[..., int]:

View file

@ -983,7 +983,6 @@ use_new_feature: Callable[..., Option] = partial(
action="append",
default=[],
choices=[
"2020-resolver",
"fast-deps",
"truststore",
"no-binary-enable-wheel-cache",

View file

@ -459,8 +459,16 @@ class TestProcessLine:
self, line_processor: LineProcessor, options: mock.Mock
) -> None:
"""--use-feature can be set in requirements files."""
line_processor("--use-feature=2020-resolver", "filename", 1, options=options)
assert "2020-resolver" in options.features_enabled
line_processor("--use-feature=fast-deps", "filename", 1, options=options)
def test_use_feature_with_error(
self, line_processor: LineProcessor, options: mock.Mock
) -> None:
"""--use-feature triggers error when parsing requirements files."""
with pytest.raises(RequirementsFileParseError):
line_processor(
"--use-feature=2020-resolver", "filename", 1, options=options
)
def test_relative_local_find_links(
self,