mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-29 14:56:24 +02:00
[version] handling version in a file
This commit is contained in:
parent
60aca4a635
commit
ac70d3da21
4 changed files with 8 additions and 7 deletions
1
GPy/VERSION
Normal file
1
GPy/VERSION
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
0.8.0
|
||||||
|
|
@ -21,7 +21,8 @@ from . import plotting
|
||||||
from .core import Model
|
from .core import Model
|
||||||
from .core.parameterization import Param, Parameterized, ObsAr
|
from .core.parameterization import Param, Parameterized, ObsAr
|
||||||
|
|
||||||
__version__ = '0.8.0'
|
with open('VERSION', 'r') as f:
|
||||||
|
__version__ = f.read()
|
||||||
|
|
||||||
#@nottest
|
#@nottest
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,4 @@ current_version = 0.8.0
|
||||||
tag = True
|
tag = True
|
||||||
commit = True
|
commit = True
|
||||||
|
|
||||||
[bumpversion:file:setup.py]
|
[bumpversion:file:GPy/VERSION]
|
||||||
[bumpversion:file:GPy/__init__.py]
|
|
||||||
|
|
|
||||||
8
setup.py
8
setup.py
|
|
@ -6,12 +6,11 @@ import sys
|
||||||
from setuptools import setup, Extension
|
from setuptools import setup, Extension
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
# Version number
|
|
||||||
__version__ = '0.8.0'
|
|
||||||
|
|
||||||
def read(fname):
|
def read(fname):
|
||||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||||
|
|
||||||
|
__version__ = read('GPy/VERSION')
|
||||||
|
|
||||||
#Mac OS X Clang doesn't support OpenMP th the current time.
|
#Mac OS X Clang doesn't support OpenMP th the current time.
|
||||||
#This detects if we are building on a Mac
|
#This detects if we are building on a Mac
|
||||||
def ismac():
|
def ismac():
|
||||||
|
|
@ -72,7 +71,8 @@ setup(name = 'GPy',
|
||||||
package_dir={'GPy': 'GPy'},
|
package_dir={'GPy': 'GPy'},
|
||||||
package_data = {'GPy': ['defaults.cfg', 'installation.cfg',
|
package_data = {'GPy': ['defaults.cfg', 'installation.cfg',
|
||||||
'util/data_resources.json',
|
'util/data_resources.json',
|
||||||
'util/football_teams.json']},
|
'util/football_teams.json',
|
||||||
|
'VERSION']},
|
||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
py_modules = ['GPy.__init__'],
|
py_modules = ['GPy.__init__'],
|
||||||
test_suite = 'GPy.testing',
|
test_suite = 'GPy.testing',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue