Skip to content

Commit 71d1296

Browse files
chore(sdk) : Allow installation of newer python click versions Fixes #12361 (#12367)
Signed-off-by: Ravindu Weerakoon <[email protected]>
1 parent 716818b commit 71d1296

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

sdk/python/kfp/cli/component.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,13 @@ def build_image(self, platform: str, push_image: bool):
357357
f'Built and pushed component container {self._target_image}')
358358

359359

360-
@click.group()
361-
def component():
360+
@click.group(invoke_without_command=True)
361+
@click.pass_context
362+
def component(ctx: click.Context):
362363
"""Builds shareable, containerized components."""
364+
if ctx.invoked_subcommand is None:
365+
click.echo(ctx.get_help())
366+
ctx.exit(0)
363367

364368

365369
@component.command()

sdk/python/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# the following in this folder:
33
# pip-compile --no-emit-index-url requirements.in
44

5-
click==8.1.8
5+
click>=8.1.8
66
click-option-group==0.5.7
77
docstring-parser>=0.7.3,<1
88
# Pin google-api-core version for the bug fixing in 1.31.5

sdk/python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ certifi==2025.10.5
77
# requests
88
charset-normalizer==3.4.3
99
# via requests
10-
click==8.1.8
10+
click>=8.1.8
1111
# via
1212
# -r requirements.in
1313
# click-option-group

0 commit comments

Comments
 (0)