Skip to content

Update flask to version 3#82

Open
Yannicked wants to merge 3 commits into
iterorganization:developfrom
Yannicked:feature/update-flask-3
Open

Update flask to version 3#82
Yannicked wants to merge 3 commits into
iterorganization:developfrom
Yannicked:feature/update-flask-3

Conversation

@Yannicked

Copy link
Copy Markdown
Collaborator

Updates flask to version 3. This makes SimDB compatible with python>=3.14

Comment thread src/simdb/remote/app.py

from simdb.config import Config
from simdb.database.models import Base
from simdb.json import CustomDecoder, CustomEncoder

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this removal of the CustomEncoder/CustomDecoder has anything to do with the bump of Flask version?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, flask 3 does not have app.json_encoder or app.json_decoder

We are already using Pydantic for the JSON decoding, so we shoudn't need it anymore



@pytest.fixture(scope="session")
@pytest.fixture(scope="function")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same question about these changes, are they intended in this Flask 3 bump?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it has to do with the lifetime of the flask app during testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants