From 1caa8ef7d55529cd6a3e86ca1bd548292a2f5865 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Tue, 24 May 2022 15:11:06 +0200 Subject: [PATCH] Reduce sdist size --- MANIFEST.in | 3 ++- setup.py | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index da27019..9137f81 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -7,6 +7,7 @@ include install.json include ts*.json include yarn.lock include webpack.config.js +include Dockerfile recursive-include tests *.py graft share @@ -14,7 +15,7 @@ graft share graft docs # Javascript files -graft src +include src/*.ts graft style prune **/node_modules prune lib diff --git a/setup.py b/setup.py index b4ae39f..67e58f6 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,11 @@ # Representative files that should exist after a successful build ensured_targets = [ str(lab_path / "package.json"), - str(lab_path / "static/style.js") + str(lab_path / "static" / "python_data.js"), + str(lab_path / "static" / "python_data.data"), + str(lab_path / "static" / "xpython_wasm.js"), + str(lab_path / "static" / "xpython_wasm.wasm"), + str(lab_path / "static" / "style.js") ] labext_name = "@jupyterlite/xeus-python-kernel"