Skip to content

Commit

Permalink
prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
lanpa committed Jun 5, 2022
1 parent 2c37207 commit 1683ab0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
History
=======
2.5.1 (2022-06-05)
-------------------
* Enforce protobuf's version upper bound

2.5 (2022-02-22)
-----------------
* Fix deprecation warnings
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Write TensorBoard events with simple function call.

The current release (v2.3) is tested on anaconda3, with PyTorch 1.8.1 / torchvision 0.9.1 / tensorboard 2.5.0.
The current release (v2.5) is tested on anaconda3, with PyTorch 1.11.0 / torchvision 0.12 / tensorboard 2.9.0.

* Support `scalar`, `image`, `figure`, `histogram`, `audio`, `text`, `graph`, `onnx_graph`, `embedding`, `pr_curve`, `mesh`, `hyper-parameters`
and `video` summaries.
Expand Down
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,19 @@ def run(self):
compileProtoBuf()
develop.run(self)


class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
compileProtoBuf()
import os
os.system("pip install protobuf numpy")
for r in requirements:
subprocess.run(f"pip install '{r}'", shell=True)
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.5'
version_git = version = '2.5.1'

if not preparing_PyPI_package:
if os.path.exists('.git'):
Expand All @@ -44,7 +43,7 @@ def run(self):

requirements = [
'numpy',
'protobuf >= 3.8.0, <=3.20.1',
'protobuf>=3.8.0,<=3.20.1',
]


Expand Down

0 comments on commit 1683ab0

Please sign in to comment.