Commits

Evgeniy Tatarkin committed 2dad84a

new release 0.0.2.dev

Comments (0)

Files changed (2)

 # |version| and |release|, also used in various other places throughout the
 # built documents.
 #
-# The short X.Y version.
-version = '0.0.1.dev'
-# The full version, including alpha/beta/rc tags.
-release = '0.0.1.dev'
+import pkg_resources
+try:
+    release = pkg_resources.get_distribution('pomp').version
+except pkg_resources.DistributionNotFound:
+    print('To build the documentation, The distribution information of')
+    print('Pomp has to be available.  Either install the package')
+    print('into your development environment or run "setup.py develop"')
+    print('to setup the metadata.  A virtualenv is recommended!')
+    sys.exit(1)
+del pkg_resources
+
+if 'dev' in release:
+    release = release.split('dev')[0] + 'dev'
+version = '.'.join(release.split('.')[:2])
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
-__version__ = (0, 0, 1, 'dev', 0)
+__version__ = (0, 0, 2, 'dev', 0)