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