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

Remove dataclasses dependency #48

Merged
merged 1 commit into from
Nov 16, 2022
Merged

Remove dataclasses dependency #48

merged 1 commit into from
Nov 16, 2022

Conversation

kavalerov
Copy link
Contributor

@kavalerov kavalerov commented Nov 15, 2022

What kind of change does this PR introduce?

This PR removes the dataclasses dependency, which is not needed as the library is currently targeting Python 3.7+ (according to the pyproject.toml). From Python 3.7 onwards dataclasses is a part of Python standard library (https://docs.python.org/3/whatsnew/3.7.html).

Current behaviour (dataclasses being a declared dependency) leads to bugs and crashes when using more modern versions of Python, as discussed in the following issue: #22

Closes #22

@kavalerov
Copy link
Contributor Author

@lionellloh tagging you as you seem to have the most commits to the project in the past :) I am afraid I cannot assign anyone as a reviewer to this PR - do you mind advising what will be the right course of action to get this merged?

Also please let me know if there is anything else I need to do in terms of structuring this PR. It is an extremely minor change, so I didn't even create a new issue for this as there is an existing one discussing this problem (#22 ).

@kavalerov
Copy link
Contributor Author

@J0 Maybe you can help with the above? I've seen your contributions in supabase-py so wondering if you can help here...

Copy link
Contributor

@J0 J0 left a comment

Choose a reason for hiding this comment

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

Sure thing, thanks for your contribution!

@J0 J0 merged commit c5e1599 into supabase:master Nov 16, 2022
@J0
Copy link
Contributor

J0 commented Nov 16, 2022

We'll publish a new version end of week together with some changes but feel free to let us know if you need it sooner

@kavalerov
Copy link
Contributor Author

Thanks for merging, and no rush on my side as I have a workaround now in place.

@kavalerov kavalerov deleted the remove-dataclasses branch November 16, 2022 10:55
ShantanuNair added a commit to ShantanuNair/supabase-py that referenced this pull request Jan 27, 2023
- Dataclasses is no longer needed. It is a dependency needed only for Python < 3.7. Realtime, however requires Python >= 3.7, and so this dep isn't needed.
  - Already removed in realtime supabase/realtime-py#48
- Fixes supabase#33 (comment) This issue comes up when using this library in AWS Lambda with serverless framework plugin serverless-python-requirements and this lock file makes it hard to deploy to Lambda with environments Python >= 3.7.
greatuber pushed a commit to greatuber/supbase-py that referenced this pull request Apr 18, 2024
- Dataclasses is no longer needed. It is a dependency needed only for Python < 3.7. Realtime, however requires Python >= 3.7, and so this dep isn't needed.
  - Already removed in realtime supabase/realtime-py#48
- Fixes supabase/supabase-py#33 (comment) This issue comes up when using this library in AWS Lambda with serverless framework plugin serverless-python-requirements and this lock file makes it hard to deploy to Lambda with environments Python >= 3.7.
stealthdev88 added a commit to stealthdev88/supabase-py that referenced this pull request Nov 20, 2024
- Dataclasses is no longer needed. It is a dependency needed only for Python < 3.7. Realtime, however requires Python >= 3.7, and so this dep isn't needed.
  - Already removed in realtime supabase/realtime-py#48
- Fixes supabase/supabase-py#33 (comment) This issue comes up when using this library in AWS Lambda with serverless framework plugin serverless-python-requirements and this lock file makes it hard to deploy to Lambda with environments Python >= 3.7.
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.

AttributeError: module 'typing' has no attribute '_ClassVar'
2 participants