Skip to content

Commit 0c3e4c8

Browse files
committed
chore: drop support for EOL python 3.9
1 parent 80eb538 commit 0c3e4c8

File tree

21 files changed

+214
-345
lines changed

21 files changed

+214
-345
lines changed

.github/workflows/run_example_scripts.yaml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
17+
python-version: ['3.10', '3.11', '3.12', '3.13']
1818

1919
steps:
2020
- name: Checkout code
@@ -42,18 +42,7 @@ jobs:
4242
touch README-PYPI.md # Create this file since the client is not built by Speakeasy
4343
uv build
4444
45-
- name: For python 3.9, install the client and run examples without extra dependencies.
46-
if: matrix.python-version == '3.9'
47-
run: |
48-
PACKAGE="dist/$(ls dist | grep whl | head -n 1)"
49-
uv pip install --system "$PACKAGE"
50-
./scripts/run_examples.sh --no-extra-dep
51-
env:
52-
MISTRAL_AGENT_ID: ${{ secrets.CI_AGENT_ID }}
53-
MISTRAL_API_KEY: ${{ env.MISTRAL_API_KEY }}
54-
55-
- name: For python 3.10+, install client with extras and run all examples.
56-
if: matrix.python-version != '3.9'
45+
- name: Install client with extras and run all examples.
5746
run: |
5847
PACKAGE="dist/$(ls dist | grep whl | head -n 1)[agents]"
5948
uv pip install --system "$PACKAGE"

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ It's also possible to write a standalone Python script without needing to set up
8989
```python
9090
#!/usr/bin/env -S uv run --script
9191
# /// script
92-
# requires-python = ">=3.9"
92+
# requires-python = ">=3.10"
9393
# dependencies = [
9494
# "mistralai",
9595
# ]
@@ -117,8 +117,7 @@ installing the package:
117117
pip install "mistralai[agents]"
118118
```
119119

120-
> Note: Because of some of our dependencies, these features are only available for python version higher or equal to
121-
> 3.10.
120+
> Note: These features require Python 3.10+ (the SDK minimum).
122121
123122
<!-- Start SDK Example Usage [usage] -->
124123
## SDK Example Usage

packages/mistralai_azure/pylintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ persistent=yes
8989

9090
# Minimum Python version to use for version dependent checks. Will default to
9191
# the version used to run pylint.
92-
py-version=3.9
92+
py-version=3.10
9393

9494
# Discover python modules and packages in the file system subtree.
9595
recursive=no
@@ -660,4 +660,4 @@ init-import=no
660660

661661
# List of qualified module names which can have objects that can redefine
662662
# builtins.
663-
redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
663+
redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io

packages/mistralai_azure/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "mistralai_azure"
33
version = "1.6.0"
44
description = "Python Client SDK for the Mistral AI API in Azure."
55
authors = [{ name = "Mistral" }]
6-
requires-python = ">=3.9.2"
6+
requires-python = ">=3.10"
77
readme = "README.md"
88
dependencies = [
99
"httpcore >=1.0.9",
@@ -63,4 +63,3 @@ ignore_missing_imports = true
6363
venvPath = "."
6464
venv = ".venv"
6565

66-

packages/mistralai_azure/uv.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mistralai_gcp/pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ persistent=yes
8989

9090
# Minimum Python version to use for version dependent checks. Will default to
9191
# the version used to run pylint.
92-
py-version=3.9
92+
py-version=3.10
9393

9494
# Discover python modules and packages in the file system subtree.
9595
recursive=no

packages/mistralai_gcp/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "mistralai-gcp"
33
version = "1.6.0"
44
description = "Python Client SDK for the Mistral AI API in GCP."
55
authors = [{ name = "Mistral" }]
6-
requires-python = ">=3.9"
6+
requires-python = ">=3.10"
77
readme = "README-PYPI.md"
88
dependencies = [
99
"eval-type-backport >=0.2.0",
@@ -66,4 +66,3 @@ ignore_missing_imports = true
6666
venvPath = "."
6767
venv = ".venv"
6868

69-

packages/mistralai_gcp/uv.lock

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ persistent=yes
9090

9191
# Minimum Python version to use for version dependent checks. Will default to
9292
# the version used to run pylint.
93-
py-version=3.9
93+
py-version=3.10
9494

9595
# Discover python modules and packages in the file system subtree.
9696
recursive=no

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "mistralai"
33
version = "1.10.0"
44
description = "Python Client SDK for the Mistral AI API."
55
authors = [{ name = "Mistral" }]
6-
requires-python = ">=3.9"
6+
requires-python = ">=3.10"
77
readme = "README-PYPI.md"
88
dependencies = [
99
"eval-type-backport >=0.2.0",
@@ -25,7 +25,7 @@ gcp = [
2525
"requests >=2.32.3",
2626
]
2727
agents = [
28-
"mcp >=1.0,<2.0; python_version >= '3.10'",
28+
"mcp >=1.0,<2.0",
2929
"griffe >=1.7.3,<2.0",
3030
"authlib >=1.5.2,<2.0",
3131
]
@@ -42,7 +42,7 @@ dev = [
4242
"types-python-dateutil>=2.9.0.20240316,<3",
4343
"types-authlib>=1.5.0.20250516,<2",
4444
"types-pyyaml>=6.0.12.20250516,<7",
45-
"mcp>=1.0,<2 ; python_version >= '3.10'",
45+
"mcp>=1.0,<2",
4646
"griffe>=1.7.3,<2",
4747
"authlib>=1.5.2,<2",
4848
]

0 commit comments

Comments
 (0)