Skip to content

Commit

Permalink
Rename __about__ -> __version__
Browse files Browse the repository at this point in the history
This file includes only __version__.
  • Loading branch information
sublee committed May 15, 2019
1 parent f90fdb9 commit 82363c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@


about = {} # type: ignore
with open('torchgpipe/__about__.py') as f:
with open('torchgpipe/__version__.py') as f:
exec(f.read(), about) # pylint: disable=W0122
version = about['__version__']
del about


setup(
name='torchgpipe',

version=about['__version__'],
version=version,

license='Apache License 2.0',
url='https://github.com/kakaobrain/torchgpipe',
Expand Down
2 changes: 1 addition & 1 deletion torchgpipe/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""A GPipe implementation in PyTorch."""
from torchgpipe.__about__ import __version__ # noqa
from torchgpipe.__version__ import __version__ # noqa
from torchgpipe.gpipe import GPipe

__all__ = ['GPipe']
File renamed without changes.

0 comments on commit 82363c9

Please sign in to comment.