Repository: lanpa/tensorboardX (language: python)

Issue:
Update unittests for newer protobuf
              Thanks for working on this! Does https://github.com/lanpa/tensorboardX/blob/master/test-requirements.txt#L5 also need to be refactored?

_Originally posted by @daliu in https://github.com/lanpa/tensorboardX/issues/697#issuecomment-1568962185_
            


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml
index 7a95095..87db6c1 100644
--- a/.github/workflows/python-app.yml
+++ b/.github/workflows/python-app.yml
@@ -56,7 +56,7 @@ jobs:
         python-version: 3.9
     - name: Run examples
       run: |
-        pip install six tensorboard pytest matplotlib torchvision protobuf==4.22.3 moviepy==1.0.3 imageio==2.27
+        pip install six tensorboard pytest matplotlib torchvision protobuf==4.22.3 moviepy==1.0.3 imageio==2.27 pillow==9.5.0
         python examples/demo.py
         python examples/demo_graph.py
         python examples/demo_embedding.py
diff --git a/setup.py b/setup.py
index 11b9baa..59255db 100644
--- a/setup.py
+++ b/setup.py
@@ -59,6 +59,7 @@ def run(self):
         'Programming Language :: Python :: 3.8',
         'Programming Language :: Python :: 3.9',
         'Programming Language :: Python :: 3.10',
+        'Programming Language :: Python :: 3.11',
     ],
     cmdclass={
         'develop': PostDevelopCommand,


Test patch:
diff --git a/run_pytest.sh b/run_pytest.sh
index 5039583..e3d628a 100755
--- a/run_pytest.sh
+++ b/run_pytest.sh
@@ -13,4 +13,4 @@ if [ `ps -ef|grep visdom |wc -l` = "1" ]
     trap "kill -SIGTERM $!" EXIT
 fi
 
-PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python pytest
+pytest
diff --git a/test-requirements.txt b/test-requirements.txt
index 6fa6b1f..6360047 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -2,7 +2,7 @@ flake8
 pytest
 torch
 torchvision
-protobuf==3.20.3
+protobuf==4.22.3
 numpy
 tensorboard
 boto3
@@ -12,4 +12,5 @@ soundfile
 visdom
 onnx
 pytest-cov
+imageio==2.27