Changeset 10881:f22adc7ab645 in orange


Ignore:
Timestamp:
05/21/12 13:41:08 (2 years ago)
Author:
mitar
Branch:
default
Message:

Use current version in documentation.

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • docs/development/rst/conf.py

    r10437 r10881  
    1313 
    1414import sys, os 
     15 
     16import imp 
     17module_setup = imp.load_source('module_setup', os.path.join(os.path.dirname(__file__), '..', '..', '..', 'setup.py')) 
     18VERSION = module_setup.VERSION 
    1519 
    1620# If extensions (or modules to document with autodoc) are in another directory, 
    1721# add these directories to sys.path here. If the directory is relative to the 
    1822# documentation root, use os.path.abspath to make it absolute, like shown here. 
    19 sys.path.append(os.path.abspath('../../../')) 
     23sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../'))) 
    2024import Orange 
    2125 
     
    4751# 
    4852# The short X.Y version. 
    49 version = '2.5' 
     53version = VERSION 
    5054# The full version, including alpha/beta/rc tags. 
    51 release = '2.5 beta' 
     55release = VERSION 
    5256 
    5357# The language for content autogenerated by Sphinx. Refer to documentation 
  • docs/extend-widgets/rst/conf.py

    r10437 r10881  
    1313 
    1414import sys, os 
     15 
     16import imp 
     17module_setup = imp.load_source('module_setup', os.path.join(os.path.dirname(__file__), '..', '..', '..', 'setup.py')) 
     18VERSION = module_setup.VERSION 
    1519 
    1620# If extensions (or modules to document with autodoc) are in another directory, 
    1721# add these directories to sys.path here. If the directory is relative to the 
    1822# documentation root, use os.path.abspath to make it absolute, like shown here. 
    19 sys.path.append(os.path.abspath('../../../')) 
     23sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../'))) 
    2024import Orange 
    2125 
     
    4751# 
    4852# The short X.Y version. 
    49 version = '2.5' 
     53version = VERSION 
    5054# The full version, including alpha/beta/rc tags. 
    51 release = '2.5 beta' 
     55release = VERSION 
    5256 
    5357# The language for content autogenerated by Sphinx. Refer to documentation 
  • docs/first-steps/rst/conf.py

    r9402 r10881  
    1313 
    1414import sys, os 
     15 
     16import imp 
     17module_setup = imp.load_source('module_setup', os.path.join(os.path.dirname(__file__), '..', '..', '..', 'setup.py')) 
     18VERSION = module_setup.VERSION 
    1519 
    1620# If extensions (or modules to document with autodoc) are in another directory, 
    1721# add these directories to sys.path here. If the directory is relative to the 
    1822# documentation root, use os.path.abspath to make it absolute, like shown here. 
    19 #sys.path.append(os.path.abspath('.')) 
     23sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../'))) 
     24import Orange 
    2025 
    2126# -- General configuration ----------------------------------------------------- 
     
    4651# 
    4752# The short X.Y version. 
    48 version = '2.5' 
     53version = VERSION 
    4954# The full version, including alpha/beta/rc tags. 
    50 release = '2.5 beta' 
     55release = VERSION 
    5156 
    5257# The language for content autogenerated by Sphinx. Refer to documentation 
  • docs/reference/rst/conf.py

    r10037 r10881  
    1212# serve to show the default. 
    1313 
    14 import sys, os, os.path 
     14import sys, os 
    1515 
    1616#rewrite formatargs function with different defaults 
     
    2222numpydoc.docscrape.inspect = myinspect 
    2323 
     24import imp 
     25module_setup = imp.load_source('module_setup', os.path.join(os.path.dirname(__file__), '..', '..', '..', 'setup.py')) 
     26VERSION = module_setup.VERSION 
     27 
    2428#disable deprecation decorators for the documentation 
    2529os.environ["orange_no_deprecated_members"] = "1" 
     
    2832# add these directories to sys.path here. If the directory is relative to the 
    2933# documentation root, use os.path.abspath to make it absolute, like shown here. 
    30 sys.path.append(os.path.abspath('../../../orange')) 
     34sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../'))) 
     35import Orange 
    3136 
    3237# -- General configuration ----------------------------------------------------- 
     
    6469# 
    6570# The short X.Y version. 
    66 version = '2.5' 
     71version = VERSION 
    6772# The full version, including alpha/beta/rc tags. 
    68 release = '2.5 beta' 
     73release = VERSION 
    6974 
    7075# The language for content autogenerated by Sphinx. Refer to documentation 
  • docs/tutorial/rst/conf.py

    r9387 r10881  
    1313 
    1414import sys, os 
     15 
     16import imp 
     17module_setup = imp.load_source('module_setup', os.path.join(os.path.dirname(__file__), '..', '..', '..', 'setup.py')) 
     18VERSION = module_setup.VERSION 
    1519 
    1620# If extensions (or modules to document with autodoc) are in another directory, 
    1721# add these directories to sys.path here. If the directory is relative to the 
    1822# documentation root, use os.path.abspath to make it absolute, like shown here. 
    19 #sys.path.append(os.path.abspath('.')) 
     23sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../'))) 
     24import Orange 
    2025 
    2126# -- General configuration ----------------------------------------------------- 
     
    4651# 
    4752# The short X.Y version. 
    48 version = '2.5' 
     53version = VERSION 
    4954# The full version, including alpha/beta/rc tags. 
    50 release = '2.5 beta' 
     55release = VERSION 
    5156 
    5257# The language for content autogenerated by Sphinx. Refer to documentation 
  • docs/widgets/rst/conf.py

    r10405 r10881  
    1313 
    1414import sys, os 
     15 
     16import imp 
     17module_setup = imp.load_source('module_setup', os.path.join(os.path.dirname(__file__), '..', '..', '..', 'setup.py')) 
     18VERSION = module_setup.VERSION 
    1519 
    1620# If extensions (or modules to document with autodoc) are in another directory, 
    1721# add these directories to sys.path here. If the directory is relative to the 
    1822# documentation root, use os.path.abspath to make it absolute, like shown here. 
    19 #sys.path.append(os.path.abspath('.')) 
     23sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../'))) 
     24import Orange 
    2025 
    2126# -- General configuration ----------------------------------------------------- 
     
    9095# 
    9196# The short X.Y version. 
    92 version = '2.5' 
     97version = VERSION 
    9398# The full version, including alpha/beta/rc tags. 
    94 release = '2.5 beta' 
     99release = VERSION 
    95100 
    96101# The language for content autogenerated by Sphinx. Refer to documentation 
  • setup.py

    r10880 r10881  
    11#!usr/bin/env python 
    22 
    3 import distribute_setup 
    4 distribute_setup.use_setuptools() 
     3try: 
     4    import distribute_setup 
     5    distribute_setup.use_setuptools() 
     6except ImportError: 
     7    # For documentation we load setup.py to get version 
     8    # so it does not matter if importing fails 
     9    pass 
    510 
    611import glob, os, sys, types 
     
    9297import imp 
    9398try: 
    94     orangeqt_setup = imp.load_source('orangeqt_setup', 'source/orangeqt/setup.py') 
     99    orangeqt_setup = imp.load_source('orangeqt_setup', os.path.join(os.path.dirname(__file__), 'source/orangeqt/setup.py')) 
    95100    build_pyqt_ext = orangeqt_setup.build_pyqt_ext 
    96101except ImportError: 
Note: See TracChangeset for help on using the changeset viewer.