-
Notifications
You must be signed in to change notification settings - Fork 191
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
Dependencies: update to flask~=2.0
for rest
extra
#5366
Conversation
https://itsdangerous.palletsprojects.com/en/2.1.x/changes/#version-2-0-0
This seems relevant, since we use simplejson for encoding/decoding to the database. Can you check |
@@ -33,7 +33,7 @@ deprecation==2.1.0 | |||
disk-objectstore==0.6.0 | |||
docutils==0.15.2 | |||
entrypoints==0.3 | |||
Flask==1.1.2 | |||
Flask==2.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest using 2.1.0, since that is the latest release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only see 2.03 on PyPI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeh that's ok, I was confusing myself with the itsdangerous version.
I think that version should also be updated here though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
This is the corresponding change in flask:
https://github.com/pallets/flask/blob/main/CHANGES.rst |
Looking at [552c626] the use of But that is irrelevant for this change in this PR I think. Flask is only used for the REST API and we shouldn't care if they use a different JSON package underneath, do we? |
be3a413
to
e976254
Compare
e976254
to
d81ddff
Compare
I believe there may be differences in encoding certain things like numpy nan/inf and Decimal (see e.g. #4964) |
I don't think |
aiida-core/aiida/backends/sqlalchemy/utils.py Lines 51 to 58 in da5f9b0
|
I stand corrected 😅 Still point is not relevant for this discussion on flask and its use in the REST API, is it? |
No idea 🤷♂️, just wanted to note it as a possible source of change, e.g. if something gets deserialised from the database, with simplejson, then flask tries to "re-serialise" it with json. |
This major version of
flask
has been out for close to a year andour docs build started failing due to
itsdangerous
having removedthe json module that the old
flask
was still usingPropose to supdersede #5365