Skip to content

Conversation

@stephanwlee
Copy link
Contributor

@stephanwlee stephanwlee commented Jun 16, 2021

Currently, setup.py was very out of date and claimed that TensorBoard
supported Python 2 which is dropped in EOY 2020. This updates the list of
supported Python to match that of TensorFlow's.

https://github.com/tensorflow/tensorflow/blob/5809916f1ea8954b88da0b3c66922f4e5e5e9b47/tensorflow/tools/pip_package/setup.py#L346-L351

Fixes #5069.

Currently, `setup.py` was very out of date and claimed that TensorBoard
supported Python which is dropped in EOY 2020. This updates the list of
supported Python to match that of TensorFlow's.
@google-cla google-cla bot added the cla: yes label Jun 16, 2021
@stephanwlee stephanwlee requested a review from nfelt June 16, 2021 23:34
Copy link
Contributor

@nfelt nfelt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, setup.py was very out of date and claimed that TensorBoard
supported Python which is dropped in EOY 2020.

...supported Python 2 which was dropped... <-- I assume you mean?

"tf_projector_plugin/projector_binary.js",
],
},
# Disallow python 3.0 and 3.1 which lack a 'futures' module (see above).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional but maybe kill the futures and wheel deps that were py2-only too?

# futures is a backport of the python 3.2+ concurrent.futures module
futures >= 3.1.1; python_version < "3"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be nice to re-add python_requires with python_requires=">=3.6", it will block folks with older version Python version from installing the library through pip https://packaging.python.org/guides/dropping-older-python-versions/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding one in #5083.

@stephanwlee
Copy link
Contributor Author

...supported Python 2 which was dropped... <-- I assume you mean?

Yup, updated the description and will make sure the commit message contains the right message.

@stephanwlee stephanwlee changed the title infra: update supported Python version infra: update officially supported Python version Jun 17, 2021
@stephanwlee stephanwlee merged commit 4b9bce8 into tensorflow:master Jun 17, 2021
@stephanwlee stephanwlee deleted the py branch June 17, 2021 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Which Python versions are currently supported?

3 participants