Title: Dependencies aren't included in the dist/*.zip file after a build · Issue #490 · nficano/python-lambda · GitHub
Open Graph Title: Dependencies aren't included in the dist/*.zip file after a build · Issue #490 · nficano/python-lambda
X Title: Dependencies aren't included in the dist/*.zip file after a build · Issue #490 · nficano/python-lambda
Description: 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/*....
Open Graph Description: 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 ...
X Description: 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...
Opengraph URL: https://github.com/nficano/python-lambda/issues/490
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dependencies aren't included in the dist/*.zip file after a build","articleBody":"Thanks for all the work that's been done on this tool and for sharing as open-source, it really looks promising.\r\n\r\nI 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](https://hackersandslackers.com/improve-your-aws-lambda-workflow-with-python-lambda)) but this doesn't appear to have any effect. \r\n\r\nFor 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.\r\n\r\nThe `requirements.txt`:\r\n```\r\ncertifi==2020.4.5.1\r\n/home/james/git/abc\r\npsycopg2-binary==2.8.5\r\nsix==1.14.0\r\nSQLAlchemy==1.3.16\r\nSQLAlchemy-Utils==0.36.3\r\n```\r\n\r\nMy 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?","author":{"url":"https://github.com/monocongo","@type":"Person","name":"monocongo"},"datePublished":"2020-04-17T20:03:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/490/python-lambda/issues/490"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:210cfec6-5186-9c5a-047b-c4b911a78373 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6A0:B7114:1097284:176DBB8:697231E3 |
| html-safe-nonce | cd86e110c48fdca8cf231ad78abeca4ff277dc466e53c1d4fce4af81782027dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkEwOkI3MTE0OjEwOTcyODQ6MTc2REJCODo2OTcyMzFFMyIsInZpc2l0b3JfaWQiOiIyNDAyMTcwNDUxNTk4MTI3NTg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f4ea4d7ca33abb508b6236130f991f47cf14973f634f2daad4bb70e0190dd1b0 |
| hovercard-subject-tag | issue:602203973 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nficano/python-lambda/490/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8c71957ad5ed446e7b138ef8857d819918aa4a9f8852f91c746c25f0180ef1ce/nficano/python-lambda/issues/490 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8c71957ad5ed446e7b138ef8857d819918aa4a9f8852f91c746c25f0180ef1ce/nficano/python-lambda/issues/490 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | monocongo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2c16db4e575031f6e3be03e0437c1ab663e0b4643ba5cbbfba48c1e4fc056a11 |
| turbo-cache-control | no-preview |
| go-import | github.com/nficano/python-lambda git https://github.com/nficano/python-lambda.git |
| octolytics-dimension-user_id | 65145 |
| octolytics-dimension-user_login | nficano |
| octolytics-dimension-repository_id | 52575367 |
| octolytics-dimension-repository_nwo | nficano/python-lambda |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 52575367 |
| octolytics-dimension-repository_network_root_nwo | nficano/python-lambda |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a12ab519e1537fa080535ea933f81d4fcef34da0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width