Deprecate --skip-requirements-regex

This commit is contained in:
Chris Hunt 2019-11-04 18:00:42 -05:00
parent 7f8be22584
commit a47fef71c2
2 changed files with 12 additions and 0 deletions

1
news/7297.removal Normal file
View File

@ -0,0 +1 @@
Deprecate undocumented ``--skip-requirements-regex`` option.

View File

@ -131,6 +131,17 @@ class Command(CommandContextMixIn):
) + message
deprecated(message, replacement=None, gone_in=None)
if options.skip_requirements_regex:
deprecated(
"--skip-requirements-regex is unsupported and will be removed",
replacement=(
"manage requirements/constraints files explicitly, "
"possibly generating them from metadata"
),
gone_in="20.1",
issue=7297,
)
# TODO: Try to get these passing down from the command?
# without resorting to os.environ to hold these.
# This also affects isolated builds and it should.