-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to Python 3.11 and GAE Gen 2 (#29)
* Remove locked `google-auth` version * This helps resolve the ResolutionImpossible error while installing packages from requirements.txt on Python 3.11 * Change runtime to `python311` * Remove `libraries` entry from `app.yaml` * Update `Jinja2` package for compatibility * Enable legacy bundled services on Python3 runtime * https://cloud.google.com/appengine/docs/standard/python3/services/access * Drop `lib` dir * Point `gae-sessions` to `python3-compat` branch * Remove no longer supported fields from `app.yaml` * https://cloud.google.com/appengine/docs/standard/python3/migrate-to-python3/config-files * Remove `threadsafe` entry from `app.yaml` * All apps are presumed to be threadsafe in Python3 runtime * https://cloud.google.com/appengine/docs/standard/python3/migrate-to-python3/config-files * Replace `handlers: script` value w/ `auto` * https://cloud.google.com/appengine/docs/standard/python3/migrate-to-python3/config-files#python-3 * Remove `env_variables` section from `app.yaml` * The `DJANGO_SETTINGS_MODULE` env variable had to be set to the name of the Django settings module, typically 'settings', before packages got imported back on the legacy Python2 runtime * https://cloud.google.com/appengine/docs/legacy/standard/python/tools/using-libraries-python-27#django * Remove ignored `appengine_config.py` * https://cloud.google.com/appengine/migration-center/standard/migrate-to-second-gen/python-differences#configuration * Replaced w/ a call to `wrap_wsgi_app` * The new `wrap_wsgi_middleware` decorator is created to configure `SessionMiddleware` * Replace `CURRENT_VERSION_ID` w/ `GAE_VERSION` * `GAE_VERSION` holds the current version label of the service * https://cloud.google.com/appengine/docs/standard/python3/runtime#environment_variables * Determine environment using `GAE_ENV` variable * Update `ae_helpers` * Disable "file_cache is unavailable" warning * This disables the following warning produced by `googleapiclient` WARNING:googleapiclient.discovery_cache:file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth * googleapis/google-api-python-client#299 * Add `.gcloudignore`
- Loading branch information
Showing
1,959 changed files
with
80 additions
and
362,541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This file specifies files that are *not* uploaded to Google Cloud | ||
# using gcloud. It follows the same syntax as .gitignore, with the addition of | ||
# "#!include" directives (which insert the entries of the given .gitignore-style | ||
# file at that point). | ||
# | ||
# For more information, run: | ||
# $ gcloud topic gcloudignore | ||
# | ||
.gcloudignore | ||
# If you would like to upload your .git directory, .gitignore file or files | ||
# from your .gitignore file, remove the corresponding line | ||
# below: | ||
.git | ||
.gitignore | ||
|
||
# Python pycache: | ||
__pycache__/ | ||
# Ignored by the build system | ||
/setup.cfg | ||
|
||
output/ | ||
tests/ | ||
venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.