You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for all the work that's been done on this tool and for sharing as open-source, it really looks promising.
I have run lambda build but it doesn't appear to add any of the dependencies for my Lambda function in the resulting dist/*.zip file. I have a requirements.txt in the project directory (as described here) but this doesn't appear to have any effect.
For example, in the Lambda function Python file containing the handler function, I import a single package/module abc.xyz that is implemented in a local source folder, and I will install from there instead of from PyPI or git repositories as for more typical, non-local dependencies. This module has dependencies of its own and uses psycopg2 to make a connection to PostgreSQL.
My assumption was that python-lambda would use pip to somehow install all these dependency packages someplace and then add these into a /dist/*.zip that also includes the Lambda function Python file. Maybe there's something else required to trigger the addition of dependencies into the /dist/*.zip when running a build?
The text was updated successfully, but these errors were encountered:
Thanks for all the work that's been done on this tool and for sharing as open-source, it really looks promising.
I have run
lambda build
but it doesn't appear to add any of the dependencies for my Lambda function in the resultingdist/*.zip
file. I have arequirements.txt
in the project directory (as described here) but this doesn't appear to have any effect.For example, in the Lambda function Python file containing the handler function, I import a single package/module
abc.xyz
that is implemented in a local source folder, and I will install from there instead of from PyPI or git repositories as for more typical, non-local dependencies. This module has dependencies of its own and usespsycopg2
to make a connection to PostgreSQL.The
requirements.txt
:My assumption was that
python-lambda
would usepip
to somehow install all these dependency packages someplace and then add these into a/dist/*.zip
that also includes the Lambda function Python file. Maybe there's something else required to trigger the addition of dependencies into the/dist/*.zip
when running a build?The text was updated successfully, but these errors were encountered: