Skip to content

Remove botocore from the published layers #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ COPY . .
RUN pip install . -t ./python/lib/$runtime/site-packages

# Remove *.pyc files
RUN find ./python/lib/$runtime/site-packages -name \*.pyc -delete
RUN find ./python/lib/$runtime/site-packages -name \*.pyc -delete

# Remove botocore (40MB) to reduce package size. aws-xray-sdk
# installs it, while it's already provided by the Lambda Runtime.
RUN rm -rf ./python/lib/$runtime/site-packages/botocore*
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
'ddtrace==0.28.0',
'wrapt==1.11.1',
'setuptools==40.8.0',
'boto3==1.9.160'
],
extras_require={
'dev': [
'nose2==0.9.1',
'flake8==3.7.7',
'requests==2.21.0'
'requests==2.21.0',
'boto3==1.9.160',
]
}
)
1 change: 0 additions & 1 deletion tests/test_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ def test_get_runtime_tag(self):

self.mock_python_version_tuple.return_value = ("3", "7", "2")
self.assertEqual(get_runtime_tag(), "runtime:python3.7")

1 change: 0 additions & 1 deletion tests/test_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,3 @@ def lambda_handler(event, context):
lambda_handler(lambda_event, get_mock_context())

self.mock_lambda_metric.assert_not_called()