Skip to content

Commit 642c999

Browse files
committed
drop support for Python 3.7
1 parent de78b8c commit 642c999

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ jobs:
3636
pydantic-version:
3737
- pydantic-v1
3838
- pydantic-v2
39-
include:
40-
- os: ubuntu-22.04
41-
python-version: "3.7"
42-
pydantic-version: pydantic-v1
43-
- os: ubuntu-22.04
44-
python-version: "3.7"
45-
pydantic-version: pydantic-v2
4639
fail-fast: false
4740
runs-on: ${{ matrix.os }}
4841
steps:
@@ -73,12 +66,8 @@ jobs:
7366
- name: Install Pydantic v2
7467
if: matrix.pydantic-version == 'pydantic-v2'
7568
run: uv pip install --upgrade "pydantic>=2.0.2,<3.0.0"
76-
- name: Pin typing-extensions for Python 3.7
77-
if: matrix.python-version == '3.7'
78-
run: uv pip install --upgrade "typing-extensions==4.6.1"
7969
- name: Lint
80-
# Do not run on Python 3.7 as mypy behaves differently
81-
if: matrix.python-version != '3.7' && matrix.pydantic-version == 'pydantic-v2'
70+
if: matrix.pydantic-version == 'pydantic-v2'
8271
run: bash scripts/lint.sh
8372
- run: mkdir coverage
8473
- name: Test

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "sqlmodel"
77
dynamic = ["version"]
88
description = "SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness."
99
readme = "README.md"
10-
requires-python = ">=3.7"
10+
requires-python = ">=3.8"
1111
authors = [
1212
{ name = "Sebastián Ramírez", email = "tiangolo@gmail.com" },
1313
]
@@ -20,7 +20,6 @@ classifiers = [
2020
"Intended Audience :: System Administrators",
2121
"License :: OSI Approved :: MIT License",
2222
"Programming Language :: Python :: 3 :: Only",
23-
"Programming Language :: Python :: 3.7",
2423
"Programming Language :: Python :: 3.8",
2524
"Programming Language :: Python :: 3.9",
2625
"Programming Language :: Python :: 3.10",

requirements-tests.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ ruff ==0.9.6
77
# For FastAPI tests
88
fastapi >=0.103.2
99
httpx ==0.24.1
10-
# TODO: upgrade when deprecating Python 3.7
11-
dirty-equals ==0.6.0; python_version < "3.8"
12-
dirty-equals ==0.9.0; python_version >= "3.8"
10+
dirty-equals ==0.9.0
1311
jinja2 ==3.1.4
14-
# Pin typing-extensions until Python 3.8 is deprecated or the issue with dirty-equals
15-
# is fixed, maybe fixed after dropping Python 3.7 and upgrading dirty-equals
16-
typing-extensions ==4.6.1; python_version < "3.8"
17-
typing-extensions ==4.12.2; python_version >= "3.8"
12+
typing-extensions ==4.12.2

0 commit comments

Comments
 (0)