Skip to content

Commit ed0c849

Browse files
PE-17078: Updated Lambda for maile to fix for NNA accounts
1 parent 79883be commit ed0c849

4 files changed

Lines changed: 16 additions & 1 deletion

File tree

tools/c7n_mailer/c7n_mailer/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def dispatch(event, context):
3636
'google', 'pyasn1_modules', 'rsa', 'cachetools', 'googleapiclient',
3737
'httplib2', 'pyparsing', 'uritemplate', 'google_auth_httplib2', 'retrying', 'pyrate_limiter',
3838
# for other dependencies
39-
'pkg_resources', 'packaging',
39+
'pkg_resources', 'packaging', 'jaraco', 'more_itertools', 'backports', 'zipp', 'platformdirs',
4040
# transport datadog - recursive deps
4141
'datadog', 'decorator',
4242
# requests (recursive deps), needed by datadog, slackclient, splunk

tools/c7n_mailer/pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ types-six = "^1.16.10"
3535
importlib-metadata = ">=4.11.1, <5.0"
3636
jira = "^3.2.0"
3737
packaging = ">=21.0"
38+
jaraco.text = ">=3.12.1"
39+
more-itertools = ">=10.3.0"
40+
backports.tarfile = ">=1.2.0"
41+
zipp = ">=3.19.2"
42+
platformdirs = ">=4.2.2"
3843
# pin for cos-python-sdk-v5
3944
requests = "2.27.1"
4045

tools/c7n_mailer/setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
'jsonpatch>=1.25,<2.0',
1919
'jsonpointer>=2.0,<3.0',
2020
'jsonschema>=3.2.0',
21+
'jaraco.text>=3.12.1',
2122
'ldap3>=2.6.1,<3.0.0',
23+
'more-itertools>=10.3.0',
24+
'backports.tarfile>=1.2.0',
25+
'zipp>=3.19.2',
26+
'platformdirs>=4.2.2',
2227
'packaging>=21.0',
2328
'python-dateutil>=2.8.1,<3.0.0',
2429
'pyyaml>=5.4.0',

tools/c7n_mailer/tests/test_misc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,8 @@ def test_get_archive(self):
7676
filenames = archive.get_filenames()
7777
assert len(filenames) > 50 # should be > 500
7878
assert any(n.startswith("packaging/") for n in filenames)
79+
assert any(n.startswith("jaraco/") for n in filenames)
80+
assert any(n.startswith("more_itertools/") for n in filenames)
81+
assert any(n.startswith("backports/") for n in filenames)
82+
assert any(n.startswith("zipp") for n in filenames)
83+
assert any(n.startswith("platformdirs/") for n in filenames)

0 commit comments

Comments
 (0)