Running a small webapp written in Python 3.7 on Google App Engine (Standard). Before deploying new builds, I test the app locally, then again in the GCP Shell using gunicorn
.
Being an excitable newbie, I recently discovered f-strings and applied them liberally to my code... without realizing that the shell runs Python 3.5. Unless there's a way around this, the days of testing my app in the shell might be behind me.
I'm aware that the shell environment is ephemeral and gets reset shortly after each session. Tried the pyenv method described here and discovered that all of those changes were lost between sessions, including my .bashrc
edits.
Is there a way to permanently upgrade the shell's Python runtime to 3.7+? Or perhaps an easier solution?