예제 #1
0
 def handle(self, *args, **options):
     self.stdout.write('Bootstrapping...')
     if hasattr(settings, 'BASE_DIR'):
         directory = settings.BASE_DIR
     else:
         directory = '.'
     bootstrap(directory)
예제 #2
0
def cut(directory, release_type):
    config = get_config(directory)
    # Create Version File
    version_file = os.path.join(config.get("MCConfig", "version_directory"), config.get("MCConfig", "version_file"))
    if config.get("MCConfig", "run_tests_before_cut"):
        test
    if not os.path.isfile(version_file):
        bootstrap(directory)
    if release_type is "patch":
        bump_patch(config)
    elif release_type is "minor":
        bump_minor(config)
    elif release_type is "major":
        bump_major(config)
    else:
        bump_patch(config)