We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
c7n-mailer - azure sendgrid pinned version not compatible with requirements.txt
The requirements.txt is installing sendgrid==6.1.0, but we are pinned to sendgrid==6.0.5.

We should look if it's possible to remove the pin in our setup.py

## Error:
`c7n-mailer 0.5.4 has requirement sendgrid==6.0.5, but you'll have sendgrid 6.1.0 which is incompatible.`

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `tools/c7n_mailer/setup.py`
Content:
```
1 # Copyright 2015-2017 Capital One Services, LLC
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 from __future__ import absolute_import, division, print_function, unicode_literals
15 
16 from io import open
17 from os import path
18 from setuptools import setup, find_packages
19 
20 # *Any* updates here should also go into c7n_mailer/deploy.py for lambda packaging.
21 requires = [
22     "Jinja2",
23     "boto3",
24     "jsonschema",
25     "simplejson",  # datadog packaging dep
26     "python-dateutil>=2.8",
27     "ruamel.yaml>=0.15.93",
28     "datadog",
29     "sendgrid==6.0.5",
30     "ldap3",
31     "c7n",
32     "redis"]
33 
34 
35 try:
36     from concurrent import futures  # noqa F401
37 except ImportError:
38     # The backport has SyntaxErrors under py36, so avoid installing it.
39     # https://github.com/agronholm/pythonfutures/issues/41
40     requires += ['futures']
41 
42 # read the contents of your README file
43 this_directory = path.abspath(path.dirname(__file__))
44 readme = path.join(this_directory, 'README.md')
45 long_description = ''
46 if path.exists(readme):
47     with open(readme, encoding='utf-8') as f:
48         long_description = f.read()
49 
50 setup(
51     name="c7n_mailer",
52     version='0.5.4',
53     description="Cloud Custodian - Reference Mailer",
54     long_description=long_description,
55     long_description_content_type='text/markdown',
56     classifiers=[
57         "Topic :: System :: Systems Administration",
58         "Topic :: System :: Distributed Computing"
59     ],
60     url="https://github.com/cloud-custodian/cloud-custodian",
61     license="Apache-2.0",
62     packages=find_packages(),
63     entry_points={
64         'console_scripts': [
65             'c7n-mailer = c7n_mailer.cli:main',
66             'c7n-mailer-replay = c7n_mailer.replay:main'
67         ]
68     },
69     install_requires=requires,
70     package_data={str(''): [str('msg-templates/*.j2')]},
71 )
72
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/tools/c7n_mailer/setup.py b/tools/c7n_mailer/setup.py
--- a/tools/c7n_mailer/setup.py
+++ b/tools/c7n_mailer/setup.py
@@ -26,7 +26,7 @@
     "python-dateutil>=2.8",
     "ruamel.yaml>=0.15.93",
     "datadog",
-    "sendgrid==6.0.5",
+    "sendgrid>=6.0.5,<7.0",
     "ldap3",
     "c7n",
     "redis"]

{"golden_diff": "diff --git a/tools/c7n_mailer/setup.py b/tools/c7n_mailer/setup.py\n--- a/tools/c7n_mailer/setup.py\n+++ b/tools/c7n_mailer/setup.py\n@@ -26,7 +26,7 @@\n     \"python-dateutil>=2.8\",\n     \"ruamel.yaml>=0.15.93\",\n     \"datadog\",\n-    \"sendgrid==6.0.5\",\n+    \"sendgrid>=6.0.5,<7.0\",\n     \"ldap3\",\n     \"c7n\",\n     \"redis\"]\n", "issue": "c7n-mailer - azure sendgrid pinned version not compatible with requirements.txt\nThe requirements.txt is installing sendgrid==6.1.0, but we are pinned to sendgrid==6.0.5.\r\n\r\nWe should look if it's possible to remove the pin in our setup.py\r\n\r\n## Error:\r\n`c7n-mailer 0.5.4 has requirement sendgrid==6.0.5, but you'll have sendgrid 6.1.0 which is incompatible.`\n", "before_files": [{"content": "# Copyright 2015-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom io import open\nfrom os import path\nfrom setuptools import setup, find_packages\n\n# *Any* updates here should also go into c7n_mailer/deploy.py for lambda packaging.\nrequires = [\n    \"Jinja2\",\n    \"boto3\",\n    \"jsonschema\",\n    \"simplejson\",  # datadog packaging dep\n    \"python-dateutil>=2.8\",\n    \"ruamel.yaml>=0.15.93\",\n    \"datadog\",\n    \"sendgrid==6.0.5\",\n    \"ldap3\",\n    \"c7n\",\n    \"redis\"]\n\n\ntry:\n    from concurrent import futures  # noqa F401\nexcept ImportError:\n    # The backport has SyntaxErrors under py36, so avoid installing it.\n    # https://github.com/agronholm/pythonfutures/issues/41\n    requires += ['futures']\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nreadme = path.join(this_directory, 'README.md')\nlong_description = ''\nif path.exists(readme):\n    with open(readme, encoding='utf-8') as f:\n        long_description = f.read()\n\nsetup(\n    name=\"c7n_mailer\",\n    version='0.5.4',\n    description=\"Cloud Custodian - Reference Mailer\",\n    long_description=long_description,\n    long_description_content_type='text/markdown',\n    classifiers=[\n        \"Topic :: System :: Systems Administration\",\n        \"Topic :: System :: Distributed Computing\"\n    ],\n    url=\"https://github.com/cloud-custodian/cloud-custodian\",\n    license=\"Apache-2.0\",\n    packages=find_packages(),\n    entry_points={\n        'console_scripts': [\n            'c7n-mailer = c7n_mailer.cli:main',\n            'c7n-mailer-replay = c7n_mailer.replay:main'\n        ]\n    },\n    install_requires=requires,\n    package_data={str(''): [str('msg-templates/*.j2')]},\n)\n", "path": "tools/c7n_mailer/setup.py"}], "after_files": [{"content": "# Copyright 2015-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom io import open\nfrom os import path\nfrom setuptools import setup, find_packages\n\n# *Any* updates here should also go into c7n_mailer/deploy.py for lambda packaging.\nrequires = [\n    \"Jinja2\",\n    \"boto3\",\n    \"jsonschema\",\n    \"simplejson\",  # datadog packaging dep\n    \"python-dateutil>=2.8\",\n    \"ruamel.yaml>=0.15.93\",\n    \"datadog\",\n    \"sendgrid>=6.0.5,<7.0\",\n    \"ldap3\",\n    \"c7n\",\n    \"redis\"]\n\n\ntry:\n    from concurrent import futures  # noqa F401\nexcept ImportError:\n    # The backport has SyntaxErrors under py36, so avoid installing it.\n    # https://github.com/agronholm/pythonfutures/issues/41\n    requires += ['futures']\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nreadme = path.join(this_directory, 'README.md')\nlong_description = ''\nif path.exists(readme):\n    with open(readme, encoding='utf-8') as f:\n        long_description = f.read()\n\nsetup(\n    name=\"c7n_mailer\",\n    version='0.5.4',\n    description=\"Cloud Custodian - Reference Mailer\",\n    long_description=long_description,\n    long_description_content_type='text/markdown',\n    classifiers=[\n        \"Topic :: System :: Systems Administration\",\n        \"Topic :: System :: Distributed Computing\"\n    ],\n    url=\"https://github.com/cloud-custodian/cloud-custodian\",\n    license=\"Apache-2.0\",\n    packages=find_packages(),\n    entry_points={\n        'console_scripts': [\n            'c7n-mailer = c7n_mailer.cli:main',\n            'c7n-mailer-replay = c7n_mailer.replay:main'\n        ]\n    },\n    install_requires=requires,\n    package_data={str(''): [str('msg-templates/*.j2')]},\n)\n", "path": "tools/c7n_mailer/setup.py"}]}