From fd9d4e6b8c61ee431946d3f72370432a329ef1c1 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 28 Jun 2026 08:19:08 +0000 Subject: [PATCH] Update from copier (2026-06-28T08:19:08) Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- .copier-answers.yaml | 2 +- .github/workflows/build.yaml | 4 ++-- .github/workflows/docs.yaml | 2 +- .github/workflows/wiki.yaml | 2 +- Cargo.lock | 4 ++-- js/build.mjs | 18 +++++++++++++----- pyproject.toml | 8 ++++++++ 7 files changed, 28 insertions(+), 12 deletions(-) diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 0a073ed..3d094ce 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: 99606c7 +_commit: 392c67f _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: rustjswasm diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6aaec78..3cf78a4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -35,7 +35,7 @@ jobs: node-version: [22.x] steps: - - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - uses: actions-ext/python/setup@main with: @@ -72,7 +72,7 @@ jobs: if: matrix.os == 'ubuntu-latest' - name: Publish Unit Test Results - uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2 + uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0 with: files: '**/junit.xml' if: matrix.os == 'ubuntu-latest' diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index f718957..52cc534 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} steps: - - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - uses: actions-ext/python/setup@main - name: Download dist from build diff --git a/.github/workflows/wiki.yaml b/.github/workflows/wiki.yaml index 4a730f3..cdb4bf9 100644 --- a/.github/workflows/wiki.yaml +++ b/.github/workflows/wiki.yaml @@ -20,7 +20,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - run: cp README.md docs/wiki/Home.md - uses: Andrew-Chen-Wang/github-wiki-action@64efa0a9436db17670a2259e0ac249d6f08bb352 # v5 with: diff --git a/Cargo.lock b/Cargo.lock index 2d85670..23188e0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -140,9 +140,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.45" +version = "1.0.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368" dependencies = [ "proc-macro2", ] diff --git a/js/build.mjs b/js/build.mjs index ab8dcd1..946d2b7 100644 --- a/js/build.mjs +++ b/js/build.mjs @@ -22,18 +22,26 @@ async function build() { await bundle_css(); // Copy HTML - cpy("src/html/*", "dist/"); + await cpy("src/html/*", "dist/"); // Copy images - fs.mkdirSync("dist/img", { recursive: true }); - cpy("src/img/*", "dist/img"); + if (fs.existsSync("src/img")) { + fs.mkdirSync("dist/img", { recursive: true }); + await cpy("src/img/*", "dist/img"); + } await Promise.all(BUNDLES.map(bundle)).catch(() => process.exit(1)); // Copy servable assets to python extension (exclude esm/) + fs.rmSync("../python_template_rust/extension", { + recursive: true, + force: true, + }); fs.mkdirSync("../python_template_rust/extension", { recursive: true }); - cpy("dist/**/*", "../python_template_rust/extension", { - filter: (file) => !file.relativePath.startsWith("esm"), + await cpy("dist/**/*", "../python_template_rust/extension", { + filter: (file) => + !file.relativePath.startsWith("esm/") && + !file.relativePath.startsWith("dist/esm/"), }); } diff --git a/pyproject.toml b/pyproject.toml index 4f6305d..4491b02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -157,6 +157,11 @@ packages = [ "Cargo.lock", ] exclude = [ + "python_template_rust/*.dll", + "python_template_rust/*.dylib", + "python_template_rust/*.so", + "python_template_rust/extension", + "js/dist", "js/node_modules", "rust/Makefile", "target", @@ -166,6 +171,9 @@ exclude = [ packages = [ "python_template_rust", ] +artifacts = [ + "python_template_rust/extension/**/*", +] exclude = [ "js", "rust",