def make_tarball(output_filename, source_dir):

    with tarfile.open(output_filename, "w:gz") as tar:
        tar.add(source_dir, arcname=os.path.basename(source_dir))
Target up the given directory.
dataset/ETHPy150Open jlisee/xpkg/python/xpkg/util.py/make_tarball