From d4011ee9ec58b26eb49f74c566680ca4f1bf5e5a Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Wed, 20 Nov 2024 19:34:35 -0400 Subject: [PATCH] Weird packaging thing --- app/{daily-wallpaper.py => main.py} | 2 +- pyproject.toml | 10 +++++++--- settings/__init__.py | 0 {app => settings}/settings.py | 0 4 files changed, 8 insertions(+), 4 deletions(-) rename app/{daily-wallpaper.py => main.py} (98%) create mode 100644 settings/__init__.py rename {app => settings}/settings.py (100%) diff --git a/app/daily-wallpaper.py b/app/main.py similarity index 98% rename from app/daily-wallpaper.py rename to app/main.py index 4c947cc..4f242ce 100644 --- a/app/daily-wallpaper.py +++ b/app/main.py @@ -4,9 +4,9 @@ import requests import importlib import logging import slugify -import settings import time import croniter +from settings import settings def main(): config = settings.load_settings() diff --git a/pyproject.toml b/pyproject.toml index 791699d..2ff6d7a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,14 @@ [tool.poetry] -name = "daily-wallpaper" +name = "DailyWallpaper" version = "0.1.0" description = "" authors = ["Isaac Shoebottom "] readme = "README.md" +packages = [ + { include = "providers"}, + { include = "settings"}, + { include = "app"} +] [tool.poetry.dependencies] python = "^3.11" @@ -14,8 +19,7 @@ tomlkit = "^0.13.2" croniter = "^5.0" [tool.poetry.scripts] -daily-wallpaper = "app.daily_wallpaper:__main__" - +DailyWallpaper = "app.main:main" [build-system] requires = ["poetry-core"] diff --git a/settings/__init__.py b/settings/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/settings.py b/settings/settings.py similarity index 100% rename from app/settings.py rename to settings/settings.py