GitXplorerGitXplorer
p

webhook-mailer

public
3 stars
1 forks
0 issues

Commits

List of commits on branch main.
Verified
d52bf6bf0f3685c939f9524f1942144aabf17dbd

Merge pull request #2 from python/tox

eewdurbin committed 7 months ago
Verified
0106385131e8b668123f584823a08b5ce6c28800

test with tox

eewdurbin committed 7 months ago
Verified
1ff6fcaee059624f8a557a3d974ee37235907c08

Create LICENSE

eewdurbin committed 7 months ago
Verified
68366baff32ab922937ee1feb896c654c17039de

Updates to run on Cabotage

eewdurbin committed 7 months ago
Unverified
0f42205a3fbacb9e992757939904600ff30295a1

upgrade python runtime

eewdurbin committed 3 years ago
Unverified
77cdf6761ab2efb293b69840371c7ca59e6dc05e

deploy

eewdurbin committed 3 years ago

README

The README file for this repository.

A webhook to send every CPython commit to python-checkins mailing list. It's based on python/the-knights-who-say-ni written by Brett Cannon.

Requirements

  • CPython 3.7
  • aiohttp
  • aiosmtplib

See requirements for details.

Configuration

You can use following environment variables to configure the mailer webhook:

  • SENDER_EMAIL: This is required.
  • RECIPIENT_EMAIL: This is required.
  • SMTP_HOSTNAME: This is optional. Defaults to 'localhost'.
  • SMTP_PORT: This is optional. Defaults to 1025.
  • SMTP_USERNAME: This is optional.
  • SMTP_PASSWORD: This is optional.
  • PORT: This is optional. Defaults to 8585.

Usage

$ SENDER_EMAIL=sender@example.com RECIPIENT_EMAIL=recipient@example.com SMTP_USERNAME=spam SMTP_PASSWORD=eggs python3 mailer.py

Development

You can use aiosmtpd as an SMTP server during development:

$ python -m aiosmtpd -nd -l localhost:1025

Testing

Testing requires tox to be installed, then is as simple as running

$ tox

To run the linter, reformatter, and tests in one shot.