Skip to content
Snippets Groups Projects
Commit fd025fc2 authored by Yngve Levinsen's avatar Yngve Levinsen
Browse files

a cleaner way to define version

parent d25833c8
No related branches found
No related tags found
No related merge requests found
Pipeline #5842 failed
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
# #
import os import os
import sys import sys
from ess import __version__
sys.path.insert(0, os.path.abspath('../')) sys.path.insert(0, os.path.abspath('../'))
# -- General configuration ------------------------------------------------ # -- General configuration ------------------------------------------------
...@@ -67,9 +68,9 @@ author = 'Ryoichi Miyamoto, Yngve Levinsen, Mamad Eshraqi' ...@@ -67,9 +68,9 @@ author = 'Ryoichi Miyamoto, Yngve Levinsen, Mamad Eshraqi'
# built documents. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = '2' version = __version__
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '2.2' release = version
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.
......
__all__ = ["fieldmap", "installed", "lib_tw", "SP_Relativity", "TraceWin" "TTF"] __all__ = ["fieldmap", "installed", "lib_tw", "SP_Relativity", "TraceWin" "TTF"]
__version__ = '2.2'
from . import TraceWin from . import TraceWin
from . import installed from . import installed
from . import lib_tw from . import lib_tw
......
from distutils.core import setup from distutils.core import setup
from ess import __version__
setup(name='ESS Python Tools', setup(name='ESS Python Tools',
version='2.2', version=__version__,
description='ESS Related Tools for Python', description='ESS Related Tools for Python',
url='http://ess-bp.pages.esss.lu.se/ess-python-tools', url='http://ess-bp.pages.esss.lu.se/ess-python-tools',
author='Yngve Levinsen', author='Yngve Levinsen',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment