Skip to content

Commit

Permalink
Minimum SOAR version -> 6.1.1, cleanup of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bb-splunk committed Dec 11, 2023
1 parent 472f7b0 commit f37f132
Show file tree
Hide file tree
Showing 17 changed files with 13 additions and 84 deletions.
82 changes: 3 additions & 79 deletions awslambda.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,69 +14,13 @@
"utctime_updated": "2022-02-04T17:14:48.000000Z",
"package_name": "phantom_awslambda",
"main_module": "awslambda_connector.py",
"min_phantom_version": "5.5.0",
"min_phantom_version": "6.6.1",
"fips_compliant": true,
"python_version": "3",
"latest_tested_versions": [
"Cloud API, September 13, 2021"
],
"app_wizard_version": "1.0.0",
"pip_dependencies": {
"wheel": [
{
"module": "boto3",
"input_file": "wheels/shared/boto3-1.17.30-py2.py3-none-any.whl"
},
{
"module": "botocore",
"input_file": "wheels/shared/botocore-1.20.112-py2.py3-none-any.whl"
},
{
"module": "certifi",
"input_file": "wheels/shared/certifi-2021.10.8-py2.py3-none-any.whl"
},
{
"module": "chardet",
"input_file": "wheels/shared/chardet-3.0.4-py2.py3-none-any.whl"
},
{
"module": "docutils",
"input_file": "wheels/shared/docutils-0.18-py2.py3-none-any.whl"
},
{
"module": "futures",
"input_file": "wheels/py2/futures-3.3.0-py2-none-any.whl"
},
{
"module": "idna",
"input_file": "wheels/shared/idna-2.10-py2.py3-none-any.whl"
},
{
"module": "jmespath",
"input_file": "wheels/shared/jmespath-0.10.0-py2.py3-none-any.whl"
},
{
"module": "python_dateutil",
"input_file": "wheels/shared/python_dateutil-2.8.2-py2.py3-none-any.whl"
},
{
"module": "requests",
"input_file": "wheels/shared/requests-2.25.0-py2.py3-none-any.whl"
},
{
"module": "s3transfer",
"input_file": "wheels/shared/s3transfer-0.3.7-py2.py3-none-any.whl"
},
{
"module": "six",
"input_file": "wheels/shared/six-1.15.0-py2.py3-none-any.whl"
},
{
"module": "urllib3",
"input_file": "wheels/shared/urllib3-1.26.7-py2.py3-none-any.whl"
}
]
},
"pip3_dependencies": {
"wheel": [
{
Expand All @@ -87,22 +31,6 @@
"module": "botocore",
"input_file": "wheels/shared/botocore-1.20.112-py2.py3-none-any.whl"
},
{
"module": "certifi",
"input_file": "wheels/shared/certifi-2021.10.8-py2.py3-none-any.whl"
},
{
"module": "chardet",
"input_file": "wheels/shared/chardet-3.0.4-py2.py3-none-any.whl"
},
{
"module": "docutils",
"input_file": "wheels/shared/docutils-0.18-py2.py3-none-any.whl"
},
{
"module": "idna",
"input_file": "wheels/shared/idna-2.10-py2.py3-none-any.whl"
},
{
"module": "jmespath",
"input_file": "wheels/shared/jmespath-0.10.0-py2.py3-none-any.whl"
Expand All @@ -111,21 +39,17 @@
"module": "python_dateutil",
"input_file": "wheels/shared/python_dateutil-2.8.2-py2.py3-none-any.whl"
},
{
"module": "requests",
"input_file": "wheels/shared/requests-2.25.0-py2.py3-none-any.whl"
},
{
"module": "s3transfer",
"input_file": "wheels/shared/s3transfer-0.3.7-py2.py3-none-any.whl"
},
{
"module": "six",
"input_file": "wheels/shared/six-1.15.0-py2.py3-none-any.whl"
"input_file": "wheels/shared/six-1.16.0-py2.py3-none-any.whl"
},
{
"module": "urllib3",
"input_file": "wheels/shared/urllib3-1.26.7-py2.py3-none-any.whl"
"input_file": "wheels/shared/urllib3-1.26.18-py2.py3-none-any.whl"
}
]
},
Expand Down
3 changes: 1 addition & 2 deletions awslambda_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import botocore.response as br
import phantom.app as phantom
import requests
import six
from boto3 import Session, client
from botocore.config import Config
from phantom.action_result import ActionResult
Expand Down Expand Up @@ -63,7 +62,7 @@ def _sanitize_data(self, cur_obj):

if isinstance(cur_obj, dict):
new_dict = {}
for k, v in six.iteritems(cur_obj):
for k, v in cur_obj.items():
if isinstance(v, br.StreamingBody):
content = v.read()
new_dict[k] = json.loads(content)
Expand Down
2 changes: 2 additions & 0 deletions release_notes/unreleased.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
**Unreleased**
* Updated dependencies
* Minimum SOAR version is now 6.1.1
3 changes: 0 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
boto3==1.17.30
docutils==0.18
requests==2.25.0
six==1.15.0
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[flake8]
max-line-length = 145
max-complexity = 28
extend-ignore = F403,E128,E126,E111,E121,E127,E731,E201,E202,F405,E722,D,W292

[isort]
line_length = 145
Binary file removed wheels/docutils-0.14-py2-none-any.whl
Binary file not shown.
Binary file removed wheels/py2/futures-3.3.0-py2-none-any.whl
Binary file not shown.
Binary file removed wheels/s3transfer-0.1.12-py2.py3-none-any.whl
Binary file not shown.
Binary file not shown.
Binary file removed wheels/shared/chardet-3.0.4-py2.py3-none-any.whl
Binary file not shown.
Binary file removed wheels/shared/docutils-0.18-py2.py3-none-any.whl
Binary file not shown.
Binary file removed wheels/shared/idna-2.10-py2.py3-none-any.whl
Binary file not shown.
Binary file removed wheels/shared/requests-2.25.0-py2.py3-none-any.whl
Binary file not shown.
Binary file removed wheels/shared/six-1.15.0-py2.py3-none-any.whl
Binary file not shown.
Binary file added wheels/shared/six-1.16.0-py2.py3-none-any.whl
Binary file not shown.
Binary file not shown.
Binary file removed wheels/shared/urllib3-1.26.7-py2.py3-none-any.whl
Binary file not shown.

0 comments on commit f37f132

Please sign in to comment.