diff --git a/pyproject.toml b/pyproject.toml index 98b91a7..c830f45 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,25 @@ +[build-system] +requires = ["setuptools>=61"] +build-backend = "setuptools.build_meta" + [project] name = "wake-alarm" version = "1.0.0" -description = "Hibernate-scheduled weekend wake alarm with fan ramp and smart-plug control" +description = "Phone-driven wake alarm with fan ramp and smart-plug control" requires-python = ">=3.10" dependencies = [ "gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.1.0#subdirectory=gatelock", "python-kasa>=0.7", ] +# Package discovery must be explicit: phone_app/ is a Flutter app, not a Python +# package, but setuptools' flat-layout autodiscovery still sees it as a second +# top-level package and refuses to build ("Multiple top-level packages +# discovered in a flat-layout"). That aborted install.sh at step 1 — which is +# how /usr/local/bin/shutdown silently went stale. +[tool.setuptools.packages.find] +include = ["wake_alarm*"] + [tool.ruff] target-version = "py310" include = ["*.py", "**/*.py"]