Title: Serverless python custom packaging with nested folders · Issue #435 · serverless/serverless-python-requirements · GitHub
Open Graph Title: Serverless python custom packaging with nested folders · Issue #435 · serverless/serverless-python-requirements
X Title: Serverless python custom packaging with nested folders · Issue #435 · serverless/serverless-python-requirements
Description: Hi, I have this following project structure src/ requirements.txt function_a.py function_b.py common/ common_1.py common_2.py With this function configuration the zip artifacts contains the common and function_* lambda source files plus ...
Open Graph Description: Hi, I have this following project structure src/ requirements.txt function_a.py function_b.py common/ common_1.py common_2.py With this function configuration the zip artifacts contains the common ...
X Description: Hi, I have this following project structure src/ requirements.txt function_a.py function_b.py common/ common_1.py common_2.py With this function configuration the zip artifacts contains the common ...
Opengraph URL: https://github.com/serverless/serverless-python-requirements/issues/435
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Serverless python custom packaging with nested folders","articleBody":"Hi, I have this following project structure\r\n\r\n```\r\nsrc/\r\n requirements.txt\r\n function_a.py\r\n function_b.py\r\n common/\r\n common_1.py\r\n common_2.py\r\n```\r\n\r\nWith this function configuration the zip artifacts contains the common and function_* lambda source files plus dependencies, which is what I want.\r\n\r\nServerless configuration - 1\r\n\r\n```\r\n functionA:\r\n module: src\r\n handler: function_a.handler\r\n package:\r\n include:\r\n - src/common/**\r\n - src/function_a.py\r\n\r\n functionB:\r\n module: src\r\n handler: function_b.handler\r\n package:\r\n include:\r\n - src/common/**\r\n - src/function_b.py\r\n```\r\n\r\nNow I would like to move the function_b to a nested src folder src/function_b and have its own requirements.txt file\r\n\r\n```\r\nsrc/\r\n requirements.txt\r\n function_a.py\r\n function_b/\r\n function_b.py\r\n requirements.txt\r\n common/\r\n common_1.py\r\n common_2.py\r\n```\r\n\r\nbut when I try to pack it using this serverless configuration the function_b zip file doesn't contain the /common/** sources but only the function_b and its dependencies.\r\n\r\nServerless configuration - 2\r\n\r\n```\r\n functionB:\r\n module: src/function_b\r\n handler: function_b.handler\r\n package:\r\n include:\r\n - src/common/**\r\n - src/function_b/function_b.py\r\n```\r\n\r\nThe other relevant part of the serverless.yml file is this\r\n\r\n```\r\npythonRequirements:\r\n slim: true\r\n useStaticCache: true\r\n useDownloadCache: true\r\n cacheLocation: './._cache'\r\n staticCacheMaxVersions: 10\r\n dockerizePip: non-linux\r\n\r\npackage:\r\n individually: true\r\n exclude:\r\n - ./**\r\n```\r\n\r\nIs there something I am doing wrong or is this some plugin/serverless limitation/bug ?\r\n\r\nThanks!\r\n","author":{"url":"https://github.com/gzp-gnr","@type":"Person","name":"gzp-gnr"},"datePublished":"2019-12-07T17:41:21Z","url":"https://github.com/serverless/serverless-python-requirements/issues/435"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:8fd83f7a-845c-aa07-6abf-0d9b28494d1f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C84A:3990B6:3707FD:4CCA87:6B043F57 |
| html-safe-nonce | 2639a161696ba9e8db40a7ddde0c12ebaf787af55df676e4319db6c2f8ae107b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODRBOjM5OTBCNjozNzA3RkQ6NENDQTg3OjZCMDQzRjU3IiwidmlzaXRvcl9pZCI6IjI5MTU1NzgwNDc0ODA3NDE3MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e07cd6be075556b0bf910c0422475b44692e9c1c5cd1ef9b3c40858db0ecdb94 |
| hovercard-subject-tag | issue:534430122 |
| 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/serverless/serverless-python-requirements/435/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0726eb3d1ec7def6ac1a1f96ce43e1abe5d564778e781afa652071448e139e04/serverless/serverless-python-requirements/issues/435 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0726eb3d1ec7def6ac1a1f96ce43e1abe5d564778e781afa652071448e139e04/serverless/serverless-python-requirements/issues/435 |
| og:image:alt | Hi, I have this following project structure src/ requirements.txt function_a.py function_b.py common/ common_1.py common_2.py With this function configuration the zip artifacts contains the common ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gzp-gnr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/serverless/serverless-python-requirements git https://github.com/serverless/serverless-python-requirements.git |
| octolytics-dimension-user_id | 13742415 |
| octolytics-dimension-user_login | serverless |
| octolytics-dimension-repository_id | 76508594 |
| octolytics-dimension-repository_nwo | serverless/serverless-python-requirements |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 76508594 |
| octolytics-dimension-repository_network_root_nwo | serverless/serverless-python-requirements |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width