~dsdale24/python-quantities/0.7

« back to all changes in this revision

Viewing changes to doc/conf.py

  • Committer: Darren Dale
  • Date: 2009-12-12 16:44:46 UTC
  • Revision ID: dsdale24@gmail.com-20091212164446-knoaaab3ihd8z60p
finish updating setup scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
# |version| and |release|, also used in various other places throughout the
49
49
# built documents.
50
50
#
51
 
import quantities
 
51
from ConfigParser import ConfigParser
 
52
cfg = ConfigParser()
 
53
cfg.read('../setup.cfg')
52
54
# The short X.Y version.
53
 
version = quantities.__version__
 
55
version = cfg.get('metadata', 'version')
54
56
# The full version, including alpha/beta/rc tags.
55
 
release = quantities.__version__
 
57
release = version
56
58
 
57
59
# The language for content autogenerated by Sphinx. Refer to documentation
58
60
# for a list of supported languages.