File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 24
24
# other deps
25
25
- run : sudo apt -y update && sudo apt -y install python-pip python2.7 curl unzip
26
26
# instal pipenv
27
- - run : sudo python3.6 -m pip install pipenv
27
+ - run : sudo python3.6 -m pip install pipenv pip-tools
28
28
# install nodejs
29
29
- run : curl -sL https://deb.nodesource.com/setup_6.x | sudo bash - && sudo apt -y install nodejs
30
30
# install serverless & depcheck
Original file line number Diff line number Diff line change @@ -35,6 +35,15 @@ teardown() {
35
35
ls puck/flask
36
36
}
37
37
38
+ @test " py3.6 can package flask with hashes" {
39
+ cd tests/base
40
+ npm i $( npm pack ../..)
41
+ pip-compile --output-file requirements-w-hashes.txt --generate-hashes requirements.txt
42
+ sls package --fileName requirements-w-hashes.txt
43
+ unzip .serverless/sls-py-req-test.zip -d puck
44
+ ls puck/flask
45
+ }
46
+
38
47
@test " py3.6 can package flask & bottle with zip option" {
39
48
cd tests/base
40
49
npm i $( npm pack ../..)
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ custom:
13
13
slim : ${opt:slim, self:custom.defaults.slim}
14
14
slimPatterns : ${file(./slimPatterns.yml):slimPatterns, self:custom.defaults.slimPatterns}
15
15
vendor : ${opt:vendor, ''}
16
+ fileName : ${opt:fileName, 'requirements.txt'}
16
17
defaults :
17
18
slim : false
18
19
slimPatterns : false
You can’t perform that action at this time.
0 commit comments