Serverless Framework: Plugins
https://www.serverless.com/plugins/serverless-python-requirementsCustom Removal Patterns. To specify additional directories to remove from the installed packages, define a list of patterns in the serverless config using the slimPatterns option and glob syntax. These patterns will be added to the default ones (**/*.py[c|o], **/__pycache__*, **/*.dist-info*).Note, the glob syntax matches against whole paths, so to match a file in any directory, …