Changeset 7556019 in sasview


Ignore:
Timestamp:
Feb 2, 2019 7:27:09 PM (5 years ago)
Author:
butler
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249
Children:
5fcb814
Parents:
839f70f7
Message:

Move all remaining version specific parameters to sasview.init

Edit sphinx config to also use version and dates from sasview's init.
This should put all version specific variables into
src.sas.sasview.init.py so that we only need to change these
parameters in one place
adresses #946

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • docs/sphinx-docs/source/conf.py

    rf38ff0b r7556019  
    2525print("-- path --") 
    2626print("\n".join(sys.path)) 
     27 
     28#need to import src.sas.sasview init to access version number and dates 
     29#use abspath as above to locate then import 
     30sasview_path = os.path.abspath('../../../src/sas') 
     31sys.path.append(sasview_path) 
     32import sas.sasview 
    2733 
    2834# -- General configuration ----------------------------------------------------- 
     
    7177 
    7278# General information about the project. 
     79copyright_date = sas.sasview.__release_date__ 
    7380project = u'SasView' 
    74 copyright = u'2019, The SasView Project' 
     81copyright = u'%s, The SasView Project' % copyright_date 
    7582 
    7683# The version info for the project you're documenting, acts as replacement for 
     
    7986# 
    8087# The short X.Y version. 
    81 version = '4.2' 
     88version = sas.sasview.__major_version__ + "." + sas.sasview.__minor_version__ 
    8289# The full version, including alpha/beta/rc tags. 
    83 release = '4.2.1' 
     90release = sas.sasview.__version__ 
    8491 
    8592# The language for content autogenerated by Sphinx. Refer to documentation 
  • src/sas/sasview/__init__.py

    r839f70f7 r7556019  
    1 __version__ = "4.2.1" 
     1__major_version__ = "4" 
     2__minor_version__ = "2" 
     3__version__ = __major_version__ + "." + __minor_version__ + ".1" 
    24__DOI__ = "Zenodo, 10.5281/zenodo.1412041" 
    35__release_date__ = "2019" 
Note: See TracChangeset for help on using the changeset viewer.