Skip to content

Commit

Permalink
centralize version definition (pep 396)
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Apr 13, 2019
1 parent 6d24483 commit 890554e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
11 changes: 6 additions & 5 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

from smt import __version__

# -- General configuration ------------------------------------------------

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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'),
]


Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import sys
from subprocess import call
import numpy as np
from smt import __version__

CLASSIFIERS = """\
Development Status :: 5 - Production/Stable
Expand Down Expand Up @@ -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.',
Expand Down
1 change: 1 addition & 0 deletions smt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__='0.3.0'

0 comments on commit 890554e

Please sign in to comment.