Skip to content

Commit

Permalink
sdist: include LICENSE.md file
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Jakubowski <tom@prospective.dev>
  • Loading branch information
tomjakubowski committed Nov 9, 2024
1 parent c23e505 commit 269fbe6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions rust/perspective-python/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 269fbe6

Please sign in to comment.