Skip to content

Commit

Permalink
Release 2.2 (#622)
Browse files Browse the repository at this point in the history
* prepare for release

* update travis test
  • Loading branch information
lanpa committed Apr 3, 2021
1 parent 75ec65f commit 0c9dedb
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 17 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ script:
- sleep 5
- python -c "import visdom; v = visdom.Visdom()"
- py.test --cov=tensorboardX tests/
- pytest tests/tset_multiprocess_write.py # pytest has issue with multiprocessing, so I rename to "tset"
- python examples/demo.py # mnist download is broken
- python examples/demo_graph.py
- python examples/demo_embedding.py
Expand Down
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
History
=======
2.2 (2021-04-03)
-----------------
* Support for type hints.
* Dropped Python 2 support.
* Bug fixes, see the commit log in Github.

2.1 (2020-07-05)
-----------------
* Global SummaryWriter that mimics python's default logger class, concurrent write is supported.
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![Build Status](https://travis-ci.org/lanpa/tensorboardX.svg?branch=master)](https://travis-ci.org/lanpa/tensorboardX)
[![PyPI version](https://badge.fury.io/py/tensorboardX.svg)](https://badge.fury.io/py/tensorboardX)
[![Downloads](https://img.shields.io/badge/pip--downloads-5K+-brightgreen.svg)](https://bigquery.cloud.google.com/savedquery/966219917372:edb59a0d70c54eb687ab2a9417a778ee)
[![Documentation Status](https://readthedocs.org/projects/tensorboardx/badge/?version=latest)](https://tensorboardx.readthedocs.io/en/latest/?badge=latest)
[![Documentation Status](https://codecov.io/gh/lanpa/tensorboardX/branch/master/graph/badge.svg)](https://codecov.io/gh/lanpa/tensorboardX/)

Expand Down
1 change: 0 additions & 1 deletion run_pytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ fi

PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python pytest

pytest tests/tset_multiprocess_write.py
27 changes: 14 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ class PostInstallCommand(install):
def run(self):
compileProtoBuf()
import os
os.system("pip install protobuf numpy six")
os.system("pip install protobuf numpy")
install.run(self)

with open('HISTORY.rst') as history_file:
history = history_file.read()

preparing_PyPI_package = 'sdist' in sys.argv or 'bdist_wheel' in sys.argv
version_git = version = '2.1'
version_git = version = '2.2'

if not preparing_PyPI_package:
if os.path.exists('.git'):
Expand All @@ -45,10 +45,10 @@ def run(self):
requirements = [
'numpy',
'protobuf >= 3.8.0',
'six',
]

test_requirements = [
'future'
'pytest',
'matplotlib',
'crc32c',
Expand All @@ -68,16 +68,14 @@ def run(self):
license='MIT license',
zip_safe=False,
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
cmdclass={
'develop': PostDevelopCommand,
Expand All @@ -89,11 +87,14 @@ def run(self):


# checklist: update History.rst readme.md
# update the version number in this file.
# update the version number in this file (setup.py).
# python setup.py sdist bdist_wheel --universal
# check the generated tar.gz file (the version, no *.pyc)
# git add [files]
# git commit -m 'prepare for release'
# check the generated tar.gz file
# (1. The version number is correct. 2. no *.pyc __pycache__ files)
# git checkout -b "release x.x"
# git add setup.py History.rst readme.md
# git commit -m 'prepare for release' (skip tensorboardX/__init__.py)
# add tag
# twine upload dist/*
# push commit
# git push

3 changes: 2 additions & 1 deletion tensorboardX/torchvis.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def __init__(self, *args, **init_kwargs):
args (list of strings): The name of the visualization target(s).
Accepted targets are 'tensorboard' and 'visdom'.
init_kwargs: Additional keyword parameters for the visdom writer (For example, server IP).
See `visdom doc <https://github.com/facebookresearch/visdom/blob/master/README.md#visdom-arguments-python-only>`_ for more.
See `visdom doc <https://github.com/facebookresearch/visdom/blob
/master/README.md#visdom-arguments-python-only>`_ for more.
"""
self.subscribers = {}
self.register(*args, **init_kwargs)
Expand Down
File renamed without changes.

0 comments on commit 0c9dedb

Please sign in to comment.