From 370bb5570ee00ed7bfdbef5963da8f7948a00d51 Mon Sep 17 00:00:00 2001 From: Tzu-Wei Huang Date: Sun, 6 Oct 2019 00:12:00 +0800 Subject: [PATCH] release v1.9 --- HISTORY.rst | 6 ++++++ README.md | 2 +- run_pytest.sh | 4 ++++ setup.py | 11 ++++++----- tensorboardX/__init__.py | 2 +- 5 files changed, 18 insertions(+), 7 deletions(-) create mode 100755 run_pytest.sh diff --git a/HISTORY.rst b/HISTORY.rst index 81fecd1c..fbb2b007 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,5 +1,11 @@ History ======= +1.9 (2019-10-04) +----------------- +* Use new JIT backend for pytorch. This works better with pytorch 1.2 and 1.3 +* Supports hparams plugin +* add_embedding now supports numpy array input + 1.8 (2019-07-05) ----------------- * Draw label text on image with bounding box provided. diff --git a/README.md b/README.md index e2703672..a745364b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Write TensorBoard events with simple function call. * Support `scalar`, `image`, `figure`, `histogram`, `audio`, `text`, `graph`, `onnx_graph`, `embedding`, `pr_curve`, `mesh`, `hyper-parameters` and `video` summaries. -* requirement for `demo_graph.py` is tensorboardX>=1.6 and pytorch>=1.1 +* requirement for `demo_graph.py` is tensorboardX>=1.9 and pytorch>=1.2 * [FAQ](https://github.com/lanpa/tensorboardX/wiki) diff --git a/run_pytest.sh b/run_pytest.sh new file mode 100755 index 00000000..16f9fa7f --- /dev/null +++ b/run_pytest.sh @@ -0,0 +1,4 @@ +pip install pytest boto3 moto onnx tensorboard matplotlib + +PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python pytest + diff --git a/setup.py b/setup.py index 56954107..c8f35e18 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ def run(self): history = history_file.read() preparing_PyPI_package = False -version_git = version = '1.8' +version_git = version = '1.9' if not preparing_PyPI_package: if os.path.exists('.git'): @@ -88,10 +88,11 @@ def run(self): # checklist: update History.rst readme.md -# change preparing_PyPI_package to True -# remove __version__ = "1.old" in __init__.py -# commit -# add tag +# change preparing_PyPI_package to True, and version_git +# remove __version__ = "1.old" in __init__.py, update the version number # python setup.py sdist bdist_wheel --universal +# check the generated tar.gz file +# git commit -m 'prepare for release' +# add tag # twine upload dist/* # push commit \ No newline at end of file diff --git a/tensorboardX/__init__.py b/tensorboardX/__init__.py index 23c052f7..69f71eb8 100644 --- a/tensorboardX/__init__.py +++ b/tensorboardX/__init__.py @@ -5,4 +5,4 @@ from .torchvis import TorchVis from .writer import FileWriter, SummaryWriter -__version__ = "1.8" # will be overwritten if run setup.py +__version__ = "1.9" # will be overwritten if run setup.py