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
{{ message }}
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,23 @@ custom:
94
94
```
95
95
96
96
97
+
## Poetry support :sparkles::pencil::sparkles:
98
+
NOTE: Only poetry version 1 supports the required `export` command for this
99
+
feature. As of the point this feature was added, poetry 1.0.0 was in preview
100
+
and requires that poetry is installed with the --preview flag.
101
+
102
+
TL;DR Install poetry with the `--preview` flag.
103
+
104
+
If you include a `pyproject.toml` and have `poetry` installed instead of a `requirements.txt` this will use
105
+
`poetry export --without-hashes -f requirements.txt`to generate them. It is fully compatible with all options such as `zip` and
106
+
`dockerizePip`. If you don't want this plugin to generate it for you, set the following option:
107
+
```yaml
108
+
custom:
109
+
pythonRequirements:
110
+
usePoetry: false
111
+
```
112
+
113
+
97
114
## Dealing with Lambda's size limitations
98
115
To help deal with potentially large dependencies (for example: `numpy`, `scipy`
99
116
and `scikit-learn`) there is support for compressing the libraries. This does
@@ -437,3 +454,4 @@ zipinfo .serverless/xxx.zip
437
454
* [@alexjurkiewicz](https://github.com/alexjurkiewicz) - [docs about docker workflows](#native-code-dependencies-during-build)
438
455
* [@andrewfarley](https://github.com/andrewfarley) - Implemented download caching and static caching
439
456
* [@bweigel](https://github.com/bweigel) - adding the `slimPatternsAppendDefaults` option & fixing per-function packaging when some functions don't have requirements & Porting tests from bats to js!
0 commit comments