Skip to content

Commit 1464823

Browse files
authored
Merge pull request #1248 from DhavalGojiya/EOL/drop-python-3.9-support
Drop support for Python 3.9
2 parents f51bb17 + 3ddec86 commit 1464823

9 files changed

Lines changed: 321 additions & 364 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
env:
2626
PYTHONUNBUFFERED: 1
27-
UV_PYTHON: "3.9"
27+
PYTHON_VERSION: "3.10"
2828
UV_LOCKED: 1
2929
steps:
3030
- name: Checkout the repository
@@ -37,15 +37,16 @@ jobs:
3737
- name: Setup Github Pages
3838
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
3939

40-
- name: Install Python ${{ env.UV_PYTHON }}
40+
- name: Install Python ${{ env.PYTHON_VERSION }}
4141
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4242
with:
43-
python-version: ${{ env.UV_PYTHON }}
43+
python-version: ${{ env.PYTHON_VERSION }}
4444

4545
- name: Install uv
4646
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
4747
with:
4848
version: "0.11.21"
49+
python-version: ${{ env.PYTHON_VERSION }}
4950
enable-cache: false
5051

5152
- name: Build docs

.github/workflows/pre-release-tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,29 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
19+
python-version: ["3.10", "3.11", "3.12", "3.13"]
2020
name: integration-tests-against-rc
2121
runs-on: ubuntu-latest
2222
env:
2323
PYTHONUNBUFFERED: 1
24-
UV_PYTHON: ${{ matrix.python-version }}
24+
PYTHON_VERSION: ${{ matrix.python-version }}
2525
UV_LOCKED: 1
2626
steps:
2727
- name: Checkout the repository
2828
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2929
with:
3030
persist-credentials: false
3131

32-
- name: Set up Python ${{ matrix.python-version }}
32+
- name: Set up Python ${{ env.PYTHON_VERSION }}
3333
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3434
with:
35-
python-version: ${{ matrix.python-version }}
35+
python-version: ${{ env.PYTHON_VERSION }}
3636

3737
- name: Install uv
3838
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
3939
with:
4040
version: "0.11.21"
41+
python-version: ${{ env.PYTHON_VERSION }}
4142

4243
- name: Get the latest Meilisearch RC
4344
run: echo "MEILISEARCH_VERSION=$(curl https://raw.githubusercontent.com/meilisearch/integration-guides/main/scripts/get-latest-meilisearch-rc.sh | bash)" >> $GITHUB_ENV

.github/workflows/pypi-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313
runs-on: ubuntu-latest
1414
env:
1515
PYTHONUNBUFFERED: 1
16-
UV_PYTHON: "3.9"
16+
PYTHON_VERSION: "3.10"
1717
steps:
1818
- name: Checkout the repository
1919
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2020
with:
2121
persist-credentials: false
2222

23-
- name: Set up Python ${{ env.UV_PYTHON }}
23+
- name: Set up Python ${{ env.PYTHON_VERSION }}
2424
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2525
with:
26-
python-version: ${{ env.UV_PYTHON }}
26+
python-version: ${{ env.PYTHON_VERSION }}
2727

2828
- name: Check release validity
2929
run: sh .github/scripts/check-release.sh
@@ -32,6 +32,7 @@ jobs:
3232
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
3333
with:
3434
version: "0.11.21"
35+
python-version: ${{ env.PYTHON_VERSION }}
3536
enable-cache: false
3637

3738
- name: Build and publish

.github/workflows/tests.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,29 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
21+
python-version: ["3.10", "3.11", "3.12", "3.13"]
2222
name: integration-tests
2323
runs-on: ubuntu-latest
2424
env:
2525
PYTHONUNBUFFERED: 1
26-
UV_PYTHON: ${{ matrix.python-version }}
26+
PYTHON_VERSION: ${{ matrix.python-version }}
2727
UV_LOCKED: 1
2828
steps:
2929
- name: Checkout the repository
3030
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3131
with:
3232
persist-credentials: false
3333

34-
- name: Set up Python ${{ matrix.python-version }}
34+
- name: Set up Python ${{ env.PYTHON_VERSION }}
3535
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3636
with:
37-
python-version: ${{ matrix.python-version }}
37+
python-version: ${{ env.PYTHON_VERSION }}
3838

3939
- name: Install uv
4040
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
4141
with:
4242
version: "0.11.21"
43+
python-version: ${{ env.PYTHON_VERSION }}
4344

