From 4fde361ab8ed1be6f44b9ee4135d5fd6c349ef45 Mon Sep 17 00:00:00 2001 From: gaspardBT Date: Wed, 19 Mar 2025 09:59:41 +0100 Subject: [PATCH 1/2] add back support for 3.8 --- .github/workflows/run_example_scripts.yaml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_example_scripts.yaml b/.github/workflows/run_example_scripts.yaml index b3cc08ac..0031015b 100644 --- a/.github/workflows/run_example_scripts.yaml +++ b/.github/workflows/run_example_scripts.yaml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - name: Checkout code diff --git a/pyproject.toml b/pyproject.toml index 8edc7537..b1e3d88e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ version = "1.5.2-rc.1" description = "Python Client SDK for the Mistral AI API." authors = [{ name = "Mistral" },] readme = "README-PYPI.md" -requires-python = ">=3.9" +requires-python = ">=3.8" dependencies = [ "eval-type-backport >=0.2.0", "httpx >=0.28.1", From 73f1a4b720e3aea483b9e4519ffcd54c35562428 Mon Sep 17 00:00:00 2001 From: gaspardBT Date: Wed, 19 Mar 2025 10:15:57 +0100 Subject: [PATCH 2/2] test update ci for 3.8 --- .github/workflows/run_example_scripts.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run_example_scripts.yaml b/.github/workflows/run_example_scripts.yaml index 0031015b..40abfa05 100644 --- a/.github/workflows/run_example_scripts.yaml +++ b/.github/workflows/run_example_scripts.yaml @@ -20,19 +20,26 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python 3.12 uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 with: - python-version: ${{ matrix.python-version }} + python-version: 3.12 - name: Install Poetry uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1 - - name: Build and install client + - name: Build the client with 3.12 run: | touch README-PYPI.md # Create this file since the client is not built from Speakeasy poetry build - python3 -m pip install dist/mistralai-*.whl + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 + with: + python-version: ${{ matrix.python-version }} + + - name: Install the client with ${{ matrix.python-version }} + run: python3 -m pip install dist/mistralai-*.whl - name: Set VERSION run: |