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
Copy file name to clipboardExpand all lines: README.md
+18
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
@@ -405,3 +422,4 @@ zipinfo .serverless/xxx.zip
405
422
* [@alexjurkiewicz](https://github.com/alexjurkiewicz) - [docs about docker workflows](#native-code-dependencies-during-build)
406
423
* [@andrewfarley](https://github.com/andrewfarley) - Implemented download caching and static caching
407
424
* [@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