Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
213 commits
Select commit Hold shift + click to select a range
472b995
Merge pull request #320 from sendgrid/hello_world_test
thinkingserious Jun 16, 2017
504e458
Add badge
gabrielkrell Jul 31, 2017
b7a8354
Add release heads-up
gabrielkrell Jul 31, 2017
a248b3d
Add Elmer's suggestions
gabrielkrell Jul 31, 2017
c85533e
Merge pull request #326 from gabrielkrell/master
thinkingserious Aug 1, 2017
a958fe2
Deploy automatically after successful build
thinkingserious Aug 4, 2017
dc6f5db
Merge pull request #327 from sendgrid/auto_deploy
thinkingserious Aug 4, 2017
0de9775
Version Bump v4.2.1: Issue #321: Installing 4.2.0 installs the wrong …
thinkingserious Aug 4, 2017
aa8dc48
Install pandoc
thinkingserious Aug 4, 2017
eb6df37
Remove unsupported versions, inherit dependencies
gabrielkrell Aug 2, 2017
72382b9
Fix timing error
gabrielkrell Aug 2, 2017
4ff41ec
Remove config-specific activate file
gabrielkrell Aug 3, 2017
c5c86c1
Inherit tox commands from default
gabrielkrell Aug 3, 2017
3c76365
Add Dockerfile, readme
gabrielkrell Aug 5, 2017
0266f5b
Fix formatting
gabrielkrell Aug 5, 2017
41ac104
Improve README.md
gabrielkrell Aug 5, 2017
8fce318
Clarify README (again)
gabrielkrell Aug 5, 2017
84e36f6
Improve entrypoint.sh, tweak readme again
gabrielkrell Aug 5, 2017
f68dfac
Update source for prod
gabrielkrell Aug 8, 2017
4711cf6
Add syntax highlighting in Readme
gabrielkrell Aug 8, 2017
31fea3a
Add code review suggestions
gabrielkrell Aug 8, 2017
74bffd7
Move README to USAGE, new README
gabrielkrell Aug 10, 2017
720a812
Add "about" footer in readme
gabrielkrell Aug 10, 2017
975d885
Add Docker badge
gabrielkrell Aug 10, 2017
7c56e61
Add Docker references in contributing, main readme
gabrielkrell Aug 10, 2017
9bc8c9c
Merge pull request #329 from gabrielkrell/master
thinkingserious Aug 10, 2017
578b8e7
Update README versions
gabrielkrell Aug 11, 2017
1454564
Merge pull request #331 from gabrielkrell/master
thinkingserious Aug 11, 2017
abe95c5
Use default parameter in /get campaigns
gabrielkrell Aug 11, 2017
ee72464
Merge pull request #332 from gabrielkrell/master
thinkingserious Aug 11, 2017
671ed3b
Version Bump v5.0.0: fixes #328 and #321
thinkingserious Aug 11, 2017
fc83b3e
Fix ASCII encoding issue
thinkingserious Aug 11, 2017
32de4ef
Fix link to Docker README
thinkingserious Aug 11, 2017
774c4dc
Fix link to USAGE.md
thinkingserious Aug 11, 2017
f3c6cf8
Only try to deploy once, try to solve git stash issue
thinkingserious Aug 14, 2017
a5c1561
Merge branch 'master' of https://github.com/sendgrid/sendgrid-python
thinkingserious Aug 14, 2017
15c17b0
Remove ascii casting of Substitution values to permit unicode values …
Aug 21, 2017
7f1734c
Add test for unicode values used with Substitutions helper
Aug 21, 2017
f59ea5f
#336 ValueError Fix
thinkingserious Aug 29, 2017
b10d5d7
Merge pull request #337 from sendgrid/remove_wildcard
thinkingserious Aug 29, 2017
f5597fd
Version Bump v5.0.1: Pull #337, fixes issue #366: Value Error
thinkingserious Aug 29, 2017
0df4eb5
Update README script for Python 3.6
thinkingserious Aug 29, 2017
ed9465d
Allow the __str__ method for the Mail object return an String instead…
diegoc-am Aug 30, 2017
4f606ed
Merge pull request #338 from belfazt/allow-the-mail-method-have-a-pro…
thinkingserious Aug 31, 2017
f6d9852
Version Bump v5.1.0: Pull #338, Solves #292 __str__
thinkingserious Aug 31, 2017
fae1edb
Merge pull request #335 from mehronkugler/fix/334_unicode_values_in_s…
thinkingserious Aug 31, 2017
0e151f8
Version Bump v5.2.0: #335: Permit unicode string values with Substitu…
thinkingserious Aug 31, 2017
7245bcb
Mail Refactor Proposal
thinkingserious Sep 13, 2017
9bba537
Mail Send Hello World
thinkingserious Sep 13, 2017
8d36f62
Add substitutions example
thinkingserious Sep 13, 2017
201eec1
Add remaining Use Cases
thinkingserious Sep 14, 2017
877c29c
Clean Up
thinkingserious Sep 14, 2017
f08f6fa
Clean Up
thinkingserious Sep 14, 2017
2fe809f
Less confusing variable names
thinkingserious Sep 15, 2017
4304af3
coverage set up for tox
meahow Oct 1, 2017
ad78c7b
Allows users to submit rfc822 formatted email addresses
mbernier Oct 1, 2017
e03bb52
enable codecov in travis
meahow Oct 1, 2017
df8efd3
added coverage.py to travis
meahow Oct 1, 2017
e99a21f
added codecov badge to README.md
meahow Oct 1, 2017
8e64e3f
changed branch in codecov badge
meahow Oct 1, 2017
b81f016
Add test to prevent a regression when disabling click tracking
Oct 2, 2017
de19b65
Removed list_id param as it's not required as per the issue #310
waseem18 Oct 2, 2017
a74123e
Update CONTRIBUTING.md
xjlim Oct 2, 2017
fd2e28f
updated to fix the bug
mbernier Oct 2, 2017
8d24621
missing a colon -
mbernier Oct 2, 2017
84d81bb
Changed all access methods to use get/set, initialize name/email
mbernier Oct 3, 2017
922da8b
Update mail-helper-refactor.md
thinkingserious Oct 4, 2017
54eaa23
fixed documentation link in usage.md
GdMacmillan Oct 6, 2017
2ae26dc
fixed the link to usage.md in docker folder
GdMacmillan Oct 6, 2017
635c962
Added asynchronous mail send example to USE_CASES.md
LiYChristopher Oct 6, 2017
0c810f2
Fixed broken anchor tag link in USE_CASES.md
LiYChristopher Oct 6, 2017
5488528
Asynchronous Mail Send example - added an a href tag to section.
LiYChristopher Oct 6, 2017
0f7db88
installing prism locally with test/prism.sh
meahow Oct 4, 2017
9d75193
improve prism instalatino in unittests
meahow Oct 7, 2017
42f19e6
CONTRIBUTING.md updated with new prism instalation procedure
meahow Oct 7, 2017
52049fe
Update USAGE.md with one period
excfergodst Oct 9, 2017
172bf1b
Merge pull request #367 from excfergodst/patch-1
thinkingserious Oct 9, 2017
3135d79
Removed 'list_id from test'
waseem18 Oct 10, 2017
f31b540
Update CONTRIBUTING.md
ciceropablo Oct 10, 2017
1cf1cba
update code of conduct
Oct 10, 2017
f6f835e
Install unittest2 explicitely to fix python2.6 builds
denvera Oct 11, 2017
4db4ea4
Updating README.md to fix a broken link
bharatr21 Oct 11, 2017
93ca098
Merge pull request #376 from denvera/master
thinkingserious Oct 11, 2017
674271a
Merge pull request #377 from Bharat123rox/master
thinkingserious Oct 11, 2017
0228f0e
Merge pull request #373 from cli0/master
thinkingserious Oct 11, 2017
223e0cb
Merge pull request #370 from ciceropablo/patch-1
thinkingserious Oct 12, 2017
effe926
Merge pull request #351 from xjlim/fix-broken-link
thinkingserious Oct 12, 2017
5247358
Merge pull request #350 from waseem18/invalid-param-fix
thinkingserious Oct 12, 2017
48e643f
adds how to set up domain whitelabel and how to view email statistics…
adityatandon007 Oct 14, 2017
868e8cf
updating environment
adityatandon007 Oct 14, 2017
ece54bc
Merge branch 'master' into aditya/docs
adityatandon007 Oct 14, 2017
19b88ec
Revert "adds how to set up domain whitelabel and how to view email st…
adityatandon007 Oct 14, 2017
2e80c62
reverting to earlier version
adityatandon007 Oct 14, 2017
3dedcda
fixes issues
adityatandon007 Oct 15, 2017
8337afd
Merge pull request #363 from LiYChristopher/master
thinkingserious Oct 16, 2017
c276535
Fix typos in TROUBLESHOOTING.md
aaronang Oct 17, 2017
fc63040
Fix grammar in CONTRIBUTING.md
aaronang Oct 17, 2017
ac87b74
Fixed some typos
dutts Oct 18, 2017
1994940
Merge branch 'master' of https://github.com/sendgrid/sendgrid-python …
mbernier Oct 19, 2017
e784175
This is failing in #348
Oct 19, 2017
75ccf42
Merge pull request #400 from sendgrid/mbernier-patch-2
thinkingserious Oct 20, 2017
7ca4631
Merge pull request #396 from aaronang/doc/fix-typo
Oct 20, 2017
0da6aa4
Merge pull request #361 from GdMacmillan/fix-link-docker-usage-md
thinkingserious Oct 20, 2017
6746554
SEO friendly links for README, CONTRIBUTING, USAGE, and USE_CASES
whitneyrosenberg Oct 20, 2017
81f38ab
SEO friendly links from README.md to CONTRIBUTING.md
whitneyrosenberg Oct 20, 2017
52f2bcf
Update README.md - moved logo to top and added more badges
myzeprog Oct 21, 2017
03746e9
Merge pull request #397 from dutts/patch-1
Oct 21, 2017
2326eae
Merge pull request #405 from whitneyrosenberg/seo_friendly
Oct 21, 2017
5abeaa6
Merge pull request #406 from myzeprog/403-update-badges-on-readme
Oct 21, 2017
9a97cf8
Merge branch 'master' into issue_251_coverage
Oct 21, 2017
9d4cdcc
Spelling corrections in CHANGELOG, TROUBLESHOOTING and USAGE
brandon93s Oct 22, 2017
949710b
Merge pull request #407 from brandon93s/spelling
Oct 22, 2017
a99eb14
Update README.md
thinkingserious Oct 22, 2017
e6532ef
Merge pull request #364 from meahow/issue_311_prism
thinkingserious Oct 22, 2017
c0dc81f
Version Bump v5.2.1: Pull #364: Install prism with non superuser account
thinkingserious Oct 22, 2017
eb8823b
Merge pull request #352 from meahow/issue_251_coverage
Oct 22, 2017
9747075
Fix Travis Build for Python 2.6
thinkingserious Oct 22, 2017
8c44fd9
Fix Travis Build for Python 2.6
thinkingserious Oct 22, 2017
a984343
added env to gitignore, merged in master branch
mbernier Oct 22, 2017
c1f63a5
Merge branch 'master' of https://github.com/sendgrid/sendgrid-python …
mbernier Oct 22, 2017
db608f7
Merge pull request #349 from dirtycoder/add-test-disable-clicktracking
Oct 22, 2017
3d2df69
Merge branch 'master' of https://github.com/sendgrid/sendgrid-python …
mbernier Oct 22, 2017
86abbc1
Updated to fix teh NoneType errors
mbernier Oct 22, 2017
6afcf7d
Add top-level pydoc
gabrielkrell Oct 22, 2017
0ee7cda
Add docstrings: Inbound Parse helper
gabrielkrell Oct 22, 2017
7ea36a2
Updated Codecov badge to Official repo link
gr8shivam Oct 22, 2017
b75d69c
Make ASM group_id mandatory
gabrielkrell Oct 23, 2017
9a9ae6b
Limit ASM's groups_to_display
gabrielkrell Oct 23, 2017
4bc2e9c
Add a Mail/ASM unit test
gabrielkrell Oct 23, 2017
d285843
Add Mail top-level docstring
gabrielkrell Oct 23, 2017
a819394
Add docstrings to utility classes
gabrielkrell Oct 23, 2017
062c4f2
Add Mail() docstrings
gabrielkrell Oct 23, 2017
ad7f3fd
Removed duplicate 'the'
huzaifafaruqui Oct 23, 2017
0884519
Merge pull request #411 from gr8shivam/patch-1
Oct 23, 2017
e41eb22
Removed extra syllables in API retrieval heading
ab-bh Oct 23, 2017
428a9ae
Update config.py
ajiteshr7 Oct 23, 2017
2e85c52
Add tests for sendgrid.py apikey and api_key setters
Oct 23, 2017
d483214
Merge branch 'master' of https://github.com/sendgrid/sendgrid-python …
mbernier Oct 23, 2017
3f876af
added unittests and updated Email class
mbernier Oct 23, 2017
ae54113
Merge pull request #348 from sendgrid/issue_277
thinkingserious Oct 23, 2017
4302bff
Version Bump v5.3.0: #348: Allows users to submit rfc822 formatted em…
thinkingserious Oct 23, 2017
2feecae
Increase config.py coverage
jefersondaniel Oct 23, 2017
b180613
Merge branch 'master' into aditya/docs
thinkingserious Oct 23, 2017
6114af5
Merge pull request #384 from adityatandon007/aditya/docs
thinkingserious Oct 24, 2017
b403045
Find a little bug in case
daluntw Oct 24, 2017
44e8f6b
Fix #426
aa-dit-yuh Oct 24, 2017
66ad454
Merge pull request #415 from huzaifafaruqui/master
Oct 24, 2017
873d069
Merge pull request #421 from ab-bh/patch-1
Oct 24, 2017
27ca46c
Update USAGE.md
gaurav61 Oct 24, 2017
b87e7b7
Update USAGE.md
gaurav61 Oct 24, 2017
044baee
Add test for app.py
scomert Oct 24, 2017
3e81ffc
Merge branch 'master' of https://github.com/scomert/sendgrid-python
scomert Oct 24, 2017
0c422e2
Merge pull request #427 from jefersondaniel/master
Oct 24, 2017
a139826
Fix return types
gabrielkrell Oct 25, 2017
c26f675
Add Personalization, TrackingSetings, MailSettings docstrings
gabrielkrell Oct 25, 2017
6ebf12e
Merge remote-tracking branch 'upstream/master' into pydoc-update
gabrielkrell Oct 25, 2017
4f546e1
Main docstrings
gabrielkrell Oct 25, 2017
d140594
Add init docstrings
gabrielkrell Oct 25, 2017
a1466e1
Remove smart quotes
gabrielkrell Oct 25, 2017
21d6b97
Regarding #445 - Added PULL_REQUEST_TEMPLATE
s0b0lev Oct 26, 2017
b79f13a
Add a .env_sample file and Update README
trangttt Oct 27, 2017
f69bcea
Merge pull request #432 from gaurav61/patch-2
Oct 27, 2017
f483a9b
Merge pull request #431 from gaurav61/patch-1
Oct 27, 2017
30d8b56
Merge pull request #423 from ajiteshr7/patch-1
Oct 27, 2017
b12728a
Merge pull request #449 from trangttt/master
Oct 27, 2017
0db191d
Added PULL_REQUEST_TEMPLATE
dhruvramdev Oct 27, 2017
3a5533d
Use with context manager and a few PEP8 changes.
anticwitee Oct 27, 2017
3481790
Adding PULL_REQUEST_TEMPLATE
armudgal Oct 27, 2017
d69284d
Update PULL-REQUEST-TEMPLATE.md
armudgal Oct 27, 2017
9f249f1
Update PULL-REQUEST-TEMPLATE.md
armudgal Oct 27, 2017
38640eb
Add code climate
thinkingserious Oct 27, 2017
969b4a8
Merge pull request #463 from sendgrid/codeclimate
thinkingserious Oct 27, 2017
35e08ea
Merge pull request #455 from The-White-Wolf/context_manager_consistency
Oct 28, 2017
ef24b14
Merge pull request #430 from narayanaditya95/fix-docker
Oct 28, 2017
9ed5696
Merge remote-tracking branch 'upstream/master' into asm-optionality
gabrielkrell Oct 28, 2017
54e4ec7
Move ASM check to setter
gabrielkrell Oct 28, 2017
ac14b8c
modularize lengthy method
suprithcs Oct 28, 2017
d0005c7
Moved mail helper classes into separate files
runz0rd Oct 28, 2017
172cb83
Merge pull request #470 from suprithIUB/refactor
Oct 28, 2017
724fedc
Merge pull request #425 from lafentres/apikey_setters_tests
Oct 28, 2017
90ae965
Merge pull request #446 from s0b0lev/improvement/pull-request-template
Oct 28, 2017
d67c47b
Merge pull request #456 from kira0204/master
Oct 28, 2017
aa4b461
Merge branch 'master' of https://github.com/sendgrid/sendgrid-python
mbernier Oct 28, 2017
e4aebc8
updated to current master and merged changes
mbernier Oct 28, 2017
11cb19d
Merge pull request #453 from dhruvramdev/master
Oct 28, 2017
086b3c7
Merge pull request #472 from runz0rd/master
Oct 28, 2017
07cc373
Merge pull request #429 from daluntw/patch-1
Oct 28, 2017
35cc980
New PR Template
Oct 28, 2017
4148784
Documented the new error handling functionality from python-http-client
Oct 28, 2017
0bee805
Typo fix: Changed Sengrid to Sendgrid on 2 instances (both on line 58…
Kimi450 Oct 28, 2017
4d9b68d
Merge remote-tracking branch 'upstream/master' into pydoc-update
gabrielkrell Oct 29, 2017
1507bba
PEP fixes
gabrielkrell Oct 29, 2017
b84356a
Fix careless merge
gabrielkrell Oct 29, 2017
c64d7fd
Fix more broken merge stuff
gabrielkrell Oct 29, 2017
0f2ce75
Fix ASM tests
gabrielkrell Oct 29, 2017
d5d448b
Merge remote-tracking branch 'upstream/master' into asm-optionality
gabrielkrell Oct 29, 2017
2e500d5
Updated LICENSE date
dhruvhacks Oct 29, 2017
a8b70c5
Merge pull request #492 from dhruvhacks/master
Oct 29, 2017
3267c94
removing unsed import in registry
gardlt Oct 29, 2017
4f0d6f2
Merge pull request #482 from Kimi450/read_me_typo
thinkingserious Oct 29, 2017
f15bb99
Update USE_CASES.md
thinkingserious Oct 29, 2017
3ec799f
Merge pull request #481 from mptap/document-error-handling
thinkingserious Oct 29, 2017
0f991b8
Update .codeclimate.yml
Oct 30, 2017
3283c27
Merge pull request #504 from sendgrid/mbernier-patch-3
Oct 30, 2017
91b6129
remove unnecessary github PR templates
pushkyn Oct 30, 2017
8df0f4e
Merge pull request #505 from pushkyn/remove-unnecessary-pr-templates
Oct 30, 2017
4d57885
Merge pull request #433 from scomert/master
Oct 30, 2017
b072072
Merge pull request #494 from gardlt/removing-unsed-import
thinkingserious Oct 30, 2017
f1933ff
Merge pull request #438 from gabrielkrell/pydoc-update
Oct 30, 2017
02576b3
Merge branch 'master' into asm-optionality
Oct 30, 2017
7c5bf33
Merge pull request #413 from gabrielkrell/asm-optionality
Oct 30, 2017
baefcf1
Announcement about Data Platform Engineer posting
Marghodk Oct 31, 2017
200be7c
Merge pull request #518 from Marghodk/patch-1
Oct 31, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins:
pep8:
enabled: true
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
branch = True
source = sendgrid
omit = site-packages
1 change: 1 addition & 0 deletions .env_sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export SENDGRID_API_KEY=''
24 changes: 24 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!--
We appreciate the effort for this pull request but before that please make sure you read the contribution guidelines given above, then fill out the blanks below.


Please enter each Issue number you are resolving in your PR after one of the following words [Fixes, Closes, Resolves]. This will auto-link these issues and close them when this PR is merged!
e.g.
Fixes #1
Closes #2
-->
# Fixes #

### Checklist
- [ ] I have made a material change to the repo (functionality, testing, spelling, grammar)
- [ ] I have read the [Contribution Guide] and my PR follows them.
- [ ] I updated my branch with the master branch.
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added necessary documentation about the functionality in the appropriate .md file
- [ ] I have added in line documentation to the code I modified

### Short description of what this PR does:
-
-

If you have questions, please send an email to [Sendgrid](mailto:[email protected]), or file a Github Issue in this repository.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bin/
env/
include/
lib/
.Python
Expand All @@ -15,4 +16,9 @@ venv/
.tox/
profile*
README.txt
temp*.py
.coverage
coverage.xml
htmlcov
temp*.py
sendgrid.env

31 changes: 25 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,37 @@ python:
- '3.5'
- '3.6'
install:
- if [[ $TRAVIS_PYTHON_VERSION == 2.6* ]]; then pip install unittest2; fi
- python setup.py install
- pip install pyyaml
- pip install flask
- pip install six
- pip install pypandoc
- pip install coverage
- pip install codecov
# - sudo apt-get install -y pandoc
addons:
apt_packages:
- pandoc
before_script:
- mkdir prism
- mkdir prism/bin
- export PATH=$PATH:$PWD/prism/bin/
- ./test/prism.sh
- . ./test/prism.sh
- prism version
script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then unit2 discover; else python -m unittest
discover; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then coverage run -m unittest2 discover; else coverage run -m unittest discover; fi
after_script:
- codecov
before_deploy:
- python ./register.py
deploy:
provider: pypi
user: thinkingserious
password:
secure: DoM21KiMKkt/7AS6zOqTs7j3fgInrpswRTPG3cqBNRSzyfkXeXmKecCPruooxvYKLM7fPNDOuIH2phgCjdx/XBtJwghNh34n+TzhNFEiI/6pV0iS4a9gW0+QU+GMYvQmfNlA9DKQ5N20FMy4XeK8QQFarJXQwW1/a5wWftbUYvQ=
skip_cleanup: true
distributions: sdist bdist_wheel
on:
tags: true
python: '3.6'
notifications:
hipchat:
rooms:
Expand Down
42 changes: 39 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,42 @@
# Change Log
All notable changes to this project will be documented in this file.

## [5.3.0] - 2017-10-23 ##
### Added
- Pull #348: Allows users to submit rfc822 formatted email addresses
- Big thanks to [Matt Bernier](https://github.com/mbernier) for the pull request!

## [5.2.1] - 2017-10-21 ##
### Fixed
- Pull #364: Install prism with non superuser account
- Big thanks to [meahow](https://github.com/meahow) for the pull request!

## [5.2.0] - 2017-08-31 ##
### Added
- Pull #335: Permit unicode string values with Substitution helper
- Big thanks to [Mehron Kugler](https://github.com/mehronkugler) for the pull request!

## [5.1.0] - 2017-08-30 ##
### Added
- Pull #338: Allow the `__str__` method for the `Mail` object return an `String` instead of a `NoneType`
- Solves #292: The `__str__` method of the `Mail` class, doesn't actually return anything
- Big thanks to [belfazt](https://github.com/belfazt) for the pull request!

## [5.0.1] - 2017-08-29
### Fix
- Pull #337, fixes issue #366
- On install, some experienced: `ValueError: ("Expected ',' or end-of-list in", 'python-http-client ==3.0.*', 'at', '*')`

## [5.0.0] - 2017-08-11
### BREAKING CHANGE
- The breaking change actually happened in [version 4.2.1](https://github.com/sendgrid/sendgrid-python/releases/tag/v4.2.1), where I mistakenly applied a patch version bump. See issues #328 and #321 for details.
- This version (5.0.0) replaces error handling via HTTPError from urllib in favor of custom error handling via the [HTTPError class](https://github.com/sendgrid/python-http-client/blob/master/python_http_client/exceptions.py) as was the case in version 4.2.0.

## [4.2.1] - 2017-08-03 ##
### Fixed
- Issue #321: Installing 4.2.0 installs the wrong version of python-http-client
- Big thanks to [w-](https://github.com/w-) for the heads up!

## [4.2.0] - 2017-06-01 ##
### Added
- Pull #318 Add ability to reset request headers on client attribute
Expand All @@ -15,7 +51,7 @@ All notable changes to this project will be documented in this file.
### BREAKING CHANGE
- Pull #244 [refactor helpers using property getter/setter](https://github.com/sendgrid/sendgrid-python/pull/244/files)
- Big thanks to [Denis Vlasov](https://github.com/denis90) for the pull request!
- The changes break the impelmentation of the [Mail Helper](https://github.com/sendgrid/sendgrid-python/tree/master/sendgrid/helpers/mail) `Mail()` class
- The changes break the implementation of the [Mail Helper](https://github.com/sendgrid/sendgrid-python/tree/master/sendgrid/helpers/mail) `Mail()` class
- `set_from()` is now the property `from_email`
- `set_subject()` is now the property `subject`
- `set_template_id()` is now the property `template_id`
Expand Down Expand Up @@ -273,7 +309,7 @@ All notable changes to this project will be documented in this file.
## [1.5.9] - 2015-10-26 ##

### Added ###
- Supression Unsubscribes [GET]
- Suppression Unsubscribes [GET]

## [1.5.8] - 2015-10-21 ##

Expand Down Expand Up @@ -306,7 +342,7 @@ All notable changes to this project will be documented in this file.
### Added ###
- Refactored tests and added Tox support
- Framework for Web API v3 endpoints
- Web API v3 endpionts: apikeys, ASM groups and ASM suppressions
- Web API v3 endpoints: apikeys, ASM groups and ASM suppressions

### Fixed ###
- Python 3 Fix [#126](https://github.com/sendgrid/sendgrid-python/issues/126)
Expand Down
41 changes: 41 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# SendGrid Community Code of Conduct

The SendGrid open source community is made up of members from around the globe with a diverse set of skills, personalities, and experiences. It is through these differences that our community experiences successes and continued growth. When you're working with members of the community, we encourage you to follow these guidelines, which help steer our interactions and strive to maintain a positive, successful and growing community.

### Be Open
Members of the community are open to collaboration, whether it's on pull requests, code reviews, approvals, issues or otherwise. We're receptive to constructive comments and criticism, as the experiences and skill sets of all members contribute to the whole of our efforts. We're accepting of all who wish to take part in our activities, fostering an environment where anyone can participate, and everyone can make a difference.

### Be Considerate
Members of the community are considerate of their peers, which include other contributors and users of SendGrid. We're thoughtful when addressing the efforts of others, keeping in mind that often the labor was completed with the intent of the good of the community. We're attentive in our communications, whether in person or online, and we're tactful when approaching differing views.

### Be Respectful
Members of the community are respectful. We're respectful of others, their positions, their skills, their commitments and their efforts. We're respectful of the volunteer efforts that permeate the SendGrid community. We're respectful of the processes outlined in the community, and we work within them. When we disagree, we are courteous in raising our issues. Overall, we're good to each other. We contribute to this community not because we have to, but because we want to. If we remember that, these guidelines will come naturally.

## Additional Guidance

### Disclose Potential Conflicts of Interest
Community discussions often involve interested parties. We expect participants to be aware when they are conflicted due to employment or other projects they are involved in and disclose those interests to other project members. When in doubt, over-disclose. Perceived conflicts of interest are important to address so that the community’s decisions are credible even when unpopular, difficult or favorable to the interests of one group over another.

### Interpretation
This Code is not exhaustive or complete. It is not a rulebook; it serves to distill our common understanding of a collaborative, shared environment and goals. We expect it to be followed in spirit as much as in the letter. When in doubt, try to abide by [SendGrid’s cultural values](https://sendgrid.com/blog/employee-engagement-the-4h-way) defined by our “4H’s”: Happy, Hungry, Humble and Honest.

### Enforcement
Most members of the SendGrid community always comply with this Code, not because of the existence of this Code, but because they have long experience participating in open source communities where the conduct described above is normal and expected. However, failure to observe this Code may be grounds for suspension, reporting the user for abuse or changing permissions for outside contributors.

## If you have concerns about someone’s conduct
**Initiate Direct Contact** - It is always appropriate to email a community member (if contact information is available), mention that you think their behavior was out of line, and (if necessary) point them to this Code.

**Discuss Publicly** - Discussing publicly is always acceptable. Note, though, that approaching the person directly may be better, as it tends to make them less defensive, and it respects the time of other community members, so you probably want to try direct contact first.

**Contact the Moderators** - You can reach the SendGrid moderators by emailing [email protected].

## Submission to SendGrid Repositories
Finally, just a reminder, changes to the SendGrid repositories will only be accepted upon completion of the [SendGrid Contributor Agreement](https://cla.sendgrid.com).

## Attribution

SendGrid thanks the following, on which it draws for content and inspiration:

[Python Community Code of Conduct](https://www.python.org/psf/codeofconduct/)
[Open Source Initiative General Code of Conduct](https://opensource.org/codeofconduct)
[Apache Code of Conduct](https://www.apache.org/foundation/policies/conduct.html)
34 changes: 20 additions & 14 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Hello! Thank you for choosing to help contribute to one of the SendGrid open sou

- [CLAs and CCLAs](#cla)
- [Roadmap & Milestones](#roadmap)
- [Feature Request](#feature_request)
- [Submit a Bug Report](#submit_a_bug_report)
- [Improvements to the Codebase](#improvements_to_the_codebase)
- [Understanding the Code Base](#understanding_the_codebase)
- [Feature Request](#feature-request)
- [Submit a Bug Report](#submit-a-bug-report)
- [Improvements to the Codebase](#improvements-to-the-codebase)
- [Understanding the Code Base](#understanding-the-codebase)
- [Testing](#testing)
- [Style Guidelines & Naming Conventions](#style_guidelines_and_naming_conventions)
- [Creating a Pull Request](#creating_a_pull_request)
- [Style Guidelines & Naming Conventions](#style-guidelines-and-naming-conventions)
- [Creating a Pull Request](#creating-a-pull-request)

<a name="roadmap"></a>
We use [Milestones](https://github.com/sendgrid/sendgrid-python/milestones) to help define current roadmaps, please feel free to grab an issue from the current milestone. Please indicate that you have begun work on it to avoid collisions. Once a PR is made, community review, comments, suggestions and additional PRs are welcomed and encouraged.
Expand All @@ -26,7 +26,7 @@ When you create a Pull Request, after a few seconds, a comment will appear with

There are a few ways to contribute, which we'll enumerate below:

<a name="feature_request"></a>
<a name="feature-request"></a>
## Feature Request

If you'd like to make a feature request, please read this section.
Expand All @@ -36,7 +36,7 @@ The GitHub issue tracker is the preferred channel for library feature requests,
- Please **search for existing issues** in order to ensure we don't have duplicate bugs/feature requests.
- Please be respectful and considerate of others when commenting on issues

<a name="submit_a_bug_report"></a>
<a name="submit-a-bug-report"></a>
## Submit a Bug Report

Note: DO NOT include your credentials in ANY code examples, descriptions, or media you make public.
Expand All @@ -53,13 +53,16 @@ Before you decide to create a new issue, please try the following:

In order to make the process easier, we've included a [sample bug report template]((https://github.com/sendgrid/sendgrid-python/.github/ISSUE_TEMPLATE)) (borrowed from [Ghost](https://github.com/TryGhost/Ghost/)). The template uses [GitHub flavored markdown](https://help.github.com/articles/github-flavored-markdown/) for formatting.

<a name="improvements_to_the_codebase"></a>
<a name="improvements-to-the-codebase"></a>
## Improvements to the Codebase

We welcome direct contributions to the sendgrid-python code base. Thank you!

### Development Environment ###

#### Using Docker ####
You can use our Docker image to avoid setting up the development environment yourself. See [USAGE.md](https://github.com/sendgrid/sendgrid-python/blob/master/docker/USAGE.md).

#### Install and Run Locally ####

##### Prerequisites #####
Expand Down Expand Up @@ -92,7 +95,7 @@ See the [examples folder](https://github.com/sendgrid/sendgrid-python/tree/maste

If testing from the root directory of this repo, create a new file (e.g. test.py) and replace `import sendgrid` with `from sendgrid import *`

<a name="understanding_the_codebase"></a>
<a name="understanding-the-codebase"></a>
## Understanding the Code Base

**/examples**
Expand Down Expand Up @@ -128,12 +131,15 @@ For Python 2.7.* and up:

All PRs require passing tests before the PR will be reviewed.

#### Prequisites: ####
#### Prerequisites: ####

The above local "Initial setup" is complete

* [pyenv](https://github.com/yyuu/pyenv)
* [tox](https://pypi.python.org/pypi/tox)
* [prism](https://github.com/stoplightio/prism) v0.6 - It should be available in your PATH, but unittest script
will try to install it locally if not found. Apart from PATH env variable it will check in `~/bin` and `/usr/local/bin`.
You can install by yourself it in user dir by calling `source test/prism.sh`.

#### Initial setup: ####

Expand All @@ -156,7 +162,7 @@ source venv/bin/activate
tox
```

<a name="style_guidelines_and_naming_conventions"></a>
<a name="style-guidelines-and-naming-conventions"></a>
## Style Guidelines & Naming Conventions

Generally, we follow the style guidelines as suggested by the official language. However, we ask that you conform to the styles that already exist in the library. If you wish to deviate, please explain your reasoning.
Expand All @@ -169,7 +175,7 @@ Please run your code through:
- [pylint](https://www.pylint.org/)
- [pep8](https://pypi.python.org/pypi/pep8)

## Creating a Pull Request<a name="creating_a_pull_request"></a>
## Creating a Pull Request<a name="creating-a-pull-request"></a>

1. [Fork](https://help.github.com/fork-a-repo/) the project, clone your fork,
and configure the remotes:
Expand Down Expand Up @@ -199,7 +205,7 @@ Please run your code through:

4. Commit your changes in logical chunks. Please adhere to these [git commit
message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
or your code is unlikely be merged into the main project. Use Git's
or your code is unlikely to be merged into the main project. Use Git's
[interactive rebase](https://help.github.com/articles/interactive-rebase)
feature to tidy up your commits before making them public.

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2012-2016 SendGrid, Inc.
Copyright (c) 2012-2017 SendGrid, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
Expand Down
Loading