From 099013ee0d15360164b6968e130509a482407a9b Mon Sep 17 00:00:00 2001 From: Johnson Sun Date: Fri, 16 Aug 2024 01:56:47 +0800 Subject: [PATCH] Require at least tensorboard 2.12.0, and drop Python 3.7 support accordingly TensorBoard 2.12.0 drops Python 3.7 support. Ref: https://github.com/tensorflow/tensorboard/blob/master/RELEASE.md#release-2120 Python 3.7 is EOL in 2023-06-27. Ref: https://devguide.python.org/versions/#supported-versions --- .github/workflows/test-with-tox.yaml | 7 +------ README.md | 4 ++-- docs/index.rst | 2 +- docs/pages/installation.rst | 6 +++--- setup.py | 5 ++--- tox.ini | 3 +-- 6 files changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test-with-tox.yaml b/.github/workflows/test-with-tox.yaml index 3f2f394..dc8387c 100644 --- a/.github/workflows/test-with-tox.yaml +++ b/.github/workflows/test-with-tox.yaml @@ -18,12 +18,7 @@ jobs: - macos-14 # macos-latest - windows-2019 - windows-2022 # windows-latest - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] - exclude: - - platform: ubuntu-24.04 - python-version: 3.7 - - platform: macos-14 - python-version: 3.7 + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/README.md b/README.md index 8e9a4f1..e8a602e 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ A simple yet powerful tensorboard event log parser/reader. Installation: ```sh -pip install -U tbparse # requires Python >= 3.7 +pip install -U tbparse # requires Python >= 3.8 ``` We suggest using an additional virtual environment for parsing and plotting the tensorboard events. So no worries if your training code uses Python 3.6 or older versions. @@ -75,7 +75,7 @@ All events above are generated and plotted in [gallery-pytorch.ipynb](https://gi ```sh pip install tensorflow # optional, only required if you want to parse images and audio -pip install -U tbparse # requires Python >= 3.7 +pip install -U tbparse # requires Python >= 3.8 ``` **Note**: For details on when TensorFlow is required, see [Installing without TensorFlow](https://tbparse.readthedocs.io/en/latest/pages/installation.html#installing-without-tensorflow). diff --git a/docs/index.rst b/docs/index.rst index 823aac3..944111b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -54,7 +54,7 @@ Installation: .. code-block:: bash - pip install -U tbparse # requires Python >= 3.7 + pip install -U tbparse # requires Python >= 3.8 We suggest using an additional virtual environment for parsing and plotting the tensorboard events. So no worries if your training code uses Python 3.6 diff --git a/docs/pages/installation.rst b/docs/pages/installation.rst index 8baba9c..fd06f87 100644 --- a/docs/pages/installation.rst +++ b/docs/pages/installation.rst @@ -11,7 +11,7 @@ Install from PyPI: .. code-block:: bash pip install tensorflow # optional, only required if you want to parse images and audio - pip install -U tbparse # requires Python >= 3.7 + pip install -U tbparse # requires Python >= 3.8 **Note**: For details on when TensorFlow is required, see :ref:`Installing without TensorFlow `. @@ -22,7 +22,7 @@ Install from Source: git clone https://github.com/j3soon/tbparse cd tbparse pip install tensorflow # optional, only required if you want to parse images and audio - pip install -e . # requires Python >= 3.7 + pip install -e . # requires Python >= 3.8 .. _tbparse_installing-without-tensorflow: @@ -34,7 +34,7 @@ You can install tbparse with reduced feature set if you don't want to install Te .. code-block:: bash # Don't install TensorFlow - pip install -U tbparse # requires Python >= 3.7 + pip install -U tbparse # requires Python >= 3.8 Without TensorFlow, tbparse supports parsing :ref:`scalars `, diff --git a/setup.py b/setup.py index 847dca9..a71d21d 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,6 @@ classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", @@ -37,10 +36,10 @@ ], package_dir={"": "."}, packages=setuptools.find_packages(where=".", exclude=("tests*",)), - python_requires=">=3.7", + python_requires=">=3.8", install_requires=[ "pandas>=1.3.0", - "tensorboard>=2.0.0", + "tensorboard>=2.12.0", ], # The following error occurs if tensorboardX>2.6 # ImportError: cannot import name 'builder' from 'google.protobuf.internal' diff --git a/tox.ini b/tox.ini index c9f3ddb..e223507 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,8 @@ [tox] -envlist = py37, py38, py39, py310, py311, py312 +envlist = py38, py39, py310, py311, py312 [gh-actions] python = - 3.7: py37 3.8: py38 3.9: py39 3.10: py310