File tree 3 files changed +10
-7
lines changed 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,14 @@ custom:
35
35
This must be the full image name and tag to use, including the runtime specific tag if applicable.
36
36
37
37
# # Pipenv support :sparkles::cake::sparkles:
38
- If you include a `Pipfile` and have `pipenv` installed instead of a
39
- ` requirements.txt` this will use `pipenv lock --r` to generate
40
- them. It is fully compatible with all options such as `zip` and `dockerizePip`.
38
+ If you include a `Pipfile` and have `pipenv` installed instead of a `requirements.txt` this will use
39
+ ` pipenv lock --r` to generate them. It is fully compatible with all options such as `zip` and
40
+ `dockerizePip`. If you don't want this plugin to generate it for you, set the following option :
41
+ ` ` ` yaml
42
+ custom:
43
+ pythonRequirements:
44
+ usePipenv: false
45
+ ` ` `
41
46
42
47
43
48
# # Dealing with Lambda's size limitations
Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ const {spawnSync} = require('child_process');
8
8
*/
9
9
function installRequirements ( ) {
10
10
let fileName = this . options . fileName ;
11
- let usePipenv = this . options . usePipenv ;
12
- if ( usePipenv && fse . existsSync ( path . join ( this . servicePath , 'Pipfile' ) ) ) {
11
+ if ( this . options . usePipenv && fse . existsSync ( path . join ( this . servicePath , 'Pipfile' ) ) ) {
13
12
fileName = '.serverless/requirements.txt' ;
14
13
}
15
14
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ const {spawnSync} = require('child_process');
7
7
* @return {Promise }
8
8
*/
9
9
function pipfileToRequirements ( ) {
10
- let usePipenv = this . options . usePipenv ;
11
- if ( ! usePipenv || ! fse . existsSync ( path . join ( this . servicePath , 'Pipfile' ) ) )
10
+ if ( ! this . options . usePipenv || ! fse . existsSync ( path . join ( this . servicePath , 'Pipfile' ) ) )
12
11
return ;
13
12
14
13
this . serverless . cli . log ( 'Generating requirements.txt from Pipfile...' ) ;
You can’t perform that action at this time.
0 commit comments