mirror of
https://github.com/enpaul/tox-poetry-installer.git
synced 2024-10-29 19:47:00 +00:00
Remove deprecated --require-poetry runtime option
This commit is contained in:
parent
c06cdfe8c2
commit
0a46b2d876
@ -22,13 +22,6 @@ from tox_poetry_installer import utilities
|
|||||||
@impl
|
@impl
|
||||||
def tox_add_option(parser: ToxParser):
|
def tox_add_option(parser: ToxParser):
|
||||||
"""Add additional command line arguments to tox to configure plugin behavior"""
|
"""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(
|
parser.add_argument(
|
||||||
"--parallel-install-threads",
|
"--parallel-install-threads",
|
||||||
type=int,
|
type=int,
|
||||||
|
@ -37,13 +37,6 @@ def check_preconditions(venv: ToxVirtualEnv) -> "_poetry.Poetry":
|
|||||||
if isinstance(venv, PackageToxEnv):
|
if isinstance(venv, PackageToxEnv):
|
||||||
raise exceptions.SkipEnvironment(f"Skipping Tox provisioning env '{venv.name}'")
|
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
|
from tox_poetry_installer import _poetry
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user