26.09.2017 · Thank you for reporting @simplesteph 😄 This is the related issue of #4259 We have recognized the bug. so we will fix this in the upcoming release. Currently, if you add plugins array to serverless.yaml in the situation that you have not installed a …
The module field must be used to tell the plugin where to find the requirements.txt file for each function. · The handler field must not be prefixed by the ...
Serverless Python Requirements A Serverless v1.x plugin to automatically bundle dependencies from requirements.txtand make them available in your PYTHONPATH. Requires Serverless >= v1.34 Install sls plugin install -n serverless-python-requirements This will automatically add the plugin to your project's package.jsonand the plugins section of its
04.11.2021 · ⚡️🐍📦 Serverless plugin to bundle Python packages. Contribute to serverless/serverless-python-requirements development by creating an account on GitHub.
The plugin serverless-python-requirements uses cache. Make sure to clean it before package your service. Furthermore, psycopg requires to be compiled with a lambda environment: # serverless.yaml custom: pythonRequirements: dockerizePip: true # bash $ serverless requirements cleanCache $ serverless deploy --stage <stage>.
sls plugin install -n serverless-python-requirements This will automatically add the plugin to your project’s package.json and the plugins section of its serverless.yml. That’s all that’s needed for basic use! The plugin will now bundle your python dependencies specified in your requirements.txt or Pipfile when you run sls deploy.