mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Merge pull request #9133 from NoahGorny/drop-unstable-feature-flag
cli: Drop --unstable-feature flag
This commit is contained in:
commit
7aef258b28
1
news/9133.removal.rst
Normal file
1
news/9133.removal.rst
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Remove --unstable-feature flag as it has been deprecated.
|
|
@ -199,13 +199,6 @@ class Command(CommandContextMixIn):
|
||||||
)
|
)
|
||||||
options.cache_dir = None
|
options.cache_dir = None
|
||||||
|
|
||||||
if 'resolver' in options.unstable_features:
|
|
||||||
logger.critical(
|
|
||||||
"--unstable-feature=resolver is no longer supported, and "
|
|
||||||
"has been replaced with --use-feature=2020-resolver instead."
|
|
||||||
)
|
|
||||||
sys.exit(ERROR)
|
|
||||||
|
|
||||||
if '2020-resolver' in options.features_enabled and not PY2:
|
if '2020-resolver' in options.features_enabled and not PY2:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
"--use-feature=2020-resolver no longer has any effect, "
|
"--use-feature=2020-resolver no longer has any effect, "
|
||||||
|
|
|
@ -895,17 +895,6 @@ no_python_version_warning = partial(
|
||||||
) # type: Callable[..., Option]
|
) # type: Callable[..., Option]
|
||||||
|
|
||||||
|
|
||||||
unstable_feature = partial(
|
|
||||||
Option,
|
|
||||||
'--unstable-feature',
|
|
||||||
dest='unstable_features',
|
|
||||||
metavar='feature',
|
|
||||||
action='append',
|
|
||||||
default=[],
|
|
||||||
choices=['resolver'],
|
|
||||||
help=SUPPRESS_HELP, # TODO: drop this in pip 20.3
|
|
||||||
) # type: Callable[..., Option]
|
|
||||||
|
|
||||||
use_new_feature = partial(
|
use_new_feature = partial(
|
||||||
Option,
|
Option,
|
||||||
'--use-feature',
|
'--use-feature',
|
||||||
|
@ -958,7 +947,6 @@ general_group = {
|
||||||
disable_pip_version_check,
|
disable_pip_version_check,
|
||||||
no_color,
|
no_color,
|
||||||
no_python_version_warning,
|
no_python_version_warning,
|
||||||
unstable_feature,
|
|
||||||
use_new_feature,
|
use_new_feature,
|
||||||
use_deprecated_feature,
|
use_deprecated_feature,
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue