Skip to content

Dependencies are not packaged for the lambda which has Individual packaging (per lambda, not the top level). #744

Open
@amediantsev

Description

@amediantsev

Are you certain it's a bug?

  • Yes, it looks like a bug

Are you using the latest plugin release?

  • Yes, I'm using the latest plugin release

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Issue description

When individual packaging is defined per lambda, dependencies are not packaged for that lambda.

I.e.
We have a such function in serverless.yml:

  MyIndividualFunction:
    module: src.my_module
    handler: my_file.my_handler
    package:
      individually: true

and such project structure:

src/
-- my_module/
---- my_file.py
---- requirements.txt

And libraries listed in requirements.txt are not packaged to the final MyIndividualFunction.zip

Service configuration (serverless.yml) content

N/A

Command name and used flags

N/A

Command output

N/A

Environment information

Framework Core: 1.83.0
Plugin: 3.8.4
SDK: 2.3.2
Components: 2.34.9

"serverless-python-requirements": "5.1.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions