From 12034c68e2f0bf799e0c3d8304479bcd346120c2 Mon Sep 17 00:00:00 2001 From: Kumaran Rajendhiran Date: Fri, 13 Sep 2024 11:25:58 +0000 Subject: [PATCH 1/3] Raise error when trying to import mesop below py3.11 --- fastagency/ui/mesop/base.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fastagency/ui/mesop/base.py b/fastagency/ui/mesop/base.py index d412c2dd..d7fecbe6 100644 --- a/fastagency/ui/mesop/base.py +++ b/fastagency/ui/mesop/base.py @@ -1,3 +1,4 @@ +import sys import threading from collections.abc import Generator, Iterator from contextlib import contextmanager @@ -8,6 +9,12 @@ from typing import ClassVar, Optional from uuid import uuid4 +import typer + +if sys.version_info < (3, 11): + typer.echo("Error: Mesop requires Python 3.11 or higher", err=True) + raise typer.Exit(code=1) + from mesop.bin.bin import FLAGS as MESOP_FLAGS from mesop.bin.bin import main as mesop_main From bbc4c939ffe5637b5ef21d700d9c0d181fcaee95 Mon Sep 17 00:00:00 2001 From: Kumaran Rajendhiran Date: Fri, 13 Sep 2024 11:27:12 +0000 Subject: [PATCH 2/3] Update rc version --- fastagency/__about__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastagency/__about__.py b/fastagency/__about__.py index a7d61f4d..67a51570 100644 --- a/fastagency/__about__.py +++ b/fastagency/__about__.py @@ -1,3 +1,3 @@ """The fastest way to bring multi-agent workflows to production.""" -__version__ = "0.1.0rc0" +__version__ = "0.1.0rc1" From 85e2092adcb42fc0d290047e6b25afbc287e0677 Mon Sep 17 00:00:00 2001 From: Kumaran Rajendhiran Date: Fri, 13 Sep 2024 11:31:08 +0000 Subject: [PATCH 3/3] Use python version 3.11 in pre-commit CI --- .github/workflows/pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index 236c04d0..25c5fb68 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -204,7 +204,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" - name: Set $PY environment variable run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV - uses: actions/cache@v4