Skip to content
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

Cap flask version #42

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Cap flask version #42

merged 1 commit into from
Aug 22, 2023

Conversation

mtreinish
Copy link
Member

Our use of before_first_request decorator to lazily initialize the repositories and configuration of the webapp was deprecated and removed in the 2.3.x release series. We'll have to reorganize the api module to conform to more modern flask conventions to do this initial setup. In the meantime this commit just caps our flask requirement to avoid 2.3.x.

This issue was never caught in the deployed service because we were deploying the bot using Python 3.7 which effectively was capping us flask<2.3. Trying to update the deployment to use Python 3.11 instead the service never starts because 2.3 is being installed.

Our use of `before_first_request` decorator to lazily initialize the
repositories and configuration of the webapp was deprecated and removed
in the 2.3.x release series. We'll have to reorganize the api module to
conform to more modern flask conventions to do this initial setup. In
the meantime this commit just caps our flask requirement to avoid 2.3.x.

This issue was never caught in the deployed service because we were
deploying the bot using Python 3.7 which effectively was capping us
flask<2.3. Trying to update the deployment to use Python 3.11 instead
the service never starts because 2.3 is being installed.
Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

This seems fine to me for now, since it's an accurate representation of the requirements.

@jakelishman jakelishman merged commit d933a7a into master Aug 22, 2023
4 checks passed
@mtreinish mtreinish deleted the cap-flask branch August 22, 2023 11:44
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