Notice: This project is a rewrite from serverless-python-requirements which is a serverless plugin.
Serverless Python Requirements Component
Install the Serverless Framework globally:
$ npm install -g serverless
Just create the following simple boilerplate:
$ touch serverless.yml
# serverless.yml
MyComponent:
component: '@slsplus/python-requirements'
inputs:
codeUri: ./
include:
- handler.py
dockerizePip: true
zip: true
$ sls --debug
$ sls remove --debug
Checkout the Serverless Components repo for more information.