Merge pull request #2 from python/tox test with tox
Merge pull request #2 from python/tox
test with tox
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.
See requirements for details.
You can use following environment variables to configure the mailer webhook:
SENDER_EMAIL
RECIPIENT_EMAIL
SMTP_HOSTNAME
'localhost'
SMTP_PORT
1025
SMTP_USERNAME
SMTP_PASSWORD
PORT
8585
$ SENDER_EMAIL=sender@example.com RECIPIENT_EMAIL=recipient@example.com SMTP_USERNAME=spam SMTP_PASSWORD=eggs python3 mailer.py
You can use aiosmtpd as an SMTP server during development:
$ python -m aiosmtpd -nd -l localhost:1025
Testing requires tox to be installed, then is as simple as running
$ tox
To run the linter, reformatter, and tests in one shot.
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
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 to1025.SMTP_USERNAME: This is optional.SMTP_PASSWORD: This is optional.PORT: This is optional. Defaults to8585.Usage
Development
You can use aiosmtpd as an SMTP server during development:
Testing
Testing requires tox to be installed, then is as simple as running
To run the linter, reformatter, and tests in one shot.