8000 Update for compatibility with flask v2.3.2 by dsakagi · Pull Request #153 · flask-api/flask-api · GitHub
[go: up one dir, main page]

Skip to content

Update for compatibility with flask v2.3.2 #153

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

Merged
merged 2 commits into from
Jun 3, 2023
Merged

Update for compatibility with flask v2.3.2 #153

merged 2 commits into from
Jun 3, 2023

Conversation

dsakagi
Copy link
Contributor
@dsakagi dsakagi commented Jun 2, 2023

In version 2.3.0 of flask, the JSONEncoder class was removed and the app.json_encoder attribute was removed. The result that a run of the tests using flask==2.3.0 would fail. This change updates the use of flask's json mechanisms to be in line with the new standard, and similarly updates the tests to utilize those mechanisms correctly.

From other pull requests I wasn't able to tell whether there is still a Travis project that is watching this repository, but if there is and if I've understood the setup correctly, the tests should validate that this change causes the tests to pass with flask 2.3.2

Closes #151

dsakagi added 2 commits June 2, 2023 14:15
In version 2.3.0 of flask, the JSONEncoder class was removed and the
app.json_encoder attribute was removed. The result that a run of
the tests using flask==2.3.0 would fail. This change updates the
use of flask's json mechanisms to be in line with the new standard,
and similarly updates the tests to utilize those mechanisms correctly.
@auvipy auvipy self-requested a review June 3, 2023 04:43
@auvipy auvipy merged commit a0ba6b4 into flask-api:develop Jun 3, 2023
@dsakagi dsakagi deleted the dsakagi/flask-2.3.2-compat-fix branch June 3, 2023 11:39
@dsakagi
Copy link
Contributor Author
dsakagi commented Jun 5, 2023

@auvipy thank you for the quick review and merge! Do you have any idea when it might be possible to release a new version to pypi?

@auvipy
Copy link
Collaborator
auvipy commented Jun 5, 2023

@jacebrowning can we get a new release?

@jacebrowning
Copy link
Member
jacebrowning commented Jun 5, 2023

#155 for the next release following these instructions.

@auvipy
Copy link
Collaborator
auvipy commented Jun 6, 2023

thanks a lot. I will follow that

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.

Tests broken with flask-2.3.2
3 participants
0