Skip to content

Commit dd446aa

Browse files
committed
Update dependencies more
1 parent 68509e8 commit dd446aa

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed

alembic/versions/rev002.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import os
1111

1212
import sqlalchemy as sa
13-
from sqlalchemy.engine.reflection import Inspector
1413

1514
from alembic import op
1615
from app.config import QUERIES_DIR
@@ -25,7 +24,7 @@
2524

2625
def upgrade():
2726
conn = op.get_bind()
28-
inspector = Inspector.from_engine(conn)
27+
inspector = sa.inspect(conn)
2928
tables = inspector.get_table_names()
3029

3130
# Create reach association table

app/admin/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from app.data.database import db
1818

1919

20-
admin = Admin(template_mode="bootstrap4", index_view=AdminIndexView())
20+
admin = Admin(index_view=AdminIndexView())
2121

2222

2323
def init_admin(app: Flask):

app/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ class are loaded into the Flask app in the `create_app` function.
7676
@property
7777
def SQLALCHEMY_DATABASE_URI(self) -> str:
7878
if self.DATABASE_URL:
79-
return self.DATABASE_URL.replace("postgres://", "postgresql://")
79+
return self.DATABASE_URL.replace("postgres://", "postgresql+psycopg://")
8080
else:
8181
return str(
8282
MultiHostUrl.build(
83-
scheme="postgresql",
83+
scheme="postgresql+psycopg",
8484
username=self.POSTGRES_USER,
8585
password=self.POSTGRES_PASSWORD,
8686
host=self.POSTGRES_HOST,

requirements.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Celery
1010
click
1111
flasgger
12-
Flask-Admin
12+
Flask-Admin==v2.0.0a4
1313
Flask-BasicAuth
1414
Flask-Caching
1515
flask-cors
@@ -22,7 +22,7 @@ flower
2222
Jinja2
2323
markdown
2424
pandas
25-
psycopg2-binary
25+
psycopg[binary]
2626
pyarrow
2727
python-dotenv
2828
PyYAML
@@ -48,7 +48,7 @@ pytest
4848
pytest-celery
4949
pytest-cov
5050
pytest-env
51-
pytest-postgresql<4.0.0
51+
pytest-postgresql
5252
schemathesis
5353

5454
# ==========================================================

requirements.txt

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ flask==3.1.1
8888
# flask-mail
8989
# flask-sqlalchemy
9090
# sentry-sdk
91-
flask-admin==1.6.1
91+
flask-admin==2.0.0a4
9292
# via -r requirements.in
9393
flask-basicauth==0.2.0
9494
# via -r requirements.in
@@ -154,6 +154,7 @@ jinja2==3.1.6
154154
# via
155155
# -r requirements.in
156156
# flask
157+
# flask-admin
157158
jsonpointer==3.0.0
158159
# via jsonschema
159160
jsonschema==4.24.0
@@ -178,6 +179,7 @@ markdown-it-py==3.0.0
178179
markupsafe==3.0.2
179180
# via
180181
# flask
182+
# flask-admin
181183
# jinja2
182184
# mako
183185
# sentry-sdk
@@ -206,6 +208,7 @@ packaging==25.0
206208
# flasgger
207209
# gunicorn
208210
# pytest
211+
# pytest-postgresql
209212
pandas==2.2.3
210213
# via -r requirements.in
211214
platformdirs==4.3.8
@@ -226,8 +229,12 @@ psutil==7.0.0
226229
# via
227230
# mirakuru
228231
# pytest-celery
229-
psycopg2-binary==2.9.10
230-
# via -r requirements.in
232+
psycopg==3.2.9
233+
# via
234+
# -r requirements.in
235+
# pytest-postgresql
236+
psycopg-binary==3.2.9
237+
# via psycopg
231238
pyarrow==20.0.0
232239
# via -r requirements.in
233240
pydantic==2.11.5
@@ -259,7 +266,7 @@ pytest-docker-tools==3.1.9
259266
# via pytest-celery
260267
pytest-env==1.1.5
261268
# via -r requirements.in
262-
pytest-postgresql==3.1.3
269+
pytest-postgresql==7.0.2
263270
# via -r requirements.in
264271
pytest-subtests==0.14.1
265272
# via schemathesis
@@ -364,6 +371,7 @@ typing-extensions==4.13.2
364371
# via
365372
# alembic
366373
# anyio
374+
# psycopg
367375
# pydantic
368376
# pydantic-core
369377
# referencing
@@ -401,6 +409,7 @@ webcolors==24.11.1
401409
werkzeug==3.1.3
402410
# via
403411
# flask
412+
# flask-admin
404413
# flask-cors
405414
# schemathesis
406415
wtforms==3.1.2

0 commit comments

Comments
 (0)