From 2fff73b58cdb4668e9b2358d045fe55fae1736ce Mon Sep 17 00:00:00 2001 From: Minchul Lee Date: Sat, 6 Jun 2020 12:51:29 +0900 Subject: [PATCH] added versioning --- setup.py | 3 ++- tomotopy/__init__.py | 1 + tomotopy/version.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 tomotopy/version.py 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