Skip to content

Commit

Permalink
Refactor version file
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhao062 committed Nov 27, 2018
1 parent deaebf8 commit 71f60ac
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
25 changes: 23 additions & 2 deletions pyod/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# -*- coding: utf-8 -*-
__version__ = '0.6.3' # pragma: no cover
"""
``pyod`` is a python toolbox for scalable outlier detection
"""
# Based on NiLearn package
# License: simplified BSD

# PEP0440 compatible formatted version, see:
# https://www.python.org/dev/peps/pep-0440/
#
# Generic release markers:
# X.Y
# X.Y.Z # For bugfix releases
#
# Admissible pre-release markers:
# X.YaN # Alpha release
# X.YbN # Beta release
# X.YrcN # Release Candidate
# X.Y # Final release
#
# Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer.
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
#
__version__ = '0.6.4' # pragma: no cover
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
from os import path
from io import open # for Python 2 and 3 compatibility

exec(open(path.join('pyod', 'version.py')).read())
# get __version__ from _version.py
ver_file = path.join('pyod', 'version.py')
with open(ver_file) as f:
exec(f.read())

this_directory = path.abspath(path.dirname(__file__))


def readme():
with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f:
return f.read()
Expand Down

0 comments on commit 71f60ac

Please sign in to comment.