avoid circular, gigantic zipfile generation by putting it in the /tmp dir

This commit is contained in:
2023-04-02 21:26:46 +02:00
parent 2456c056f4
commit 1173ee0a25
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ class NoIndexHtml(Exception):
def make_a_zip_file(dirpath: pl.Path) -> pl.Path:
zipfile_filename = str(uuid.uuid4())
zipfile_filename = "/tmp/" + str(uuid.uuid4())
shutil.make_archive(zipfile_filename, "zip", dirpath)
return pl.Path(zipfile_filename + ".zip")

View File

@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name="publify",
version="0.2.1",
version="0.2.2",
description="A CLI for publishing sites to Netlify and assigning custom domains to them.",
author="Zev Averbach",
author_email="zev@averba.ch",