Skip to content

Commit 2aadb27

Browse files
committed
Constrain click to <8.2 for typer 0.9.x compatibility
The Docker build runs `pip install -e .`, which ignores requirements.lock and resolves click >=8.2. typer 0.9.x is incompatible with click >=8.2 and raises "TypeError: Secondary flag is not valid for non-boolean flag" at CLI startup, so `docker compose up` fails on a fresh Docker install (CI is unaffected because `rye sync` uses the lockfile). Fixes #341 Fixes #348
1 parent fd34bda commit 2aadb27

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ dependencies = [
2222
"redis==4.5.4",
2323
"rich>=13.7.0",
2424
"typer>=0.9.0",
25+
# typer 0.9.x is incompatible with click >=8.2, which raises "Secondary flag
26+
# is not valid for non-boolean flag" at CLI startup. The lockfile already
27+
# resolves click 8.1.7, but `pip install -e .` (used by the Dockerfile) does
28+
# not, so constrain it here too. See #341, #348.
29+
"click>=8.1.7,<8.2",
2530
"uvicorn==0.21.1",
2631
"uvloop>=0.17.0",
2732
"xmltodict==0.13.0",

0 commit comments

Comments
 (0)