From 530e5debef7e15da2bbc33ce792a8ff42f3603b3 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Sat, 10 Jan 2026 16:58:16 -0500 Subject: [PATCH] Include frontends in wheel, fix systemd WorkingDirectory --- aur/PKGBUILD | 2 ++ frontends/__init__.py | 0 frontends/api/__init__.py | 0 frontends/cli/__init__.py | 0 frontends/web/__init__.py | 0 pyproject.toml | 2 +- 6 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 frontends/__init__.py create mode 100644 frontends/api/__init__.py create mode 100644 frontends/cli/__init__.py create mode 100644 frontends/web/__init__.py diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 4f5d4b8..89a878a 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -86,6 +86,7 @@ After=network.target [Service] Type=simple User=stegasoo +WorkingDirectory=/opt/stegasoo/venv/lib/python3.12/site-packages/frontends/web Environment="PATH=/opt/stegasoo/venv/bin" ExecStart=/opt/stegasoo/venv/bin/gunicorn -b 127.0.0.1:5000 app:app Restart=on-failure @@ -103,6 +104,7 @@ After=network.target [Service] Type=simple User=stegasoo +WorkingDirectory=/opt/stegasoo/venv/lib/python3.12/site-packages/frontends/api Environment="PATH=/opt/stegasoo/venv/bin" ExecStart=/opt/stegasoo/venv/bin/uvicorn main:app --host 127.0.0.1 --port 8000 Restart=on-failure diff --git a/frontends/__init__.py b/frontends/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/frontends/api/__init__.py b/frontends/api/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/frontends/cli/__init__.py b/frontends/cli/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/frontends/web/__init__.py b/frontends/web/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pyproject.toml b/pyproject.toml index 2d87415..e106708 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,7 +111,7 @@ include = [ ] [tool.hatch.build.targets.wheel] -packages = ["src/stegasoo"] +packages = ["src/stegasoo", "frontends"] [tool.pytest.ini_options] testpaths = ["tests"]