commit cccf96bcfbaa1769c6a9acaa996905a63b3e54a9
parent a0d7aa0cdb13a11984891c9eafcdc0e93ca567bf
Author: Chris Roberts <chris.roberts@learningunix.net>
Date: Mon, 13 Jul 2026 11:48:46 -0500
Add minimal flask app factory
Uses create_app() rather than a module-level app object so
tests can later spin up isolated instances with their own
config, instead of all sharing one app built at import time.
No routes beyond a placeholder yet. jobs.toml isn't wired in here.
Diffstat:
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "simplefe"
version = "0.1.0"
requires-python = ">=3.11"
-dependencies = []
+dependencies = ["flask", ]
[project.optional-dependencies]
test = ["pytest"]
diff --git a/src/simplefe/app.py b/src/simplefe/app.py
@@ -0,0 +1,11 @@
+from flask import Flask
+
+
+def create_app():
+ app = Flask(__name__)
+
+ @app.route("/")
+ def index():
+ return "simplefe is running"
+
+ return app