From c7c341ef40c0c617c6086f07dae5f4ae9195cdb5 Mon Sep 17 00:00:00 2001 From: penguinzephyr Date: Wed, 20 Mar 2024 15:21:56 +1100 Subject: [PATCH 1/5] Update requirements.txt Bumps up all requirements to their latest versions. --- requirements.txt | 82 ++++++++++++++++++++++++------------------------ 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0994fee..693f369 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,52 +1,52 @@ -aioredis==1.3.1 -asgiref==3.3.4 -async-timeout==3.0.1 -attrs==21.2.0 +aioredis==2.0.1 +asgiref==3.7.2 +async-timeout +attrs==23.2.0 autobahn -Automat==20.2.0 -certifi==2022.12.7 -cffi==1.14.6 -channels==3.0.4 -channels-redis==3.3.0 -chardet==4.0.0 -charset-normalizer==2.0.4 -constantly==15.1.0 -cryptography==39.0.1 -daphne==3.0.2 +Automat==22.10.0 +certifi==2024.2.2 +cffi==1.16.0 +channels==4.0.0 +channels-redis==4.2.0 +chardet==5.2.0 +charset-normalizer==3.3.2 +constantly==23.10.4 +cryptography==42.0.5 +daphne==4.1.0 defusedxml==0.7.1 -Django==3.2.18 -django-allauth==0.45.0 -django-appconf==1.0.4 -django-ipware==2.1.0 -django-redis==5.0.0 -django-select2==7.7.1 -djangorestframework==3.12.4 -hiredis==2.0.0 +Django==5.0.3 +django-allauth==0.61.1 +django-appconf==1.0.6 +django-ipware==6.0.4 +django-redis==5.4.0 +django-select2==8.1.2 +djangorestframework==3.15.0 +hiredis==2.3.2 hyperlink==21.0.0 -idna==3.2 -incremental==21.3.0 +idna==3.6 +incremental==22.10.0 jsonfield==3.1.0 -msgpack==1.0.2 +msgpack==1.0.8 msgpack-python==0.5.6 oauthlib==3.2.2 -psycopg2-binary==2.9.1 -pyasn1==0.4.8 -pyasn1-modules==0.2.8 -pycparser==2.20 -PyJWT==2.4.0 -pyOpenSSL==20.0.1 +psycopg2-binary==2.9.9 +pyasn1==0.5.1 +pyasn1-modules==0.3.0 +pycparser==2.21 +PyJWT==2.8.0 +pyOpenSSL==24.1.0 python3-openid==3.2.0 pytz==2021.1 -redis==4.4.4 -requests==2.26.0 -requests-oauthlib==1.3.0 -service-identity==21.1.0 +redis==5.0.3 +requests==2.31.0 +requests-oauthlib==1.4.0 +service-identity==24.1.0 six==1.16.0 sqlparse==0.4.4 -stripe==2.60.0 +stripe==8.7.0 tinys3==0.1.12 -Twisted==22.4.0 -txaio==21.2.1 -typing-extensions==3.10.0.2 -urllib3==1.26.6 -zope.interface==5.4.0 +Twisted==24.3.0 +txaio==23.1.1 +typing-extensions==4.10.0 +urllib3==2.2.1 +zope.interface==6.2 From f7e0a1cf2f173b7065e8b98258d8ea19a50047e4 Mon Sep 17 00:00:00 2001 From: penguinzephyr Date: Wed, 20 Mar 2024 15:22:46 +1100 Subject: [PATCH 2/5] Update settings.py Adds 'allauth.account.middleware.AccountMiddleware' to Middleware section to keep the latest allauth dependency happy. --- trunk_player/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk_player/settings.py b/trunk_player/settings.py index eb2c1b5..8c4f80c 100644 --- a/trunk_player/settings.py +++ b/trunk_player/settings.py @@ -63,6 +63,7 @@ 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', + ''allauth.account.middleware.AccountMiddleware', ] ROOT_URLCONF = 'trunk_player.urls' From cb8349dbfb8c51c21b3dd3f61720625802ac1349 Mon Sep 17 00:00:00 2001 From: penguinzephyr Date: Wed, 20 Mar 2024 15:23:22 +1100 Subject: [PATCH 3/5] Update settings.py Fix typo --- trunk_player/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk_player/settings.py b/trunk_player/settings.py index 8c4f80c..5c90b0b 100644 --- a/trunk_player/settings.py +++ b/trunk_player/settings.py @@ -63,7 +63,7 @@ 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', - ''allauth.account.middleware.AccountMiddleware', + 'allauth.account.middleware.AccountMiddleware', ] ROOT_URLCONF = 'trunk_player.urls' From 01a4e90e70467c31612ab2b77d5d8c7c6ddc1c9f Mon Sep 17 00:00:00 2001 From: penguinzephyr Date: Wed, 20 Mar 2024 15:25:28 +1100 Subject: [PATCH 4/5] Update urls.py Updates urls.py to use re_path instead of url. --- trunk_player/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk_player/urls.py b/trunk_player/urls.py index dbb5306..a49f67c 100644 --- a/trunk_player/urls.py +++ b/trunk_player/urls.py @@ -13,7 +13,7 @@ 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ -from django.conf.urls import url, include +from django.urls import re_path as url, include from django.conf.urls.static import static from django.conf import settings from django.contrib import admin, auth From eb939f5a30214537f324c1f5233beffeb378be32 Mon Sep 17 00:00:00 2001 From: penguinzephyr Date: Wed, 20 Mar 2024 15:26:30 +1100 Subject: [PATCH 5/5] Update forms.py Updates ugettext to gettext as per latest dependency. --- radio/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/forms.py b/radio/forms.py index bd94100..2ff0d9c 100644 --- a/radio/forms.py +++ b/radio/forms.py @@ -1,7 +1,7 @@ import re from django import forms from django.contrib.auth.models import User -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from django_select2.forms import ( HeavySelect2MultipleWidget, HeavySelect2Widget, ModelSelect2MultipleWidget,