I am trying to deploy a python (3.6) lambda service using the ‘serverless deploy’ command. It hangs at this step: “Serverless: Using download cache directory /Users/…/Library/Caches/serverless-python-requirements/downloadCacheslspyc”
If I leave it hanging for too long, my mac says that it is running out of disk space leading me to believe that there is some loop or too many dependencies are being downloaded.
Here is the content of my requirements.txt file:
cycler==0.10.0
kiwisolver==1.1.0
matplotlib==3.1.1
numpy==1.17.0
pandas==0.25.0
pyparsing==2.4.2
python-dateutil==2.8.0
pytz==2019.2
six==1.12.0
Here is what I have added to my serverless.yml file:
provider:
name: aws
runtime: python3.6
plugins:
serverless-python-requirements
custom:
pythonRequirements:
dockerizePip: non-linux
package:
exclude:
- a/** # virtualenv
Why would it hang here? Are my dependencies too broad? Could this be related to my docker settings?