mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2025-01-26 22:56:15 +01:00
Remove deprecated option --print-deps-only
This commit is contained in:
parent
a223dc5e97
commit
bb79c6d405
@ -26,7 +26,7 @@ def tox_addoption(parser):
|
||||
action="store_true",
|
||||
dest="print_deps_only",
|
||||
default=False,
|
||||
help="Deprecated, equivalent to `--print-deps-to -`",
|
||||
help="Deprecated, equivalent to `--print-deps-to -`. Not available with tox 4.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--print-deps-to",
|
||||
|
@ -28,13 +28,6 @@ def tox_add_option(parser):
|
||||
default=False,
|
||||
help="Run tests in current environment, not creating any virtual environment",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--print-deps-only",
|
||||
action="store_true",
|
||||
dest="print_deps_only",
|
||||
default=False,
|
||||
help="Deprecated, equivalent to `--print-deps-to -`",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--print-deps-to",
|
||||
"--print-deps-to-file",
|
||||
@ -63,18 +56,6 @@ def tox_add_core_config(core_conf, config):
|
||||
config.options.default_runner = "current-env"
|
||||
return
|
||||
|
||||
if config.options.print_deps_only:
|
||||
warnings.warn(
|
||||
"--print-deps-only is deprecated; use `--print-deps-to -`",
|
||||
DeprecationWarning,
|
||||
)
|
||||
if not config.options.print_deps_to:
|
||||
config.options.print_deps_to = sys.stdout
|
||||
else:
|
||||
raise RuntimeError(
|
||||
"--print-deps-only cannot be used together " "with --print-deps-to"
|
||||
)
|
||||
|
||||
if getattr(config.options.print_deps_to, "name", object()) == getattr(
|
||||
config.options.print_extras_to, "name", object()
|
||||
):
|
||||
|
Loading…
Reference in New Issue
Block a user