diff --git a/pydgets/__init__.py b/pydgets/__init__.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..824978d6ff782ba21214bad0d5a6932f73506953 100644 --- a/pydgets/__init__.py +++ b/pydgets/__init__.py @@ -0,0 +1 @@ +__version__ = "0.9" diff --git a/setup.py b/setup.py index dddf393a68c1c61b938cda171fe7f442022d17bb..efdbfc094316a71710c10fe39d78448e294a00f7 100644 --- a/setup.py +++ b/setup.py @@ -15,6 +15,14 @@ from setuptools import setup, find_packages from codecs import open from os import path +import sys +# +# Import local version of pynspect library, so that we can insert correct version +# number into documentation. +# +sys.path.insert(0, path.abspath('.')) +import pydgets + here = path.abspath(path.dirname(__file__)) # Get the long description from the README file @@ -23,7 +31,7 @@ with open(path.join(here, 'README.rst'), encoding='utf-8') as f: setup( name = 'pydgets', - version = '0.9', + version = pydgets.__version__, description = 'Console widget library for Python 3', long_description = long_description, classifiers = [