‘Upgrade’ from Python 2.7 to Python 3.7

Python is a non-issue.  But App Engine took the opportunity to change everything.
This commit is contained in:
Neil Fraser
2020-02-03 14:33:59 -08:00
committed by Neil Fraser
parent 249d484773
commit 6f577d88d8
7 changed files with 132 additions and 81 deletions

View File

@@ -1,8 +1,4 @@
application: blockly-demo
version: 20200123
runtime: python27
api_version: 1
threadsafe: no
runtime: python37
handlers:
# Redirect obsolete URLs.
@@ -19,29 +15,15 @@ handlers:
static_files: redirect.html
upload: redirect.html
# Storage API.
- url: /storage
script: storage.py
secure: always
- url: /storage\.js
static_files: storage.js
upload: storage\.js
secure: always
# Blockly files.
- url: /static
static_dir: static
secure: always
# Closure library for uncompressed Blockly.
- url: /closure-library
static_dir: closure-library
secure: always
# Redirect for root directory.
- url: /
script: index_redirect.py
# Storage API.
- url: /storage\.js
static_files: storage.js
upload: storage\.js
secure: always
# Favicon.
@@ -64,24 +46,8 @@ handlers:
upload: robots\.txt
secure: always
skip_files:
# App Engine default patterns.
- ^(.*/)?#.*#$
- ^(.*/)?.*~$
- ^(.*/)?.*\.py[co]$
- ^(.*/)?.*/RCS/.*$
- ^(.*/)?\..*$
# Custom skip patterns.
- ^static/appengine/.*$
- ^static/demos/plane/soy/.+\.jar$
- ^static/demos/plane/template.soy$
- ^static/demos/plane/xlf/.*$
- ^static/i18n/.*$
- ^static/msg/json/.*$
- ^.+\.soy$
- ^closure-library/.*_test.html$
- ^closure-library/.*_test.js$
- ^closure-library/closure/bin/.*$
- ^closure-library/doc/.*$
- ^closure-library/scripts/.*$
# Dynamic content.
- url: /.*
script: auto
secure: always