Exemple #1
0
def check_scm_status():
    print(yellow("check version control status..."))
    scm = Scm(os.getcwd())
    status = scm.get_status()
    for name in status:
        if name not in ('setup.py',):
            abort('The following files have not been committed: {0}'.format(status))
Exemple #2
0
def commit_and_tag(version):
    print(yellow("version control - commit and tag..."))
    scm = Scm(os.getcwd())
    scm.commit_and_tag(version)
Exemple #3
0
def get_scm_config():
    print(yellow("get version control config..."))
    scm = Scm(os.getcwd())
    return scm.get_config()