Skip to content

Commit 6717502

Browse files
committed
Revert "chore: update pyproject (#201)"
This reverts commit 81f02dd.
1 parent aef3d4c commit 6717502

2 files changed

Lines changed: 23 additions & 24 deletions

File tree

.github/workflows/run_example_scripts.yaml

Lines changed: 3 additions & 1 deletion
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.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1818

1919
steps:
2020
- name: Checkout code
@@ -27,6 +27,8 @@ jobs:
2727

2828
- name: Install Poetry
2929
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1
30+
with:
31+
version: ${{ matrix.python-version == '3.8' && '1.8.5' || '2.1.1' }}
3032

3133
- name: Build and install client
3234
run: |

pyproject.toml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
1-
[project]
1+
[tool.poetry]
22
name = "mistralai"
33
version = "1.5.1"
44
description = "Python Client SDK for the Mistral AI API."
5-
authors = [{ name = "Mistral" },]
5+
authors = ["Mistral"]
66
readme = "README-PYPI.md"
7-
requires-python = ">=3.9"
8-
dependencies = [
9-
"eval-type-backport >=0.2.0",
10-
"httpx >=0.28.1",
11-
"pydantic >=2.10.3",
12-
"python-dateutil >=2.8.2",
13-
"typing-inspection >=0.4.0",
14-
]
15-
16-
[tool.poetry]
177
repository = "https://github.com/mistralai/client-python.git"
188
packages = [
199
{ include = "mistralai", from = "src" },
@@ -28,25 +18,32 @@ include = ["py.typed", "src/mistralai/py.typed"]
2818
[virtualenvs]
2919
in-project = true
3020

21+
[tool.poetry.dependencies]
22+
python = ">=3.8"
23+
eval-type-backport = ">=0.2.0"
24+
httpx = ">=0.27.0"
25+
jsonpath-python = ">=1.0.6"
26+
pydantic = ">=2.9.0"
27+
python-dateutil = ">=2.8.2"
28+
typing-inspect = ">=0.9.0"
29+
google-auth = { version = ">=2.27.0", optional = true }
30+
requests = { version = ">=2.32.3", optional = true }
31+
3132
[tool.poetry.group.dev.dependencies]
32-
mypy = "==1.14.1"
33-
pylint = "==3.2.3"
34-
pytest = "^8.2.2"
35-
pytest-asyncio = "^0.23.7"
36-
types-python-dateutil = "^2.9.0.20240316"
33+
mypy = ">=1.13.0"
34+
pylint = ">=3.2.3"
35+
pytest = ">=8.2.2"
36+
pytest-asyncio = ">=0.23.7"
37+
types-python-dateutil = ">=2.9.0.20240316"
3738

38-
[project.optional-dependencies]
39-
gcp = [
40-
"google-auth >=2.27.0",
41-
"requests >=2.32.3"
42-
]
39+
[tool.poetry.extras]
40+
gcp = ["google-auth", "requests"]
4341

4442
[build-system]
4543
requires = ["poetry-core"]
4644
build-backend = "poetry.core.masonry.api"
4745

4846
[tool.pytest.ini_options]
49-
asyncio_default_fixture_loop_scope = "function"
5047
pythonpath = ["src"]
5148

5249
[tool.mypy]

0 commit comments

Comments
 (0)