Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

        def ArchiveTar(proj_info, extra_files, format, path=None):
    aname = createArchiveName(
        proj_info['name'],
        proj_info['version'],
        'tar.{}'.format(format),
        path
    )
    files_list = getFilesList(proj_info['packages'])
    files_list.extend(extra_files)
    tar_excludes = " ".join(map(lambda s: "--exclude={}".format(s), exclude_list))
    tar_command = "tar -caf {} {} {}".format(aname, " ".join(files_list), tar_excludes)
    check_call(split(tar_command))
        


src/d/a/daisydukes-0.0.2/daisydukes/__init__.py   daisydukes(Download)
        archive.ArchiveZip(proj_info, args.extrafiles)
    elif args.gzip:
        archive.ArchiveTar(proj_info, args.extrafiles, 'gz')
    elif args.bzip:
        archive.ArchiveTar(proj_info, args.extrafiles, 'bz2')
    elif args.lzma:
        archive.ArchiveTar(proj_info, args.extrafiles, 'lzma')
    elif args.xz:
        archive.ArchiveTar(proj_info, args.extrafiles, 'xz')