-
-
Notifications
You must be signed in to change notification settings - Fork 536
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
Fix compatibility with starlette 0.18.0 and above #1594
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1594 +/- ##
=======================================
Coverage 98.04% 98.04%
=======================================
Files 143 143
Lines 5562 5564 +2
Branches 1023 1023
=======================================
+ Hits 5453 5455 +2
Misses 56 56
Partials 53 53 |
All tests passed locally, looks like some tests failed on the runner though.
|
Could be due to the different version of starlette on CI? |
Let me know if there are any other changes you want made to this PR. If I may suggest something, your testing could be made much more thorough if you used a tool like |
Awesome!
Yes! Hopefully people won't have too many headers :D
I'll check it soon!
We do something similar to this for django, but maybe tox is easier to use. Maybe we could mark the tests with |
I wonder how we can circumvent this issue with FastAPI not supporting the latest version of starlette 🤔 |
I guess we can wait for this PR to be merged and released 😊 fastapi/fastapi#4483 |
FastAPI is taking a long time to add support for latest starlette, so I think we should try to support both versions for a while :) |
latest starlette is now supported in fastapi. |
it's not, latest starlette is 0.20.0... but starlette 0.18.0 is. |
Hey folks, do we have any news on this? |
EDIT: scratch that, now 0.78.0 is out. While there is still no support for starlette 0.20.0, are we certain that we need for the latest fastapi to support the latest starlette in order to move forward, particularly given that 0.20.0 appears to mainly drop python 3.6 support, and fastapi might not be happy to do that for a while longer? @patrick91 it would be a shame for strawberry to start perpetual waiting like graphene did... |
@AntonOfTheWoods I'll update this PR soon, I'm a bit busy these days 😊 |
@Kludex does this PR look good to you? 😊 |
Thanks for adding the Here's a preview of the changelog: This release adds support for Starlette 0.18 to 0.20 It also removes upper bound dependencies limit for starlette, Here's the preview release card for twitter: Here's the tweet text:
|
Yep. If you're sure it works with Starlette <0.19.0, then it's fine 👍 |
for more information, see https://pre-commit.ci
This reverts commit 8d553f7.
Yay! :-) |
Is it an option to have one entry with latest Starlette without FastAPI installed, and skip the tests on FastAPI if not installed? |
one entry of tests? I tried that in this commit, but it didn't work: 8d553f7 I'm not sure if there's a way to force poetry to install a package, maybe I can try with pip directly, let me see. |
well, that sees to have worked! thanks @Kludex |
Thanks for contributing to Strawberry! 🎉 You've been invited to join You can also request a free sticker by filling this form: https://forms.gle/dmnfQUPoY5gZbVT67 And don't forget to join our discord server: https://strawberry.rocks/discord 🔥 |
Description
Types of Changes
Issues Fixed or Closed by This PR
Checklist