1. wrobell
  2. libdeco-ostc

Commits

wrobell  committed cf84a38

- added __version__ variable to decomecha module; use it whenever possible
- started to work on ver. 0.3.0

  • Participants
  • Parent commits e242968
  • Branches default

Comments (0)

Files changed (5)

File code_part1/libdeco/bin/decolint

View file
 
 import argparse
 import re
-from decomecha import DecoEngine
+from decomecha import DecoEngine, __version__
 
-parser = argparse.ArgumentParser(description='DecoMecha 0.1.0.')
+parser = argparse.ArgumentParser(description='DecoMecha {}.' \
+        .format(__version__))
 parser.add_argument('--setpoint', '-t', dest='setpoint', default=None,
         type=float, help='CCR setpoint, i.e. 1.3bar')
 parser.add_argument('--last_stop', '-s', dest='last_stop', default=3,

File code_part1/libdeco/configure.ac

View file
-AC_INIT(libdeco-ostc, 0.2.0, wrobell@pld-linux.org)
+AC_INIT(libdeco-ostc, 0.3.0, wrobell@pld-linux.org)
 
 AC_CONFIG_MACRO_DIR([m4])
 

File code_part1/libdeco/decomecha/__init__.py

View file
 
 from .engine import DecoEngine, DecoInfo
 
+__version__ = '0.3.0'
+
 __all__ = [DecoEngine, DecoInfo]
 
 # vim: sw=4:et:ai

File code_part1/libdeco/doc/conf.py

View file
 import sys
 import os.path
 
+import decomecha
+
 breathe_projects = {
     'libdeco': 'build/doxygen/xml',
 }
 source_suffix = '.rst'
 master_doc = 'index'
 
-version = '0.2.0'
-release = '0.2.0'
+version = release = decomecha.__version__
 copyright = 'libdeco-ostc team'
 
 epub_basename = 'libdeco-ostc - {}'.format(version)

File code_part1/libdeco/setup.py

View file
 
 from setuptools import setup, find_packages
 
-VERSION = '0.2.0'
+import decomecha
 
 setup(
     name='decomecha',
-    version=VERSION,
+    version=decomecha.__version__,
     description='DecoMecha is dive decompression library',
     author='Artur Wroblewski',
     author_email='wrobell@pld-linux.org',