Skip to content

Commit 8f02726

Browse files
pamelafoxdavidism
authored andcommitted
drop Python 3.7 support
1 parent 105fd6c commit 8f02726

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.github/workflows/tests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
- {name: '3.10', python: '3.10', tox: py310}
3030
- {name: '3.9', python: '3.9', tox: py39}
3131
- {name: '3.8', python: '3.8', tox: py38}
32-
- {name: '3.7', python: '3.7', tox: py37}
3332
- {name: 'Typing', python: '3.11', tox: typing}
3433
steps:
3534
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ repos:
66
rev: v3.7.0
77
hooks:
88
- id: pyupgrade
9-
args: ["--py37-plus"]
9+
args: ["--py38-plus"]
1010
- repo: https://github.com/asottile/reorder-python-imports
1111
rev: v3.10.0
1212
hooks:
1313
- id: reorder-python-imports
1414
files: "^(?!examples/)"
15-
args: ["--py37-plus", "--application-directories", "src"]
15+
args: ["--py38-plus", "--application-directories", "src"]
1616
- repo: https://github.com/psf/black
1717
rev: 23.3.0
1818
hooks:
1919
- id: black
20-
args: ["--target-version", "py37"]
20+
args: ["--target-version", "py38"]
2121
- repo: https://github.com/PyCQA/flake8
2222
rev: 6.0.0
2323
hooks:

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Version 3.1.0
33

44
Unreleased
55

6+
- Drop support for Python 3.7. :pr:`1251`
67
- Add support for the SQLAlchemy 2.x API via ``model_class`` parameter. :issue:`1140`
78
- Bump minimum version of SQLAlchemy to 2.0.16.
89
- Remove previously deprecated code.

examples/flaskr/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ long_description = file: README.rst
1212
[options]
1313
packages = find:
1414
include_package_data = true
15-
python_requires = >= 3.7
15+
python_requires = >= 3.8
1616
install_requires =
1717
Flask>=2.2
1818
Flask-SQLAlchemy>=3

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ classifiers = [
1313
"Programming Language :: Python",
1414
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
1515
]
16-
requires-python = ">=3.7"
16+
requires-python = ">=3.8"
1717
dependencies = [
1818
"flask>=2.2.5",
1919
"sqlalchemy>=2.0.16",
@@ -59,7 +59,7 @@ source = ["flask_sqlalchemy", "tests"]
5959
source = ["src", "*/site-packages"]
6060

6161
[tool.mypy]
62-
python_version = "3.7"
62+
python_version = "3.8"
6363
files = ["src/flask_sqlalchemy", "tests"]
6464
show_error_codes = true
6565
pretty = true

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py3{11,10,9,8,7}
3+
py3{11,10,9,8}
44
py311-min
55
style
66
typing
@@ -25,7 +25,7 @@ commands = pre-commit run --all-files
2525
[testenv:typing]
2626
deps = -r requirements/mypy.txt
2727
commands =
28-
mypy --python-version 3.7
28+
mypy --python-version 3.8
2929
mypy --python-version 3.11
3030

3131
[testenv:docs]

0 commit comments

Comments
 (0)