GitXplorerGitXplorer
z

cpython-emailer-webhook

public
0 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
9a82ffb42745c2cc28e7b9bbba8f95d1de855b3a

Add 3.7 to ALLOWED_BRANCHES

bberkerpeksag committed 7 years ago
Unverified
03ef6f5a32485a1196b84af51c286e933fe5460c

Use correct username of GitHub's account

bberkerpeksag committed 7 years ago
Unverified
6656cb0359d85edec8ff0d8590c11ed40d703d61

Use single quotes in test_mailer

bberkerpeksag committed 7 years ago
Unverified
5ac34bfbec9f3b7ccdf30658f9d31b638522cd8c

Show author's name as sender if committer info is 'GitHub'

bberkerpeksag committed 7 years ago
Unverified
eaee5e0d430db366095b8567305a7ca4ec04d27a

Don't pass 'smtp' to application factory

bberkerpeksag committed 7 years ago
Unverified
78d4a66acdddb588f4541e853f85d61cc183bdc5

Make SMTP_{USERNAME,PASSWORD} optional

bberkerpeksag committed 7 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.6
  • aiohttp
  • aiosmtplib

See requirements.txt 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