4445
- name: Meilisearch (latest version) setup with Docker
4546
run: docker run -d -p 7700:7700 getmeili/meilisearch-enterprise:latest meilisearch --no-analytics --master-key=masterKey
@@ -52,23 +53,24 @@ jobs:
5253
runs-on: ubuntu-latest
5354
env:
5455
PYTHONUNBUFFERED: 1
55-
UV_PYTHON: "3.9"
56+
PYTHON_VERSION: "3.10"
5657
UV_LOCKED: 1
5758
steps:
5859
- name: Checkout the repository
5960
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
6061
with:
6162
persist-credentials: false
6263

63-
- name: Set up Python 3.9
64+
- name: Set up Python ${{ env.PYTHON_VERSION }}
6465
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
6566
with:
66-
python-version: "3.9"
67+
python-version: ${{ env.PYTHON_VERSION }}
6768

6869
- name: Install uv
6970
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
7071
with:
7172
version: "0.11.21"
73+
python-version: ${{ env.PYTHON_VERSION }}
7274

7375
- name: Linter with pylint
7476
run: uv run pylint meilisearch tests
@@ -78,23 +80,24 @@ jobs:
7880
runs-on: ubuntu-latest
7981
env:
8082
PYTHONUNBUFFERED: 1
81-
UV_PYTHON: "3.9"
83+
PYTHON_VERSION: "3.10"
8284
UV_LOCKED: 1
8385
steps:
8486
- name: Checkout the repository
8587
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
8688
with:
8789
persist-credentials: false
8890

89-
- name: Set up Python 3.9
91+
- name: Set up Python ${{ env.PYTHON_VERSION }}
9092
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
9193
with:
92-
python-version: 3.9
94+
python-version: ${{ env.PYTHON_VERSION }}
9395

9496
- name: Install uv
9597
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
9698
with:
9799
version: "0.11.21"
100+
python-version: ${{ env.PYTHON_VERSION }}
98101

99102
- name: mypy type check
100103
run: uv run mypy meilisearch
@@ -118,23 +121,24 @@ jobs:
118121
runs-on: ubuntu-latest
119122
env:
120123
PYTHONUNBUFFERED: 1
121-
UV_PYTHON: "3.9"
124+
PYTHON_VERSION: "3.10"
122125
UV_LOCKED: 1
123126
steps:
124127
- name: Checkout the repository
125128
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
126129
with:
127130
persist-credentials: false
128131

129-
- name: Set up Python 3.9
132+
- name: Set up Python ${{ env.PYTHON_VERSION }}
130133
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
131134
with:
132-
python-version: 3.9
135+
python-version: ${{ env.PYTHON_VERSION }}
133136

134137
- name: Install uv
135138
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
136139
with:
137140
version: "0.11.21"
141+
python-version: ${{ env.PYTHON_VERSION }}
138142

139143
- name: isort
140144
run: uv run isort meilisearch tests --check-only

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-slim-trixie
1+
FROM python:3.10-slim-trixie
22

33
COPY --from=ghcr.io/astral-sh/uv:0.11.19 /uv /uvx /bin/
44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To learn more about Meilisearch Python, refer to the in-depth [Meilisearch Pytho
4242

4343
## 🔧 Installation
4444

45-
**Note**: Python 3.9+ is required.
45+
**Note**: Python 3.10+ is required.
4646

4747
With `pip3` in command line:
4848

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "meilisearch"
33
description = "The python client for Meilisearch API."
44
authors = [{ name = "Clémentine", email = "clementine@meilisearch.com" }]
5-
requires-python = ">=3.9"
5+
requires-python = ">=3.10"
66
license = { text = "MIT" }
77
keywords = [
88
"search",
@@ -11,7 +11,6 @@ keywords = [
1111
]
1212
classifiers = [
1313
"Programming Language :: Python :: 3",
14-
"Programming Language :: Python :: 3.9",
1514
"Programming Language :: Python :: 3.10",
1615
"Programming Language :: Python :: 3.11",
1716
"Programming Language :: Python :: 3.12",
@@ -50,7 +49,6 @@ lint = [
5049
"pylint>=v3.3.9",
5150
"ruff>=0.15.17",
5251
"isort>=6.1.0",
53-
"types-requests",
5452
]
5553

5654
docs = [

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = pylint, mypy, py39, py310, py311, py312, py313
2+
envlist = pylint, mypy, py310, py311, py312, py313
33
requires =
44
tox-uv
55

0 commit comments

Comments
 (0)