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.
This commit is contained in:
Krzysztof kuhy Rudnicki 2026-06-22 12:43:06 +02:00
parent d50bc49b92
commit 6b22b2e2e3

View File

@ -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"]