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

Update to use openapi-core 0.19.0 #220

Merged
merged 18 commits into from
Mar 7, 2024

Conversation

miketheman
Copy link
Collaborator

This is an incomplete PR, but I wanted to share where I've gotten to so far.
A lot of the foundations are based on work done in #206

This includes the assumption of remaining OpenAPI 3.0 compliant (which we can absolutely change going forward), I wanted to get as close as I could to pyramid_openapi3 0.16 before doing so - and get some clean test passes.

I had to skip a few tests to complete the pass, which I consider insufficient for merge, so I've left some TODO and FIXME inline with some notes, and would appreciate any pointers to help resolve.

I tried to split commits out to show the work done at each step, hopefully that will make reviewing easier.

@miketheman
Copy link
Collaborator Author

Side note - should Blueracer.io be removed from CI and also the branch protection requirements? The service has been discontinued.

@zupo
Copy link
Collaborator

zupo commented Feb 29, 2024

Side note - should Blueracer.io be removed from CI and also the branch protection requirements? The service has been discontinued.

Yes, please.

@zupo
Copy link
Collaborator

zupo commented Feb 29, 2024

@miketheman: this looks much better than I hoped! Was afraid a bigger rewrite was needed.

Copy link
Collaborator Author

@miketheman miketheman left a comment

Choose a reason for hiding this comment

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

I've got everything passing make all.

I'm not super familiar with nix-shell or how to update the stack correctly - I spent a few hours trying to figure it out, but ended up more confused than when I started.

pyramid_openapi3/tests/test_contenttypes.py Outdated Show resolved Hide resolved
@miketheman miketheman requested a review from zupo February 29, 2024 21:42
@zupo
Copy link
Collaborator

zupo commented Mar 7, 2024

@miketheman: can you give me write permissions to your fork, so I can push CI/nix fixes?

Also, could you rebase it off of latest main to get all the recent fixes in.

Includes updates to other dependencies.

Signed-off-by: Mike Fiedler <[email protected]>
6.0 install was failing for `cython_sources`, similar to
yaml/pyyaml#736

Signed-off-by: Mike Fiedler <[email protected]>
Not a final changeset, only a stepping-stone to the next version.

Signed-off-by: Mike Fiedler <[email protected]>
Not all tests pass, see following commits.

Signed-off-by: Mike Fiedler <[email protected]>
Signed-off-by: Mike Fiedler <[email protected]>
Signed-off-by: Mike Fiedler <[email protected]>
`InvalidCustomFormatterValue` grows in scope of responsibility, as
`FormatUnmarshalError` is no longer available.

Refs: python-openapi/openapi-core#562

Signed-off-by: Mike Fiedler <[email protected]>
@miketheman miketheman force-pushed the miketheman/update-openapi-core branch from 9775bbc to 02267d0 Compare March 7, 2024 15:21
@miketheman
Copy link
Collaborator Author

@miketheman: can you give me write permissions to your fork, so I can push CI/nix fixes?

Also, could you rebase it off of latest main to get all the recent fixes in.

Rebased, and invitation sent!

@zupo
Copy link
Collaborator

zupo commented Mar 7, 2024

@miketheman: CI found some failing tests in the examples/ folder. I fixed one, but ran out of time to do the rest, and I can't do any further work today.

The underlying openapi-code library changed how they pass back the
response body in 0.19

Refs: python-openapi/openapi-core#710

Co-authored-by: Wim De Clercq <[email protected]>
Signed-off-by: Mike Fiedler <[email protected]>
@miketheman miketheman force-pushed the miketheman/update-openapi-core branch from f615095 to 04cbaa5 Compare March 7, 2024 19:41
@miketheman
Copy link
Collaborator Author

@zupo Our powers combined, it's working! With the change to drop Python 3.8, please update the branch protection requirements to remove "Python 3.8 Tests".

@zupo zupo merged commit fa817ca into Pylons:main Mar 7, 2024
3 checks passed
@miketheman miketheman deleted the miketheman/update-openapi-core branch March 7, 2024 21:01
zupo added a commit that referenced this pull request Mar 7, 2024
Plus a bunch of gardening:
* leaftovers cleanup from #220,
* update thelist of projects using pyramid_openapi3,
* update the dev env to latest packages,
@zupo zupo mentioned this pull request Mar 7, 2024
zupo added a commit that referenced this pull request Mar 7, 2024
Plus a bunch of gardening:
* leaftovers cleanup from #220,
* update thelist of projects using pyramid_openapi3,
* update the dev env to latest packages,
zupo added a commit that referenced this pull request Mar 7, 2024
Plus a bunch of gardening:
* leaftovers cleanup from #220,
* update thelist of projects using pyramid_openapi3,
* update the dev env to latest packages,
zupo added a commit that referenced this pull request Mar 8, 2024
Plus a bunch of gardening:
* leaftovers cleanup from #220,
* update thelist of projects using pyramid_openapi3,
* update the dev env to latest packages,
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.

3 participants