diff --git a/tox_poetry_installer/hooks.py b/tox_poetry_installer/hooks.py index 172178d..312d97a 100644 --- a/tox_poetry_installer/hooks.py +++ b/tox_poetry_installer/hooks.py @@ -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, diff --git a/tox_poetry_installer/utilities.py b/tox_poetry_installer/utilities.py index dce3656..0c0221d 100644 --- a/tox_poetry_installer/utilities.py +++ b/tox_poetry_installer/utilities.py @@ -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: