Skip to content
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

Template update python version #32

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-slim
FROM python:3.13-slim

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is at least one deprecated feature that we need to address: datetime.utcnow is now deprecated. Since we are currently using it, we will need to change it. I believe the correct replacement is .now(datetime.timezone.utc).

It would be great to review other potential deprecated features or necessary changes, especially since we are upgrading two python versions.


RUN apt-get update && apt-get install -y curl libpq-dev gcc

Expand Down
2 changes: 0 additions & 2 deletions docker-compose.test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

services:
backend:
environment:
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

services:
backend:
build: .
Expand Down
944 changes: 436 additions & 508 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"
package-mode = false

[tool.poetry.dependencies]
python = "^3.11"
python = "^3.13"
alembic = "^1.13.2"
bcrypt = "4.0.1"
email-validator = "^2.2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def authenticate(self, request: Request) -> RedirectResponse | bool:
session.close()
if not user.is_superuser:
return failed_auth_response
return False
return True


class UserAdmin(ModelView, model=User):
Expand Down