File tree 2 files changed +3
-8
lines changed
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -33,19 +33,19 @@ function pyprojectTomlToRequirements() {
33
33
throw new Error ( res . stderr ) ;
34
34
}
35
35
36
- const editableLine = new RegExp ( / ^ - e / gm) ;
36
+ const editableFlag = new RegExp ( / ^ - e / gm) ;
37
37
const sourceRequirements = path . join ( this . servicePath , 'requirements.txt' ) ;
38
38
const requirementsContents = fse . readFileSync ( sourceRequirements , {
39
39
encoding : 'utf-8'
40
40
} ) ;
41
41
42
- if ( requirementsContents . match ( editableLine ) ) {
42
+ if ( requirementsContents . match ( editableFlag ) ) {
43
43
this . serverless . cli . log (
44
44
'The generated file contains -e lines, removing them...'
45
45
) ;
46
46
fse . writeFileSync (
47
47
sourceRequirements ,
48
- requirementsContents . replace ( editableLine , '' )
48
+ requirementsContents . replace ( editableFlag , '' )
49
49
) ;
50
50
}
51
51
Original file line number Diff line number Diff line change @@ -727,13 +727,8 @@ test('poetry py3.6 can package flask with default options', t => {
727
727
sls ( [ 'package' ] ) ;
728
728
const zipfiles = listZipFiles ( '.serverless/sls-py-req-test.zip' ) ;
729
729
t . true ( zipfiles . includes ( `flask${ sep } __init__.py` ) , 'flask is packaged' ) ;
730
- < << << << HEAD
731
730
t . true ( zipfiles . includes ( `bottle${ sep } __init__.py` ) , 'bottle is packaged' ) ;
732
731
t . true ( zipfiles . includes ( `boto3${ sep } __init__.py` ) , 'boto3 is packaged' ) ;
733
- = === ===
734
- t . true ( zipfiles . includes ( `bottle.py` ) , 'bottle is packaged' ) ;
735
- t . false ( zipfiles . includes ( `boto3${ sep } __init__.py` ) , 'boto3 is NOT packaged' ) ;
736
- > >>> >>> Fix wrongly expected file in test
737
732
t . end ( ) ;
738
733
} ) ;
739
734
You can’t perform that action at this time.
0 commit comments