Update Python to 3.7
Not urgent, but I'd like to keep up with the newest Python version if possible. I attempted this quickly last night and it wasn't completely smooth, so just a few notes for when I (or someone else) looks at this again:
-
pyenv had issues compiling 3.7.0 on a VM with only 1GB of RAM, the compiler would crash with an error related to running out of memory. Fixable by increasing RAM for the VM, but might be better to just switch to using the deadsnakes PPA instead: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
-
prospector started showing a warning:
/opt/venvs/tildes/lib/python3.7/site-packages/pycodestyle.py:113: FutureWarning: Possible nested set at position 1 EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')
This seems to be related to the version of pycodestyle that flake8 includes, and should be fixed next time there's a new flake8 release (hasn't been one since Oct 2017 right now). Could be fixed by cloning flake8 from source or other methods too, but probably simpler to just wait.