Skip to content

Commit 3cf69ea

Browse files
committed
Increase default max_rounds
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 960b416 commit 3cf69ea

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/python_inspector/resolution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def get_resolved_dependencies(
313313
environment: utils_pypi.Environment = None,
314314
repos: Sequence[utils_pypi.PypiSimpleRepository] = tuple(),
315315
as_tree: bool = False,
316-
max_rounds: int = 100,
316+
max_rounds: int = 200000,
317317
):
318318
"""
319319
Return resolved dependencies of a ``requirements`` list of Requirement for

src/python_inspector/resolve_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"--max-rounds",
106106
"max_rounds",
107107
type=int,
108-
default=100,
108+
default=200000,
109109
help="Increase the max rounds whenever the resolution is too deep",
110110
)
111111
@click.option(
@@ -265,7 +265,7 @@ def resolve_dependencies(
265265
click.secho("done!")
266266

267267

268-
def resolve(direct_dependencies, environment, repos=tuple(), as_tree=False, max_rounds=100):
268+
def resolve(direct_dependencies, environment, repos=tuple(), as_tree=False, max_rounds=200000):
269269
"""
270270
Resolve dependencies given a ``direct_dependencies`` list of
271271
DependentPackage and return a tuple of (initial_requirements,

0 commit comments

Comments
 (0)