Ejemplo n.º 1
0
def clean():
    """ remove build artifacts """
    recursively_remove(Project.herringfile_dir, '*.pyc')
    recursively_remove(Project.herringfile_dir, '*~')
    debug(repr(Project.__dict__))

    dirs = [Project.dist_dir, Project.egg_dir]
    # print("dirs => %s" % repr(dirs))

    for dir_name in dirs:
        if os.path.exists(dir_name):
            shutil.rmtree(dir_name)
Ejemplo n.º 2
0
 def clean():
     """Remove documentation artifacts"""
     global doc_errors
     recursively_remove(os.path.join(Project.docs_dir, '_src'), '*')
     recursively_remove(os.path.join(Project.docs_dir, '_epy'), '*')
     recursively_remove(os.path.join(Project.docs_dir, '_build'), '*')
     for filename in glob.glob(os.path.join(Project.docs_dir, '*.log')):
         os.remove(filename)
     doc.doc_errors = []
Ejemplo n.º 3
0
 def clean():
     """Remove documentation artifacts"""
     recursively_remove(os.path.join(Project.docs_dir, "_src"), "*")
     recursively_remove(os.path.join(Project.docs_dir, "_epy"), "*")
     recursively_remove(os.path.join(Project.docs_dir, "_build"), "*")
     doc.doc_errors = []