Skip to content

Commit

Permalink
Prep for 0.7.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Roy Greenfeld committed Sep 22, 2015
1 parent 5305834 commit cd39202
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
All enhancements and patches to cookiecutter-django will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [2015-09-21]
### Added
- Ability to pass in extra tracking options to mailgun via API (@wsmith)

## [2015-09-14]
### Added
- Support for `Recipient Variables`
- Version specification in python module
- Support for `Recipient Variables` (@wsmith)
- Version specification in python module (@pydanny)

## [2015-09-08]
### Changed
Expand Down
10 changes: 7 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ A Django email backend for use with Mailgun

Overview
=================
Django-Mailgun is a drop-in mail backend for Django_,
per http://docs.djangoproject.com/en/dev/topics/email/#e-mail-backends
Django-Mailgun is a drop-in mail backend for Django_.

Getting going
=============
Expand Down Expand Up @@ -69,4 +68,9 @@ validate your data for compliance with Mailgun's API; it merely maps over whatev
Mailgun's API states that no more than 3 tags are allowed per email, and each tag must be no greater than
128 characters (https://documentation.mailgun.com/user_manual.html#tagging). If you provide 4 tags,
or a tag longer than 128 characters, Django-Mailgun will attempt to send such (potentially) invalid
data. You must ensure what you send is appropriate.
data. You must ensure what you send is appropriate.

Django Email Backend Reference
================================

* http://docs.djangoproject.com/en/dev/topics/email/#e-mail-backends
8 changes: 4 additions & 4 deletions django_mailgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

from requests.packages.urllib3.filepost import encode_multipart_formdata

__version__ = '0.6.0'
version = '0.6.0'
__version__ = '0.7.0'
version = '0.7.0'


# A mapping of smtp headers to API key names, along
Expand Down Expand Up @@ -130,8 +130,8 @@ def _send(self, email_message):
headers = None

response = requests.post(self._api_url + "messages",
auth=("api", self._access_key),
data=content, headers=headers)
auth=("api", self._access_key),
data=content, headers=headers)
except:
if not self.fail_silently:
raise
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import sys

version = '0.6.0'
version = '0.7.0'

if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
Expand Down Expand Up @@ -30,7 +30,7 @@
'Framework :: Django :: 1.5',
'Framework :: Django :: 1.6',
'Framework :: Django :: 1.7',
' Framework :: Django :: 1.8',
'Framework :: Django :: 1.8',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
Expand Down
2 changes: 1 addition & 1 deletion test_django_mailgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ def test_extra_headers_map():
('o:tracking-opens', 'no'),
('v:my-var', 'my_message_id: 123'),
]
check_output_value(mb, message, test_input, expected_output)
check_output_value(mb, message, test_input, expected_output)

0 comments on commit cd39202

Please sign in to comment.