Skip to content

Commit

Permalink
Raise mesop typer error for python versions below 3.10 (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl committed Sep 16, 2024
1 parent c8ffc72 commit 5413cc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.10"
- name: Set $PY environment variable
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
Expand Down
4 changes: 2 additions & 2 deletions fastagency/ui/mesop/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

import typer

if sys.version_info < (3, 11):
typer.echo("Error: Mesop requires Python 3.11 or higher", err=True)
if sys.version_info < (3, 10):
typer.echo("Error: Mesop requires Python 3.10 or higher", err=True)
raise typer.Exit(code=1)

from mesop.bin.bin import FLAGS as MESOP_FLAGS
Expand Down

0 comments on commit 5413cc3

Please sign in to comment.