Skip to content

Commit cc4baa0

Browse files
committed
Bump to Python 3.12
Also remove unused dependencies
1 parent 3147882 commit cc4baa0

File tree

8 files changed

+54
-295
lines changed

8 files changed

+54
-295
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-python@v5
1414
with:
15-
python-version: 3.11
15+
python-version: 3.12
1616
- uses: pre-commit/[email protected]
1717

1818
test:
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- uses: actions/setup-python@v5
2323
with:
24-
python-version: 3.11
24+
python-version: 3.12
2525
- uses: snok/install-poetry@v1
2626
with:
2727
virtualenvs-in-project: true

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-python@v5
1313
with:
14-
python-version: 3.11
14+
python-version: 3.12
1515
- uses: snok/install-poetry@v1
1616
with:
1717
virtualenvs-in-project: true

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
default_language_version:
3-
python: python3.11
3+
python: python3.12
44
repos:
55
- repo: https://github.com/python-poetry/poetry-plugin-export
66
rev: 1.9.0

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11
1+
3.12

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11
1+
FROM python:3.12
22

33
WORKDIR /usr/src/app
44

poetry.lock

Lines changed: 2 additions & 157 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,33 @@ classifiers = [
1414
"Framework :: Flask",
1515
"Intended Audience :: Developers",
1616
"Operating System :: OS Independent",
17-
"Programming Language :: Python :: 3.11",
17+
"Programming Language :: Python :: 3.12",
1818
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
1919
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
2020
"Topic :: System :: Archiving :: Packaging",
2121
]
22-
requires-python = ">=3.11,<4.0"
22+
requires-python = ">=3.12,<4.0"
2323
dependencies = [
2424
"flask~=3.1.2",
2525
"flask-sqlalchemy~=3.1.1",
2626
"flask-security~=5.6.2",
27-
"passlib~=1.7.4",
2827
"flask-babel~=4.0.0",
2928
"flask-wtf~=1.2.2",
3029
"wtforms~=3.2.1",
3130
"flask-mail~=0.10.0",
3231
"configparser~=7.2.0",
33-
"email_validator~=2.3.0",
3432
"flask-principal~=0.4.0",
3533
"flask-admin~=2.0.0",
3634
"sqlalchemy~=2.0.44",
37-
"pillow~=12.0.0",
35+
"pillow~=12.0.0", # provides image handling for flask-admin[images] extra
3836
"flask-restful~=0.3.10",
39-
"flask-login~=0.6.3",
4037
"flask-caching~=2.3.1",
41-
"redis~=7.0.1",
42-
"python-gnupg~=0.5.5",
38+
"python-gnupg~=0.5.5", # Modern maintained fork of 'gnupg'; fixes Py3.11+ warnings
4339
"requests~=2.32.5",
4440
"click~=8.3.0",
4541
"flask-migrate~=4.1.0",
4642
"alembic~=1.17.1",
47-
"text-unidecode~=1.3",
48-
"ipaddress~=1.0.23",
4943
"flask-debugtoolbar~=0.16.0",
50-
"bcrypt~=5.0.0",
5144
]
5245

5346
[dependency-groups]

0 commit comments

Comments
 (0)