From 6e1f1789d8997e3325e068cdc67c1dea786f41cd Mon Sep 17 00:00:00 2001 From: hkc Date: Wed, 22 May 2024 11:07:50 +0300 Subject: [PATCH] Added archive creation and requirements.txt --- .gitignore | 1 + make.py | 3 +++ requirements.txt | 13 ++++++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index be756eb..cf00ce3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ __pycache__/ venv/ input/ output/ +pack.zip diff --git a/make.py b/make.py index 653e850..3d9a12c 100644 --- a/make.py +++ b/make.py @@ -208,6 +208,9 @@ async def main(): } }, fp, indent=2, ensure_ascii=False) + with ZipFile("pack.zip", "w") as zipf: + for file in OUTPUT_PATH.rglob("*"): + zipf.write(file, Path(*file.parts[1:])) if __name__ == "__main__": asyncio.run(main()) diff --git a/requirements.txt b/requirements.txt index 8b13789..e8eaad9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,12 @@ - +anyio==4.3.0 +certifi==2024.2.2 +h11==0.14.0 +httpcore==1.0.5 +httpx==0.27.0 +idna==3.7 +markdown-it-py==3.0.0 +mdurl==0.1.2 +pillow==10.3.0 +Pygments==2.18.0 +rich==13.7.1 +sniffio==1.3.1