Skip to content

Commit eb4881b

Browse files
kardolusZander Mackie
andcommitted
Add the build --no-build-isolation for vendored apps
[#166454008] Co-authored-by: Zander Mackie <[email protected]>
1 parent eb11e8a commit eb4881b

29 files changed

Lines changed: 47 additions & 5 deletions

fixtures/flask/runtime.txt

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.pyc
2+
venv
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn server:app
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Flask==0.10.1
2+
Jinja2==2.7.2
3+
MarkupSafe==0.21
4+
Werkzeug==0.10.4
5+
gunicorn==19.3.0
6+
itsdangerous==0.24
7+
pylibmc==1.4.2
8+
cffi==0.9.2
9+
boto3==1.9.175
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-3.6.8
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from flask import Flask, request
2+
import subprocess
3+
import boto3
4+
5+
app = Flask(__name__)
6+
7+
@app.route("/")
8+
9+
def hello():
10+
s3_client = boto3.client('s3')
11+
print(s3_client)
12+
return "Hello, World!"
13+
14+
@app.route('/execute', methods=['POST'])
15+
def execute():
16+
with open('runtime.py', 'w') as f:
17+
f.write(request.values.get('code'))
18+
return subprocess.check_output(["python", "runtime.py"])
19+
20+
app.debug=True
531 KB
Binary file not shown.
369 KB
Binary file not shown.
12.8 KB
Binary file not shown.
1.08 MB
Binary file not shown.

0 commit comments

Comments
 (0)