Changeset 8d2f5bb in sasview


Ignore:
Timestamp:
Dec 16, 2011 11:58:11 AM (12 years ago)
Author:
Mathieu Doucet <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
0cbdaf0
Parents:
2855c6f
Message:

Re #3 improve versioning

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • build_tools/get_version.py

    r8e18885 r8d2f5bb  
     1import os 
    12__revision__ = filter(str.isdigit, "$Revision$") 
    23__version__ = "0.0.0" 
     
    4344    print "Could not load sansview module" 
    4445     
     46print "SansView v ", __version__, __revision__ 
  • sansview/__init__.py

    r2855c6f r8d2f5bb  
    11__version__ = "2.0.1" 
    2 __is_release__ = False 
     2 
     3try: 
     4    import pkg_resources 
     5    d = pkg_resources.get_distribution("sansview") 
     6    rev = int(d.parsed_version[5]) 
     7    __build__ = str(rev) 
     8except: 
     9    __build__ = "1" 
  • sansview/local_config.py

    rcf81aaa r8d2f5bb  
    55import os 
    66from sans.guiframe.gui_style import GUIFRAME 
     7import sans.sansview 
     8 
    79# Version of the application 
    810__appname__ = "SansView" 
    9 __version__ = '2.0.1' 
    10 __build__ = '2.0.1' 
     11__version__ = sans.sansview.__version__ 
     12__build__ = sans.sansview.__build__ 
    1113__download_page__ = 'http://danse.chem.utk.edu' 
    1214__update_URL__ = 'http://danse.chem.utk.edu/sansview_version.php' 
Note: See TracChangeset for help on using the changeset viewer.