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

3.3.3 - Refresh with boto3, python 3 and django 3 support #28

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dekomote
Copy link

@dekomote dekomote commented Jun 8, 2020

Come September, Amazon is discontinuing sigv3 for SES. Meaning, boto will stop working for SES, so everything needs to be moved to boto3, especially libraries and projects using ses through Boto.

This PR does a bit of a refresh to sea-cucumber. Tested on python3, django3 and rewritten with boto3 it should be good for another several years now.

Python compatibility - 2.7 through 3.8
Django compatibility - 1.6 (yes, 1.6) through 3
Tested with celery 3.5 as well as 4.4.1

dekomote added 3 commits June 8, 2020 12:57
- Updated the ses client to boto3
- Added pre-commit hook config
- Added pylintrc and isort configs
- Bumped version as well as requirements
- Fixed the args issue for django 1.7+ compatibility
- Fixed the messages text for Python 3 compatibility
@dekomote dekomote changed the title Refresh with boto3, python 3 and django 3 support 3.3.3 - Refresh with boto3, python 3 and django 3 support Jun 8, 2020
dekomote and others added 3 commits September 21, 2022 13:07
- Later versions of celery don't have celery.tasks module so we import
the Task class from celery module directly
…ase class.

Since `celery == 4.0.0`, class based tasks aren't automatically registered (https://docs.celeryq.dev/en/4.0/whatsnew-4.0.html#the-task-base-class-no-longer-automatically-register-tasks) so it is recommended to use the `task` (or `shared_task`) decorators.
This commit, introduces a `send_email_task` task (using the `shared_task`) decorator and sets the base of the task to be `SendEmailTask` (now renamed to `SendEmailBaseTask`).
Add a `send_email_task` task and use the `SendEmailTask` class as a base class.
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