From 890554ed91bb7190b77d18c2f88506eb3e4df46b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lafage?= Date: Sat, 13 Apr 2019 18:45:44 +0200 Subject: [PATCH] centralize version definition (pep 396) --- doc/conf.py | 11 ++++++----- setup.py | 3 ++- smt/__init__.py | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 3bb692b6e..a3c944db7 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -20,7 +20,7 @@ # import os # import sys # sys.path.insert(0, os.path.abspath('.')) - +from smt import __version__ # -- General configuration ------------------------------------------------ @@ -54,16 +54,17 @@ # General information about the project. project = 'SMT' copyright = '2017, John Hwang' -author = 'John Hwang, Mohamed Amine Bouhlel' +author = 'John Hwang, Mohamed Amine Bouhlel, Remi Lafage' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '0.2' +# Take the full version when no need to distinguish version and release +version = __version__ # The full version, including alpha/beta/rc tags. -release = '0.2' +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -136,7 +137,7 @@ # author, documentclass [howto, manual, or own class]). latex_documents = [ (master_doc, 'SMT.tex', 'SMT Documentation', - 'John Hwang, Mohamed Amine Bouhlel', 'manual'), + 'John Hwang, Mohamed Amine Bouhlel, Remi Lafage', 'manual'), ] diff --git a/setup.py b/setup.py index 0b6ca9cb1..5086a33d6 100644 --- a/setup.py +++ b/setup.py @@ -11,6 +11,7 @@ import sys from subprocess import call import numpy as np +from smt import __version__ CLASSIFIERS = """\ Development Status :: 5 - Production/Stable @@ -88,7 +89,7 @@ metadata = dict( name='smt', - version='0.3.0', + version=__version__, description='The Surrogate Modeling Toolbox (SMT)', long_description=LONG_DESCRIPTION, author='Mohamed Amine Bouhlel et al.', diff --git a/smt/__init__.py b/smt/__init__.py index e69de29bb..1ca87cfb3 100644 --- a/smt/__init__.py +++ b/smt/__init__.py @@ -0,0 +1 @@ +__version__='0.3.0'