Skip to content

Commit d64e3de

Browse files
committed
chore: update to Python 3.13 and update packages
* python: 3.11 -> 3.13 * fastapi: 0.115.6 -> 0.135.4 * gunicorn: 21.2.0 -> 25.3.0 * uvicorn: 0.27.1 -> 0.46.0 * sqlalchemy: 2.0.27 -> 2.0.49 * asyncpg: 0.29.0 -> 0.31.0 * alembic: 1.13.1 -> 1.18.4 * google-api-python-client: 2.143.0 -> 2.194.0 * requests: removed for httpx * httpx: 0.28.1 * ruff: 0.6.9 -> 0.15.12 * removed mountain madness 2026 counter startup code
1 parent 9b82525 commit d64e3de

3 files changed

Lines changed: 349 additions & 375 deletions

File tree

pyproject.toml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
[project]
22
name = "csss-site-backend"
33
version = "0.1"
4-
requires-python = "~=3.11.0" # older versions untested, but we use new features often
4+
requires-python = "~=3.13.0"
55

66
dependencies = [
77
# major
8-
"fastapi==0.115.6",
9-
"gunicorn==21.2.0",
10-
"uvicorn[standard]==0.27.1",
11-
"sqlalchemy[asyncio]==2.0.27",
12-
"asyncpg==0.29.0",
13-
"alembic==1.13.1",
14-
"google-api-python-client==2.143.0",
8+
"fastapi==0.135.4",
9+
"gunicorn==25.3.0",
10+
"uvicorn[standard]==0.46.0",
11+
"sqlalchemy[asyncio]==2.0.49",
12+
"asyncpg==0.31.0",
13+
"alembic==1.18.4",
14+
"google-api-python-client==2.194.0",
1515

1616
# minor
17-
"pyOpenSSL==24.0.0", # for generating cryptographically secure random numbers
1817
"xmltodict==0.13.0",
19-
"requests==2.31.0",
18+
"httpx==0.28.1",
2019
]
2120

2221
[project.optional-dependencies]
2322
dev = [
24-
"ruff==0.6.9", # linting and formatter
23+
"ruff==0.15.12", # linting and formatter
2524
]
2625

2726
test = [
@@ -49,7 +48,7 @@ asyncio_default_fixture_loop_scope = "function"
4948
[tool.ruff]
5049
line-length = 120
5150
indent-width = 4
52-
target-version = "py311"
51+
target-version = "py313"
5352
exclude = [
5453
"src/alembic/*"
5554
]
@@ -66,8 +65,8 @@ ignore = ["E501", "F401", "N806"]
6665
# [Based]Pyright: Type checker/LSP
6766
[tool.pyright]
6867
executionEnvironments = [
69-
{ root = "src", pythonVersion = "3.11" },
70-
{ root = "tests", extraPaths=["src"], pythonVersion = "3.11" }
68+
{ root = "src", pythonVersion = "3.13" },
69+
{ root = "tests", extraPaths=["src"], pythonVersion = "3.13" }
7170
]
7271
typeCheckingMode = "standard"
7372
reportAny = "none" # Allow the use of `Any` type

src/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import candidates.urls
1111
import database
1212
import elections.urls
13-
import mountain_madness._2026.urls
1413
import nominees.urls
1514
import officers.urls
1615
import permission.urls
@@ -59,7 +58,6 @@
5958
app.include_router(nominees.urls.router)
6059
app.include_router(officers.urls.router)
6160
app.include_router(permission.urls.router)
62-
app.include_router(mountain_madness._2026.urls.router)
6361

6462

6563
@app.get("/")

0 commit comments

Comments
 (0)