mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2025-11-24 19:28:57 +01:00
Remove deprecated option --print-deps-only
This commit is contained in:
@@ -26,7 +26,7 @@ def tox_addoption(parser):
|
|||||||
action="store_true",
|
action="store_true",
|
||||||
dest="print_deps_only",
|
dest="print_deps_only",
|
||||||
default=False,
|
default=False,
|
||||||
help="Deprecated, equivalent to `--print-deps-to -`",
|
help="Deprecated, equivalent to `--print-deps-to -`. Not available with tox 4.",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--print-deps-to",
|
"--print-deps-to",
|
||||||
|
|||||||
@@ -28,13 +28,6 @@ def tox_add_option(parser):
|
|||||||
default=False,
|
default=False,
|
||||||
help="Run tests in current environment, not creating any virtual environment",
|
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(
|
parser.add_argument(
|
||||||
"--print-deps-to",
|
"--print-deps-to",
|
||||||
"--print-deps-to-file",
|
"--print-deps-to-file",
|
||||||
@@ -63,18 +56,6 @@ def tox_add_core_config(core_conf, config):
|
|||||||
config.options.default_runner = "current-env"
|
config.options.default_runner = "current-env"
|
||||||
return
|
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(
|
if getattr(config.options.print_deps_to, "name", object()) == getattr(
|
||||||
config.options.print_extras_to, "name", object()
|
config.options.print_extras_to, "name", object()
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user