Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
Update frontend to flask v3
Browse files Browse the repository at this point in the history
So that the flask versions match between pre-award-frontend and
pre-award-stores.

We also update Flask-Babel, because v2 is not compatible with Flask v3

ImportError while loading conftest
'/Users/sam/git/runner/apps/funding-service-pre-award-frontend/tests/conftest.py'.
tests/conftest.py:6: in <module>
    from app import create_app
app.py:6: in <module>
    from flask_babel import Babel, gettext, pgettext
.venv/lib/python3.10/site-packages/flask_babel/__init__.py:17: in
<module>
    from flask.helpers import locked_cached_property
E   ImportError: cannot import name 'locked_cached_property' from
'flask.helpers'
(/Users/sam/git/runner/apps/funding-service-pre-award-frontend/.venv/lib/python3.10/site-packages/flask/helpers.py)
  • Loading branch information
samuelhwilliams committed Dec 24, 2024
1 parent 95c8404 commit 30aff68
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion assess/assessments/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
Response,
abort,
current_app,
escape,
g,
redirect,
render_template,
Expand All @@ -24,6 +23,7 @@
)
from fsd_utils import extract_questions_and_answers
from fsd_utils.sqs_scheduler.context_aware_executor import ContextAwareExecutor
from markupsafe import escape
from werkzeug.datastructures import ImmutableMultiDict, MultiDict

from assess.assessments.activity_trail import (
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies = [
"flask-session==0.8.0",
"flask-talisman==1.1.0",
"flask-wtf==1.2.1",
"flask==2.3.3",
"flask==3.0.3",
"funding-service-design-utils[toggles]==6.0.1",
"govuk-frontend-jinja==2.7.0",
"greenlet==3.1.1",
Expand Down
26 changes: 13 additions & 13 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30aff68

Please sign in to comment.