diff --git a/setup.py b/setup.py index 009678b..d7e3cf1 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,7 @@ import os, os.path, struct, re, platform from setuptools.command.install import install import numpy +import tomotopy.version here = os.path.abspath(os.path.dirname(__file__)) @@ -53,7 +54,7 @@ setup( name='tomotopy', - version='0.8.0', + version=tomotopy.version.__version__, description='Tomoto, The Topic Modeling Tool for Python', long_description=long_description, diff --git a/tomotopy/__init__.py b/tomotopy/__init__.py index 901d719..694d7dc 100644 --- a/tomotopy/__init__.py +++ b/tomotopy/__init__.py @@ -4,6 +4,7 @@ .. include:: ./documentation.rst """ +from tomotopy.version import __version__ import tomotopy.utils as utils from enum import IntEnum diff --git a/tomotopy/version.py b/tomotopy/version.py new file mode 100644 index 0000000..ccf9e62 --- /dev/null +++ b/tomotopy/version.py @@ -0,0 +1 @@ +__version__ = '0.8.0' \ No newline at end of file