From 296c2f1e4e06bd26b8871c90f4194a07a966f5d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arl=C3=A8me?= <60097202+rootkit7628@users.noreply.github.com> Date: Mon, 29 Aug 2022 06:26:58 +0300 Subject: [PATCH] [ADD] Create requirements on init and create (#51) * [ADD] Create requirements on init and create * [IMP] chang equal to sup --- ampalibe/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ampalibe/__init__.py b/ampalibe/__init__.py index e4715fb..f5814fc 100644 --- a/ampalibe/__init__.py +++ b/ampalibe/__init__.py @@ -53,6 +53,11 @@ def init_proj(path): file=open(f"{path}/.gitignore", "a"), ) + print( + "ampalibe>={version}".format(version=__version__), + file=open(f"{path}/requirements.txt", "a"), + ) + if sys.argv[0] == "-m" and len(sys.argv) > 1: if sys.argv[1] == "version":