Minimum example repo to reproduce the bug in serverless/serverless-python-requirements#437.
- Yarn - https://yarnpkg.com/
- Poetry - https://python-poetry.org/
$ yarn install
$ poetry install
$ yarn sls package
$ du -h .serverless/serverless-python-requirements-issue-437.zip
It will return
8.0M .serverless/serverless-python-requirements-issue-437.zip
Unzipping that above ZIP file for inspection shows all files (__pycache__
and dist-info
directories as well as .pyc
and .pyo
files).