-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop host Python 3.5 support. #677
Labels
Comments
rchen152
added a commit
that referenced
this issue
Oct 9, 2020
Moving off 3.5 will allow us to write code using f-strings and variable annotations. To continue analyzing 3.5 code, users can pin to pytype 2020.10.08 or run pytype under a 3.6-3.8 interpreter and pass `-V 3.5` to it. (For the latter option, they'll need to find some way to tell pytype where third party packages are located, or just silence the import errors.) For #677.
I'll leave this issue pinned for a bit for visibility. pytype 2020.10.08 is the last release that supports running pytype under Python 3.5. With the next release, you'll have to run pytype under a 3.6-3.8 interpreter and pass |
rchen152
added a commit
that referenced
this issue
Oct 12, 2020
For #677. PiperOrigin-RevId: 336207143
Solumin
pushed a commit
that referenced
this issue
Oct 14, 2020
For #677. PiperOrigin-RevId: 336207143
Solumin
pushed a commit
that referenced
this issue
Oct 14, 2020
For #677. PiperOrigin-RevId: 336207143
Solumin
pushed a commit
that referenced
this issue
Oct 14, 2020
For #677. PiperOrigin-RevId: 336207143
Solumin
pushed a commit
that referenced
this issue
Oct 15, 2020
For #677. PiperOrigin-RevId: 336207143
Solumin
pushed a commit
that referenced
this issue
Oct 16, 2020
For #677. PiperOrigin-RevId: 336207143
Solumin
pushed a commit
that referenced
this issue
Oct 19, 2020
For #677. PiperOrigin-RevId: 336207143
pytype 2020.11.03 is the first release to not support running under 3.5. |
python-fire-bot
pushed a commit
to google/python-fire
that referenced
this issue
Dec 16, 2020
Copybara import of the project: -- eeef066 by Rebecca Chen <rechen@google.com>: Don't run pytype in Python 3.5. The next release of pytype drops support for running under Python 3.5: google/pytype#677. COPYBARA_INTEGRATE_REVIEW=#296 from rchen152:drop35 eeef066 PiperOrigin-RevId: 347877059 Change-Id: I8b2e8acba3d3ce3ebc47612d7f136d7a643650d3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python 3.5 reaches its end-of-life in a few weeks: https://www.python.org/downloads/release/python-3510/. Once it does, we should drop support for running pytype under 3.5 so that we can use modern features like f-strings and variable annotations.
For now, we won't deliberately break analyzing code as 3.5, but users will need two interpreters - a 3.5 one to compile bytecode for the code under analysis, and a 3.6-3.8 one to run pytype - and support will degrade over time once we remove the tests. (Of course, it's always possible to pin to an older version of pytype.)
The text was updated successfully, but these errors were encountered: