From 73754f5e5923aa5dbd92069553d740f8b21f7954 Mon Sep 17 00:00:00 2001 From: Max Value Date: Mon, 9 Dec 2024 06:31:49 +0000 Subject: [PATCH] Added setup to make module --- .gitignore | 3 +++ index.py => critters.py | 0 setup.py | 5 +++++ wsgi.py | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) rename index.py => critters.py (100%) create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index 21d0b89..37c69db 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ .venv/ +critters.egg-info/ +build/ +__pycache__/ diff --git a/index.py b/critters.py similarity index 100% rename from index.py rename to critters.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..0356f21 --- /dev/null +++ b/setup.py @@ -0,0 +1,5 @@ +from distutils.core import setup +setup(name='critters', + version='1.0', + py_modules=['critters'], + ) diff --git a/wsgi.py b/wsgi.py index d659370..11f8531 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,5 +1,5 @@ #! .venv/bin/python3 -from index import app +from critters import app application = app -- 2.39.2