graphql-python / graphql-server

This is the core package for using GraphQL in a custom server easily
MIT License
120 stars 72 forks source link

Update dependencies #99

Closed kiendang closed 1 year ago

kiendang commented 1 year ago

Update dependencies so that the package works with the latest framework versions in preparation for a stable v3 release. See #96 for context.

The PR's been rebased for convenient commit by commit review.

From sanic v21 view now requires defining the method get, post, ... independently otherwise will throw 405, thus the current approach of overriding dispatch_request won't work. The workaround is to just assign the individual method to dispatch_request

async def __handle_request(self, request, ...): ... # previously dispatch_request

get = post = put = head = options = patch = delete = __handle_request

Close #86 Close #92 Close #94 Close #98

Supersede #87, #89, #91, #95.

@erikwrede

kiendang commented 1 year ago

Push a few more commits to add python 3.11 and remove 3.6 (EOL) which I suspect is what makes the tests fail.