mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-05 14:55:15 +02:00
[version] controlling the version from __version__.py using bumpversion and setup.cfg
This commit is contained in:
parent
ac70d3da21
commit
3c2ea9033a
4 changed files with 7 additions and 6 deletions
|
|
@ -1 +0,0 @@
|
||||||
0.8.0
|
|
||||||
|
|
@ -21,8 +21,7 @@ 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
|
||||||
|
|
||||||
with open('VERSION', 'r') as f:
|
from .__version__ import __version__
|
||||||
__version__ = f.read()
|
|
||||||
|
|
||||||
#@nottest
|
#@nottest
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@ current_version = 0.8.0
|
||||||
tag = True
|
tag = True
|
||||||
commit = True
|
commit = True
|
||||||
|
|
||||||
[bumpversion:file:GPy/VERSION]
|
[bumpversion:file:GPy/__version__.py]
|
||||||
|
|
|
||||||
7
setup.py
7
setup.py
|
|
@ -9,7 +9,10 @@ import numpy as np
|
||||||
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')
|
version_dummy = {}
|
||||||
|
exec(read('GPy/__version__.py'), version_dummy)
|
||||||
|
__version__ = version_dummy['__version__']
|
||||||
|
del version_dummy
|
||||||
|
|
||||||
#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
|
||||||
|
|
@ -72,7 +75,7 @@ setup(name = '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