From ee77871596f813316cdc928819c58c10a66c1378 Mon Sep 17 00:00:00 2001 From: james-encord <133006388+james-encord@users.noreply.github.com> Date: Tue, 19 Sep 2023 14:42:13 +0100 Subject: [PATCH] fix: encourage pip to include frontend dist folder (#648) fix: include frontend only in dist. --- pyproject.toml | 16 +++++++++++++--- src/encord_active/frontend/__init__.py | 0 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 src/encord_active/frontend/__init__.py diff --git a/pyproject.toml b/pyproject.toml index 6845168af..6b5e7e068 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,9 +33,19 @@ keywords = [ readme = "README.md" repository = "https://github.com/encord-team/encord-active" -include = ['.env', "src/encord_active/frontend/dist/**/*"] - -exclude = ['src/encord_active/frontend/**/*'] +include = [".env", "src/encord_active/frontend/dist/**/*"] + +exclude = [ + "src/encord_active/frontend/*.json", + "src/encord_active/frontend/.*", + "src/encord_active/frontend/*.html", + "src/encord_active/frontend/*.ts", + "src/encord_active/frontend/*.cjs", + "src/encord_active/frontend/assets/**/*", + "src/encord_active/frontend/public/**/*", + "src/encord_active/frontend/src/**/*", + "src/encord_active/frontend/node_modules/**/*" +] packages = [{ include = "encord_active", from = "src" }] diff --git a/src/encord_active/frontend/__init__.py b/src/encord_active/frontend/__init__.py new file mode 100644 index 000000000..e69de29bb