Skip to content

Commit

Permalink
Releases/v2.6.1 (#700)
Browse files Browse the repository at this point in the history
* v2.6.1

* fix build script and step

* don't re-compile protobuf
  • Loading branch information
lanpa authored Jun 24, 2023
1 parent e1658af commit 5a340eb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Build a binary wheel and a source tarball
run: |
echo `pwd`
python setup.py -q sdist bdist_wheel --universal ${{ github.event.inputs.publish_version }}
python setup.py -q sdist bdist_wheel --universal
- name: Install tensorboardX from whl
run: pip install dist/tensorboardX*.whl
Expand Down
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
History
=======
2.6.1 (2023-06-18)
-------------------
* Expose use_strict_trace parameter in add_graph (#694)
* Upgrade to protobuf 4
* Fix git based package versioning
* Fix GCS Connection Error #606 (#686)

2.6 (2023-02-12)
-------------------
* Fixed several deprecation warnings
Expand Down
21 changes: 6 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,18 @@ def compileProtoBuf():
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
compileProtoBuf()
develop.run(self)

class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
compileProtoBuf()
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

requirements = [
'numpy',
'packaging',
Expand Down Expand Up @@ -71,14 +67,9 @@ def run(self):
)


# checklist: update History.rst readme.md
# update the version number in this file (setup.py).
# python setup.py sdist bdist_wheel --universal
# 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 (skip tensorboardX/__init__.py)
# git commit -m 'prepare for release'
# add tag
# twine upload dist/*
# git push -u origin HEAD
# pypi checklist:
# update History.rst readme.md
# git tag -a v1.0.0 -m "version 1.0.0"
# git push -u origin HEAD --tags
# go github actions, enter version number v1.0.0 then publish

0 comments on commit 5a340eb

Please sign in to comment.