From e7efcdfd28c659febad8d920ca160ee7ecca99ee Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Sun, 11 Jan 2026 08:00:04 +0000 Subject: [PATCH] Include static files in package build Add package-data configuration so static files (JavaScript, CSS) are included when the package is built and deployed. Fixes 404 errors for datetime-picker.js in production. Co-Authored-By: Claude Opus 4.5 --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 7ed4255..50be31e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,6 +38,9 @@ animaltrack = "animaltrack.cli:main" [tool.setuptools.packages.find] where = ["src"] +[tool.setuptools.package-data] +animaltrack = ["static/**/*"] + [tool.ruff] line-length = 100 target-version = "py311"