-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
build: explicitly require Python 3.7+ #5878
Conversation
be7b02c
to
bbd2b9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
.github/workflows/ci.yml
Outdated
@@ -214,7 +214,7 @@ jobs: | |||
# flake8 should run on each Python version that we target, | |||
# because the errors and warnings can differ due to language | |||
# changes, and we want to catch them all. | |||
python_version: ['3.6', '3.7'] | |||
python_version: ['3.7', '3.8'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to add 3.9 and 3.10 in addition to 3.8? We should be 3.10 compatible as of #5793, and while obviously we haven't been good about keeping this line up to date, the comment above has a rationale for running at least flake8 for every supported Python version.
If you do that we could also add 3.9 and 3.10 tags in both setup.py files as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, updated!
* build: explicitly require Python 3.7+ Contributes to tensorflow#5725 * Run flake8 for all targeted python versions
* build: explicitly require Python 3.7+ Contributes to tensorflow#5725 * Run flake8 for all targeted python versions
Python 3.6 is well past its EOL, so we should require 3.7+.
Contributes to #5725