Skip to content

Commit 0261a0f

Browse files
committed
⬆️ Upgrade to Python 3.12 and bump dependencies
1 parent 6c92a51 commit 0261a0f

File tree

6 files changed

+44
-67
lines changed

6 files changed

+44
-67
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
default_language_version:
2-
python: python3.9
2+
python: python3.12
33

44
exclude: |
55
(?x)^(

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
ARG PYTHON_VERSION=3.9-slim-buster
2-
3-
FROM python:${PYTHON_VERSION}
1+
FROM python:3.12-slim-bookworm
42

53
ENV PYTHONDONTWRITEBYTECODE 1
64
ENV PYTHONUNBUFFERED 1

grorg/settings.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@
121121

122122
# Django Allauth settings
123123

124-
ACCOUNT_LOGIN_METHODS = {'email'}
124+
ACCOUNT_AUTHENTICATION_METHOD = "email"
125125
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"
126-
ACCOUNT_SIGNUP_FIELDS = ['email*', 'password1*', 'password2*']
127126
ACCOUNT_EMAIL_VERIFICATION = "none"
127+
ACCOUNT_LOGIN_METHODS = {'email'}
128+
ACCOUNT_SIGNUP_FIELDS = ['email*', 'password1*', 'password2*']
128129
ACCOUNT_USER_MODEL_USERNAME_FIELD = None
129-
LOGIN_REDIRECT_URL = "/"
130-
USERNAME_REQUIRED = False
130+
ACCOUNT_USERNAME_REQUIRED = False
131+
LOGIN_REDIRECT_URL = "/"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ line-length = 120
5050
# Allow unused variables when underscore-prefixed.
5151
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
5252

53-
# Assume Python 3.9
54-
target-version = "py39"
53+
# Assume Python 3.12
54+
target-version = "py312"
5555

5656
[tool.ruff.mccabe]
5757
# Unlike Flake8, default to a complexity level of 10.

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ django-allauth
33
Django<5.0
44
environs[django]
55
gunicorn
6-
psycopg2-binary
6+
psycopg[binary]
77
requests
88
urlman
99
whitenoise

requirements.txt

Lines changed: 34 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,63 @@
11
# This file was autogenerated by uv via the following command:
22
# uv pip compile requirements.in --output-file requirements.txt
3-
asgiref==3.5.2
4-
# via django
5-
bumpver==2023.1124
3+
asgiref==3.8.1
4+
# via
5+
# django
6+
# django-allauth
7+
bumpver==2024.1130
68
# via -r requirements.in
7-
certifi==2022.12.7
9+
certifi==2025.4.26
810
# via requests
9-
cffi==1.15.1
10-
# via cryptography
11-
charset-normalizer==3.1.0
11+
charset-normalizer==3.4.2
1212
# via requests
13-
click==8.1.3
13+
click==8.1.8
1414
# via bumpver
1515
colorama==0.4.6
1616
# via bumpver
17-
cryptography==40.0.2
18-
# via pyjwt
19-
defusedxml==0.7.1
20-
# via python3-openid
21-
dj-database-url==0.5.0
17+
dj-database-url==2.3.0
2218
# via environs
23-
dj-email-url==1.0.5
19+
dj-email-url==1.0.6
2420
# via environs
25-
django==3.2.13
21+
django==4.2.21
2622
# via
2723
# -r requirements.in
24+
# dj-database-url
2825
# django-allauth
29-
django-allauth==0.54.0
26+
django-allauth==65.7.0
3027
# via -r requirements.in
31-
django-cache-url==3.4.2
28+
django-cache-url==3.4.5
3229
# via environs
33-
environs==9.5.0
30+
environs==14.1.1
3431
# via -r requirements.in
35-
gunicorn==20.1.0
32+
gunicorn==23.0.0
3633
# via -r requirements.in
37-
idna==3.4
34+
idna==3.10
3835
# via requests
3936
lexid==2021.1006
4037
# via bumpver
41-
looseversion==1.2.0
42-
# via bumpver
43-
marshmallow==3.16.0
38+
marshmallow==4.0.0
4439
# via environs
45-
oauthlib==3.2.2
46-
# via requests-oauthlib
47-
packaging==21.3
48-
# via marshmallow
49-
pathlib2==2.3.7.post1
50-
# via bumpver
51-
psycopg2-binary==2.9.3
40+
packaging==25.0
41+
# via gunicorn
42+
psycopg==3.2.7
5243
# via -r requirements.in
53-
pycparser==2.21
54-
# via cffi
55-
pyjwt==2.6.0
56-
# via django-allauth
57-
pyparsing==3.0.9
58-
# via packaging
59-
python-dotenv==0.20.0
44+
psycopg-binary==3.2.7
45+
# via psycopg
46+
python-dotenv==1.1.0
6047
# via environs
61-
python3-openid==3.2.0
62-
# via django-allauth
63-
pytz==2022.1
64-
# via django
65-
requests==2.30.0
66-
# via
67-
# -r requirements.in
68-
# django-allauth
69-
# requests-oauthlib
70-
requests-oauthlib==1.3.1
71-
# via django-allauth
72-
setuptools==80.3.1
73-
# via gunicorn
74-
six==1.16.0
75-
# via pathlib2
76-
sqlparse==0.4.2
48+
requests==2.32.3
49+
# via -r requirements.in
50+
sqlparse==0.5.3
7751
# via django
7852
toml==0.10.2
7953
# via bumpver
80-
urllib3==2.0.2
54+
typing-extensions==4.13.2
55+
# via
56+
# dj-database-url
57+
# psycopg
58+
urllib3==2.4.0
8159
# via requests
82-
urlman==2.0.1
60+
urlman==2.0.2
8361
# via -r requirements.in
84-
whitenoise==6.2.0
62+
whitenoise==6.9.0
8563
# via -r requirements.in

0 commit comments

Comments
 (0)