Skip to content

Chore/bump python 3.13.2 #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/page-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
POETRY_HOME: /opt/poetry
POETRY_VERSION: 2.1.1
POETRY_VERSION: 2.1.2
WORK_DIR: page/src

jobs:
Expand All @@ -19,11 +19,11 @@ jobs:
id: checkout
uses: actions/checkout@v4

- name: Set up python 3.9.21
- name: Set up python 3.13.2
id: setup-python
uses: actions/setup-python@v5
with:
python-version: 3.9.21
python-version: 3.13.2

- name: Update pip
id: update-pip
Expand Down
2 changes: 1 addition & 1 deletion page/.python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.21
3.13.2
2 changes: 1 addition & 1 deletion page/dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### base image ###
ARG PYTHON_VERSION=3.9.21
ARG PYTHON_VERSION=3.13.2

FROM python:$PYTHON_VERSION AS base

Expand Down
6 changes: 3 additions & 3 deletions page/passenger_wsgi.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import imp
import os
import sys
from importlib.machinery import SourceFileLoader

sys.path.insert(0, os.path.dirname(__file__))

wsgi = imp.load_source("wsgi", "src/passenger_wsgi.py")
application = wsgi.application
wsgi = SourceFileLoader("wsgi", "src/passenger_wsgi.py").load_module()
application = wsgi.application
7 changes: 3 additions & 4 deletions page/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = [
{ name = "Roman", email = "[email protected]" }
]
readme = "README.md"
requires-python = "==3.9.21"
requires-python = "==3.13.2"
dependencies = [
## reserved packages
# for namecheap host issue
Expand All @@ -18,7 +18,7 @@ dependencies = [
"loguru (==0.7.3)",
## django
# 4.2 drops support for mariadb 10.3
"django (==4.1.9)",
"django (==5.2)",
"django-environ (==0.12.0)",
"django-cors-headers (==4.2.0)",
"django-browser-reload (==1.11.0)",
Expand All @@ -37,14 +37,13 @@ dependencies = [
"django-crispy-forms (==2.0)",
"crispy-bootstrap5 (==0.7)",
## db
"pymysql (==1.0.3)",
"pymysql (==1.1.1)",
## misc
# "pillow (==9.5.0)",
#"wordnik-py3 (==2.1.2)",
#"libretranslatepy (==2.1.3)",
# "django-imagekit (==4.1.0)",
"django-phonenumber-field[phonenumbers] (==8.0.0)",
"django-timezone-field (==7.1)",
"django-avatar (==8.0.1)",
]

Expand Down
185 changes: 138 additions & 47 deletions page/requirements.txt

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions page/src/apps/account/migrations/0002_profile.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions page/src/apps/account/migrations/0003_registration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.1.9 on 2025-04-18 19:33
# Generated by Django 5.2 on 2025-04-19 10:23

import uuid

Expand All @@ -10,8 +10,8 @@
class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('account', '0002_profile'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
Expand Down
9 changes: 4 additions & 5 deletions page/src/apps/account/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from django.utils.translation import gettext_lazy as _
from django_softdelete.models import SoftDeleteModel
from phonenumber_field.modelfields import PhoneNumberField
from timezone_field import TimeZoneField

from apps.core.models import Address, Code, Language, Platform, Url, User
from apps.core.time_utils import TimezoneChoices
Expand Down Expand Up @@ -104,7 +103,9 @@ class Status(models.TextChoices):
)

social_platforms = models.ManyToManyField(SocialPlatform, related_name="profiles", blank=True)
timezone = TimeZoneField(choices=TimezoneChoices.get_choices(), default="UTC", blank=True, null=True)
timezone = models.CharField(
max_length=128, choices=TimezoneChoices.get_choices(), default="UTC", blank=True, null=True
)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)

Expand All @@ -124,7 +125,7 @@ class Type(models.TextChoices):
SOCIAL = 'social', _('Social')
OTHER = 'other', _('Other')

id = models.UUIDField(primary_key=True, editable=False, default=uuid.uuid4,)
id = models.UUIDField(primary_key=True, editable=False, default=uuid.uuid4, )
user = models.OneToOneField(
User,
on_delete=models.SET_NULL,
Expand All @@ -144,5 +145,3 @@ class Meta:

def __str__(self):
return f"[Registration: {self.user.username if self.user else 'N/A'}]"


1 change: 0 additions & 1 deletion page/src/apps/core/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import uuid
from enum import unique
from typing import Optional

from django.contrib.auth.models import AbstractUser
Expand Down
1 change: 0 additions & 1 deletion page/src/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
# 'theme',
# "imagekit",
"phonenumber_field",
"timezone_field",
"avatar",
## apps
"apps.core",
Expand Down