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

feat: Add EmailTransportMailjet to email.py #1162

Merged
merged 8 commits into from
May 20, 2024

Conversation

bb-mausbrand
Copy link
Contributor

No description provided.

Copy link
Member

@sveneberth sveneberth left a comment

Choose a reason for hiding this comment

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

Hey @bb-mausbrand,
thanks for your contributing.

Since you are new, a few words about the syntax:

  • We use a linter that runs via GitHub Action, locally you can start it with pipenv run pep8check — after you have installed your pipenv (you seem to have done that already). Please correct what he complains about :)
  • We generally use double quotes ("), not single (') for strings.

And a few comments on the content, in addition to the other comments:

  • Please regenerate the requirements.txt once after you have changed packages. Otherwise they will not be in the python wheel later.
    pipenv install --dev
    pipenv requirements --hash > src/viur/core/requirements.txt
    @phorward We could think about making the mailjet-rest package an extra. That way it won't be installed if you don't need it.
  • Please add conf.email.mailjet_api_key and conf.email.mailjet_api_secret to the config object.

src/viur/core/email.py Outdated Show resolved Hide resolved
src/viur/core/email.py Outdated Show resolved Hide resolved
@sveneberth sveneberth added feature New feature or request Priority: Medium This issue may be useful, and needs some attention. labels May 14, 2024
@sveneberth sveneberth changed the title add EmailTransportMailjet to email.py feat: Add EmailTransportMailjet to email.py May 14, 2024
@sveneberth sveneberth changed the base branch from main to develop May 14, 2024 17:30
@sveneberth sveneberth added this to the ViUR-core v3.7 milestone May 14, 2024
@phorward phorward changed the base branch from develop to main May 15, 2024 09:28
@phorward phorward added the main label May 15, 2024
phorward
phorward previously approved these changes May 15, 2024
Pipfile Outdated Show resolved Hide resolved
Copy link
Member

@phorward phorward left a comment

Choose a reason for hiding this comment

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

@phorward We could think about making the mailjet-rest package an extra. That way it won't be installed if you don't need it.

@bb-mausbrand can you please find out how to define extras as dependencies, and maybe tie it together with the pipenv-based tooling (see CONTRIBUTING.md for a short explanation).

Copy link
Member

@phorward phorward left a comment

Choose a reason for hiding this comment

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

Hello @bb-mausbrand,

I've found some issues regarding the final pull request. Can you check them out?

src/viur/core/email.py Outdated Show resolved Hide resolved
src/viur/core/email.py Outdated Show resolved Hide resolved
src/viur/core/email.py Outdated Show resolved Hide resolved
src/viur/core/email.py Outdated Show resolved Hide resolved
src/viur/core/email.py Outdated Show resolved Hide resolved
Pipfile Outdated Show resolved Hide resolved
phorward
phorward previously approved these changes May 15, 2024
src/viur/core/requirements.txt Outdated Show resolved Hide resolved
src/viur/core/email.py Outdated Show resolved Hide resolved
remove extra modules from `Pipfile`
add extra modules to `setup.cfg`
update `requirements.txt`
@phorward phorward requested a review from sveneberth May 17, 2024 13:14
src/viur/core/requirements.txt Outdated Show resolved Hide resolved
@phorward phorward merged commit a5a64be into viur-framework:main May 20, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request main Priority: Medium This issue may be useful, and needs some attention.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

None yet

3 participants