From 3bea54f8d0eb84174285d490013cb6f497d32c14 Mon Sep 17 00:00:00 2001 From: Yue Zhao Date: Wed, 25 Jul 2018 16:31:50 -0400 Subject: [PATCH] Fix doc compilation error --- docs/conf.py | 2 +- pyod/version.py | 2 +- setup.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 7099f47b..fb06d74c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,8 +18,8 @@ sys.path.insert(0, os.path.abspath('..')) +from pyod.version import __version__ # -- Project information ----------------------------------------------------- -exec(open(os.path.join(os.path.sep, 'pyod', 'version.py')).read()) project = 'pyod' copyright = '2018, Yue Zhao' diff --git a/pyod/version.py b/pyod/version.py index 19283fe5..31d29d82 100644 --- a/pyod/version.py +++ b/pyod/version.py @@ -1 +1 @@ -__version__ = '0.5.4' +__version__ = '0.5.5' diff --git a/setup.py b/setup.py index f9e9ec48..16a7f586 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,10 @@ from setuptools import find_packages, setup +from pyod.version import __version__ # read the contents of README file from os import path from io import open # for Python 2 and 3 compatibility -exec(open(path.join(path.sep, 'pyod', 'version.py')).read()) - this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read()