Skip to content

Commit 89f87df

Browse files
nfeltyatbear
authored andcommitted
infra: drop support for Python 3.7 and mark 3.11 as supported (tensorflow#6144)
Fixes tensorflow#6138. Python 3.7 is almost at EOL (coming up in [a few months](https://devguide.python.org/versions/#supported-versions)), and has already been [dropped by TensorFlow](tensorflow/tensorflow@53ffdf1). This updates our CI to use Python 3.8. It also marks Python 3.11 as supported (it was released to stable last fall). Tested: confirmed that TensorBoard works as expected with Python 3.11, as follows: ``` $ docker run -it -p 6006:6006 --mount source=$HOME/scratch/demodir,destination=/logs,readonly python:3.11 bash root@dac67b60b6af:/# python --version Python 3.11.1 root@dac67b60b6af:/# pip install tensorboard ... root@dac67b60b6af:/# tensorboard --logdir /logs --bind_all ... ```
1 parent c030fb6 commit 89f87df

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
tf_version_id: ['tf', 'notf']
40-
python_version: ['3.7']
40+
python_version: ['3.8']
4141
steps:
4242
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
4343
- uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
@@ -214,7 +214,7 @@ jobs:
214214
# flake8 should run on each Python version that we target,
215215
# because the errors and warnings can differ due to language
216216
# changes, and we want to catch them all.
217-
python_version: ['3.7', '3.8', '3.9', '3.10']
217+
python_version: ['3.8', '3.9', '3.10', '3.11']
218218
steps:
219219
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
220220
- uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
@@ -237,7 +237,7 @@ jobs:
237237
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
238238
- uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
239239
with:
240-
python-version: '3.7'
240+
python-version: '3.8'
241241
architecture: 'x64'
242242
- name: 'Install black, yamllint, and the TensorFlow docs notebook tools'
243243
run: |

tensorboard/pip_package/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def get_readme():
6464
},
6565
install_requires=REQUIRED_PACKAGES,
6666
tests_require=REQUIRED_PACKAGES,
67-
python_requires=">=3.7",
67+
python_requires=">=3.8",
6868
# PyPI package information.
6969
classifiers=[
7070
"Development Status :: 4 - Beta",
@@ -73,10 +73,10 @@ def get_readme():
7373
"Intended Audience :: Science/Research",
7474
"License :: OSI Approved :: Apache Software License",
7575
"Programming Language :: Python :: 3",
76-
"Programming Language :: Python :: 3.7",
7776
"Programming Language :: Python :: 3.8",
7877
"Programming Language :: Python :: 3.9",
7978
"Programming Language :: Python :: 3.10",
79+
"Programming Language :: Python :: 3.11",
8080
"Programming Language :: Python :: 3 :: Only",
8181
"Topic :: Scientific/Engineering :: Mathematics",
8282
"Topic :: Software Development :: Libraries :: Python Modules",

0 commit comments

Comments
 (0)