Esempio n. 1
0
 def test_build_version_success(self):
     self.assertEqual(build_version('rose', '1.0.0'), (1, 0, 0))
     self.assertEqual(build_version('rose', '1.0.0-beta'), (1, 0, 0, 'beta'))
     self.assertEqual(build_version('rose', '0.9.13-alpha/security'), (0, 9, 13, 'alpha/security'))
Esempio n. 2
0
import os
import rose


VERSION_FILE = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'VERSION')


__author__ = 'Daniel Lindsley, Cody Soyland, Matt Croydon, Josh Bohde & Issac Kelly'
__version__ = rose.build_version('your_package_name_here', rose.load_version(VERSION_FILE))