Skip to content

Commit 668ddc8

Browse files
committed
Drop Python 3.8 and 3.9 support
Python 3.8 reached EOL in October 2024, and 3.9 will reach EOL in October 2025. More importantly, redis-py 7.1.0+ requires Python 3.10+, so our Python version support is tied to upstream requirements. Changes: - Update pyproject.toml to require Python >=3.10 - Update redis-py constraint to >=4.2.0,<8.0.0 - Remove 3.8/3.9 from PyPI classifiers - Remove 3.9 and pypy-3.9 from CI test matrix - Update docs to reflect new requirements Closes #706, #730
1 parent 4c37519 commit 668ddc8

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- cron: '0 6 * * *' # Daily 6AM UTC build
1616

1717
env:
18-
pythonversion: 3.9
18+
pythonversion: "3.10"
1919

2020

2121
jobs:
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v5
30-
- name: Setup Python 3.9
30+
- name: Setup Python 3.10
3131
uses: actions/setup-python@v6
3232
with:
3333
python-version: ${{env.pythonversion}}
@@ -76,7 +76,7 @@ jobs:
7676
strategy:
7777
matrix:
7878
os: [ ubuntu-latest ]
79-
pyver: [ "3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.9", "pypy-3.10" ]
79+
pyver: [ "3.10", "3.11", "3.12", "3.13", "pypy-3.10" ]
8080
redisstack: [ "latest" ]
8181
fail-fast: false
8282
services:

docs/getting_started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ This tutorial will walk you through installing Redis OM, creating your first mod
88

99
## Prerequisites
1010

11-
Redis OM requires Python version 3.8 or above and a Redis instance to connect to.
11+
Redis OM requires Python version 3.10 or above and a Redis instance to connect to.
1212

1313
## Python
1414

15-
Make sure you are running **Python version 3.8 or higher**:
15+
Make sure you are running **Python version 3.10 or higher**:
1616

1717
```
1818
python --version
19-
Python 3.8.0
19+
Python 3.10.0
2020
```
2121

2222
If you don't have Python installed, you can download it from [Python.org](https://www.python.org/downloads/), use [pyenv](https://github.com/pyenv/pyenv), or install Python with your operating system's package manager.

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ classifiers = [
1818
"Operating System :: OS Independent",
1919
"Topic :: Database",
2020
'License :: OSI Approved :: BSD License',
21-
'Programming Language :: Python :: 3.8',
22-
'Programming Language :: Python :: 3.9',
2321
'Programming Language :: Python :: 3.10',
2422
'Programming Language :: Python :: 3.11',
2523
'Programming Language :: Python :: 3.12',
@@ -37,8 +35,8 @@ include = [
3735
"Issue tracker" = "https://github.com/redis/redis-om-python/issues"
3836

3937
[tool.poetry.dependencies]
40-
python = ">=3.8,<4.0"
41-
redis = ">=3.5.3,<8.0.0"
38+
python = ">=3.10,<4.0"
39+
redis = ">=4.2.0,<8.0.0"
4240
pydantic = ">=2.0.0,<3.0.0"
4341
click = "^8.0.1"
4442
types-redis = ">=3.5.9,<5.0.0"

0 commit comments

Comments
 (0)