From 6f257606ac376bbb216981f8409c8057489286cb Mon Sep 17 00:00:00 2001 From: Sergei Ivashchenko Date: Wed, 22 Nov 2023 15:15:01 +0000 Subject: [PATCH] fix: Include static files into pypi package (#5071) --- pyproject.toml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index ee55c5762a40..0bd5459e2720 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -120,6 +120,26 @@ homepage = "https://github.com/heartexlabs/label-studio" packages = [ { include = "label_studio" }, ] +include = [ + "deploy/requirements.txt", + "label_studio/frontend/dist/react-app/*", + "label_studio/frontend/dist/lsf/**/*", + "label_studio/frontend/dist/dm/**/*", + "label_studio/annotation_templates/**/*", + "label_studio/core/static/**/*", + "label_studio/core/static_build/**/*", + "label_studio/core/utils/schema/*.json", + "label_studio/core/templatetags/*.py", + "label_studio/core/version_.py", + "label_studio/core/all_urls.json", + "label_studio/io_storages/**/*.yml", +] + +exclude = [ + "label_studio/frontend/node_modules/**/*", + "label_studio/frontend/build-tmp/**/*" +] + [tool.poetry.scripts] label-studio = "label_studio.server:main"