Skip to content

Commit

Permalink
Require at least tensorboard 2.12.0, and drop Python 3.7 support acco…
Browse files Browse the repository at this point in the history
…rdingly

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
  • Loading branch information
j3soon committed Aug 15, 2024
1 parent e948cf5 commit 099013e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 17 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/test-with-tox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <tbparse_installing-without-tensorflow>`.

Expand All @@ -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:

Expand All @@ -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 <tbparse_parsing-scalars>`,
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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'
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 099013e

Please sign in to comment.