diff --git a/.gitignore b/.gitignore index 7daa0674bc..553f648f2c 100644 --- a/.gitignore +++ b/.gitignore @@ -247,7 +247,7 @@ rust/perspective-server/cmake .pyodide-*/ rust/perspective-python/*.data rust/perspective-python/PKG-INFO -# rust/perspective-python/perspective.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab/package.json +rust/perspective-python/LICENSE.md rust/perspective-viewer/docs/exprtk.md rust/perspective-server/docs/lib_gen.md rust/perspective-client/docs/expression_gen.md diff --git a/rust/perspective-python/build.mjs b/rust/perspective-python/build.mjs index 637ee41836..2644def0f4 100644 --- a/rust/perspective-python/build.mjs +++ b/rust/perspective-python/build.mjs @@ -134,10 +134,12 @@ if (build_sdist) { ); } const readme_md = fs.readFileSync("./README.md"); + fs.copyFileSync("../../LICENSE.md", "./LICENSE.md"); const pkg_info = generatePkgInfo(pyproject, cargo, readme_md); fs.writeFileSync("./PKG-INFO", pkg_info); const include_paths = Array.from(cargo["package"]["include"]).concat([ data_dir, + "./LICENSE.md", "./PKG-INFO", ]); const files = glob.globSync(include_paths);