Remove deprecated --require-poetry runtime option

This commit is contained in:
Ethan Paul 2024-08-13 12:48:58 -04:00
parent c06cdfe8c2
commit 0a46b2d876
Signed by: enpaul
GPG Key ID: 07F53B438281D181
2 changed files with 0 additions and 14 deletions

View File

@ -22,13 +22,6 @@ from tox_poetry_installer import utilities
@impl
def tox_add_option(parser: ToxParser):
"""Add additional command line arguments to tox to configure plugin behavior"""
parser.add_argument(
"--require-poetry",
action="store_true",
dest="require_poetry",
help="(deprecated) Trigger a failure if Poetry is not available to Tox",
)
parser.add_argument(
"--parallel-install-threads",
type=int,

View File

@ -37,13 +37,6 @@ def check_preconditions(venv: ToxVirtualEnv) -> "_poetry.Poetry":
if isinstance(venv, PackageToxEnv):
raise exceptions.SkipEnvironment(f"Skipping Tox provisioning env '{venv.name}'")
if venv.options.require_poetry:
logger.warning(
"DEPRECATION: The '--require-poetry' runtime option is deprecated and will be "
"removed in version 1.0.0. Please update test environments that require Poetry to "
"set the 'require_poetry = true' option in tox.ini"
)
from tox_poetry_installer import _poetry
try: