Skip to content

Bring compatibility with Channels v3 #76

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

Conversation

fabienheureux
Copy link
Collaborator

@fabienheureux fabienheureux commented Aug 20, 2021

Channels v3 is currently not supported.
This bring changes from #74 alongside an import that does not work with channels because it was renamed in django/channels@4f32074#diff-8adaf2e6e01ec2cc05dd10bfd212d6dddfadabe0ddc679b821e03024806647b7

Also in this PR, I added github actions in order to have the tests running again on push/PR https://github.com/fabienheureux/graphql-ws/runs/3380650273?check_suite_focus=true

@fabienheureux fabienheureux changed the title Fix channels import Bring compatibility with Channels v3 Aug 20, 2021
@fabienheureux fabienheureux marked this pull request as ready for review August 20, 2021 07:26
Copy link
Member

@jkimbo jkimbo left a comment

Choose a reason for hiding this comment

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

Changes look fine but it looks like tests aren't running. Probably worth moving to github actions?

@fabienheureux
Copy link
Collaborator Author

Changes look fine but it looks like tests aren't running. Probably worth moving to github actions?

I added a workflow/ci.yml file, but I don't understand why actions are not ran.
Any idea ? Is there something needed to enable Github actions in the repo's settings maybe ?

@fabienheureux
Copy link
Collaborator Author

Ha nevermind, they are ran on the fork https://github.com/fabienheureux/graphql-ws/actions

@fabienheureux
Copy link
Collaborator Author

django==2.*; python_version>="3"
channels==2.*; python_version>="3"
django==3.*; python_version>="3"
channels==3.*; python_version>="3"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is it safe to assume all python >3 users will use django ?

Copy link
Member

Choose a reason for hiding this comment

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

Not sure what you mean?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I meant "will use django 3"

@@ -91,7 +91,7 @@ def test_observer_data():
send_error=send_error,
send_message=send_message,
)
observer.on_next('data')
observer.on_next("data")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I ran black on the repo locally to fix various code style issues

@jkimbo jkimbo merged commit 474f733 into graphql-python:master Aug 23, 2021
@fabienheureux fabienheureux deleted the fix/channels-3-compatibility branch August 23, 2021 11:06
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