Added Travis support, corrected README, fix setup license

master
androiddrew 7 years ago
parent 07c1a00dc1
commit aca55676ba

@ -0,0 +1 @@
# HISTORY

@ -1,5 +1,4 @@
# apistar-mail
---
Provides a simple interface to set up SMTP with your [APIStar](https://github.com/encode/apistar) application and send messages from your view functions. Please note this work derives largely from the [Flask-Mail](https://github.com/mattupstate/flask-mail) extension by 'Dan Jacob' and contributors, but has been modified extensively to remove Python 2 support and be used as an APIStar component.
@ -12,7 +11,7 @@ Provides a simple interface to set up SMTP with your [APIStar](https://github.co
### Example Setup
To send mail messages from your view functions you must include the `MAIL` dictionary in your settings, the mail_component in your component list, and the Mail component as a dependency in your view. Here we have a minimally viable app capable of sending an email message and returning a 204 response code:
To send mail messages from your view functions you must include the 'MAIL' dictionary in your settings, the mail_component in your component list, and the Mail component as a dependency in your view. Here we have a minimally viable app capable of sending an email message and returning a 204 response code:
```python
from apistar import Route

@ -27,13 +27,13 @@ setup(
packages=find_packages(include=['apistar_mail']),
include_package_data=True,
install_requires=requirements,
license="MIT license",
zip_safe=False,
license='BSD',
keywords='apistar_mail',
classifiers=[
'Development Status :: 1 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',

@ -0,0 +1,22 @@
sudo: false
language: python
matrix:
include:
- os: linux
python: 3.5
env: TOX_ENV=py35
- os: linux
python: 3.6
env: TOX_ENV=py36
- os: linux
python: 3.6
env: TOX_ENV=flake8
install:
- pip install tox coverage codecov
script:
- tox -e $TOX_ENV
after_success:
- codecov
Loading…
Cancel
Save