File tree 3 files changed +25
-0
lines changed
3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ service: sls-py-req-test
3
3
provider :
4
4
name : aws
5
5
runtime : python3.6
6
+ # deploymentBucket: sls-py-req-test
6
7
7
8
plugins :
8
9
- serverless-python-requirements
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ service: sls-py-req-test
3
3
provider :
4
4
name : aws
5
5
runtime : python3.6
6
+ # deploymentBucket: sls-py-req-test
6
7
7
8
plugins :
8
9
- serverless-python-requirements
Original file line number Diff line number Diff line change @@ -62,6 +62,13 @@ teardown() {
62
62
ls puck/flask
63
63
}
64
64
65
+ @test " py3.6 works with deploymentBucket option" {
66
+ sed -i' .bak' -re ' s/#deploymentBucket/deploymentBucket/' serverless.yml
67
+ sls package
68
+ unzip .serverless/sls-py-req-test.zip -d puck
69
+ ls puck/flask
70
+ }
71
+
65
72
@test " py2.7 can package flask with default options" {
66
73
sed -i' .bak' -e ' s/runtime: *python3.6/runtime: python2.7/' serverless.yml
67
74
sls package
@@ -107,6 +114,13 @@ teardown() {
107
114
ls puck/flask
108
115
}
109
116
117
+ @test " py2.7 works with deploymentBucket option" {
118
+ sed -i' .bak' -re ' s/#deploymentBucket/deploymentBucket/' -e ' s/runtime: *python3.6/runtime: python2.7/' serverless.yml
119
+ sls package
120
+ unzip .serverless/sls-py-req-test.zip -d puck
121
+ ls puck/flask
122
+ }
123
+
110
124
@test " pipenv py3.6 can package flask with default options" {
111
125
cd ../pipenv-example
112
126
npm i ..
@@ -148,3 +162,12 @@ teardown() {
148
162
unzip .serverless/sls-py-req-test.zip -d puck
149
163
ls puck/.requirements.zip puck/unzip_requirements.py
150
164
}
165
+
166
+ @test " pipenv py3.6 works with deploymentBucket option" {
167
+ cd ../pipenv-example
168
+ npm i ..
169
+ sed -i' .bak' -re ' s/#deploymentBucket/deploymentBucket/' serverless.yml
170
+ sls package
171
+ unzip .serverless/sls-py-req-test.zip -d puck
172
+ ls puck/flask
173
+ }
You can’t perform that action at this time.
0 commit comments