From feb34a7c9868a919970be76cbfdaede2613a6857 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Tue, 7 Jan 2014 10:37:43 +0000 Subject: [PATCH] version file added --- GPy/__init__.py | 3 +++ GPy/version | 1 + setup.py | 9 +++++---- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 GPy/version diff --git a/GPy/__init__.py b/GPy/__init__.py index 5c4838da..320ebc7a 100644 --- a/GPy/__init__.py +++ b/GPy/__init__.py @@ -4,6 +4,9 @@ import warnings warnings.filterwarnings("ignore", category=DeprecationWarning) import os +with open("version", 'r') as f: + __version__ = f.read() + import core import models import mappings diff --git a/GPy/version b/GPy/version new file mode 100644 index 00000000..a0c16133 --- /dev/null +++ b/GPy/version @@ -0,0 +1 @@ +0.4.7b \ No newline at end of file diff --git a/setup.py b/setup.py index 80f3648a..c0fb02e4 100644 --- a/setup.py +++ b/setup.py @@ -4,12 +4,13 @@ import os from setuptools import setup -# Version number -version = '0.4.6' def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() +# Version number +version = read('GPy/version') + setup(name = 'GPy', version = version, author = read('AUTHORS.txt'), @@ -20,10 +21,10 @@ setup(name = 'GPy', url = "http://sheffieldml.github.com/GPy/", packages = ['GPy', 'GPy.core', 'GPy.kern', 'GPy.util', 'GPy.models_modules', 'GPy.inference', 'GPy.examples', 'GPy.likelihoods', 'GPy.testing', 'GPy.util.latent_space_visualizations', 'GPy.util.latent_space_visualizations.controllers', 'GPy.likelihoods.noise_models', 'GPy.kern.parts', 'GPy.mappings'], package_dir={'GPy': 'GPy'}, - package_data = {'GPy': ['GPy/examples', 'gpy_config.cfg', 'util/data_resources.json']}, + package_data = {'GPy': ['GPy/examples', 'gpy_config.cfg', 'util/data_resources.json', 'version']}, py_modules = ['GPy.__init__'], long_description=read('README.md'), - install_requires=['numpy>=1.6', 'scipy>=0.9','matplotlib>=1.1', 'nose'], + install_requires=['numpy >= 1.6', 'scipy == 0.12','matplotlib >= 1.2', 'nose'], extras_require = { 'docs':['Sphinx', 'ipython'], },