Skip to content

Commit

Permalink
Version Bump v2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingserious committed Mar 3, 2016
1 parent 9dbebb9 commit b0e27f8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.

### Added ###

- you can now pass a path to your .env file to the SendGridAPIClient

## [2.1.1] - 2016-03-02 ##

### Added ###

- you can now pass an apikey to the SendGridAPIClient, per issue [#168](https://github.com/sendgrid/sendgrid-python/issues/168). Thanks [Matt](https://github.com/mbernier)!
- fix .rst formatting for PyPi

Expand Down
5 changes: 2 additions & 3 deletions sendgrid/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ def __init__(self, **opts):
:type host: string
"""
path = '{0}/..'.format(os.path.abspath(os.path.dirname(__file__)))
python_http_client.Config(path)
self.path = opts.get('path', os.path.abspath(os.path.dirname(__file__)))
python_http_client.Config(self.path)
self._apikey = opts.get('apikey', os.environ.get('SENDGRID_API_KEY'))
self.useragent = 'sendgrid/{0};python_v3'.format(__version__)
self.host = opts.get('host', 'https://api.sendgrid.com')
self.path = opts.get('path', os.path.abspath(os.path.dirname(__file__)))
self.version = __version__

headers = {
Expand Down
2 changes: 1 addition & 1 deletion sendgrid/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version_info = (2, 1, 1)
version_info = (2, 2, 1)
__version__ = '.'.join(str(v) for v in version_info)

0 comments on commit b0e27f8

Please sign in to comment.