From 6b22b2e2e36cf40da2528678cf8837f2f61095f9 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Mon, 22 Jun 2026 12:43:06 +0200 Subject: [PATCH] Fix pip install -e: scope package discovery to screen_locker setuptools' automatic flat-layout discovery saw two top-level directories (screen_locker/ and the unrelated stronglift_replacement/ Flutter app) and refused to guess, blocking pip install -e . needed to pip-install this package into system Python the same way gatelock/diet_guard/wake_alarm already are. --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 91d174f..6dce854 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,13 @@ dependencies = [ "gatelock @ git+https://github.com/kuhyx/gatelock@v0.1.0", ] +[tool.setuptools.packages.find] +# This repo also holds stronglift_replacement/ (an unrelated Flutter app, not +# a Python package); without this, setuptools' automatic flat-layout +# discovery sees two top-level directories and refuses to guess which is the +# installable package. +include = ["screen_locker*"] + [tool.ruff] target-version = "py310" include = ["*.py", "**/*.py"]