Skip to content

Commit 7028033

Browse files
committed
build: click dependency 3.9/>3.9
1 parent 4eb48ac commit 7028033

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.github/workflows/build-darwin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: macos-14
1313
strategy:
1414
matrix:
15-
python_version: ["3.9", "3.10", "3.11", "3.12"]
15+
python_version: ["3.10", "3.11", "3.12"]
1616
steps:
1717
- name: "Set up Python ${{ matrix.python_version }}"
1818
uses: actions/setup-python@v5

.github/workflows/build-linux.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
21+
python_version: ["3.10", "3.11", "3.12", "3.13"]
2222
steps:
2323
- name: "Set up Python ${{ matrix.python_version }}"
2424
uses: actions/setup-python@v5

.github/workflows/build-windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: windows-latest
1010
strategy:
1111
matrix:
12-
python_version: ["3.9", "3.10", "3.11", "3.12"]
12+
python_version: ["3.10", "3.11", "3.12"]
1313
steps:
1414
- name: "Set up Python ${{ matrix.python_version }}"
1515
uses: actions/setup-python@v5

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ dependencies = [
5858
"appdirs>=1.4.4,<2.0.0",
5959
"bidict>=0.21.0",
6060
"boltons>=21.0.0",
61-
"click>=8.2.1",
61+
"click>=8.1.0.",
6262
"dag-cbor>=0.3.3,<0.4.0",
6363
"deepdiff>=6.0.0,<7.0.0",
6464
"distro>=1.6.0",

src/kiara/utils/cli/rich_click.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,11 @@ def rich_format_operation_help(
262262

263263
# Column for a metavar, if we have one
264264
metavar = Text(style=STYLE_METAVAR, overflow="fold")
265-
metavar_str = param.make_metavar(ctx=ctx)
265+
try:
266+
metavar_str = param.make_metavar(ctx=ctx)
267+
except Exception:
268+
# for Python 3.9
269+
metavar_str = param.make_metavar()
266270

267271
# Do it ourselves if this is a positional argument
268272
if type(param) is click.core.Argument and metavar_str == param.name.upper(): # type: ignore

0 commit comments

Comments
 (0)