Skip to content

Commit 320a850

Browse files
Update from copier (2026-06-28T19:23:03)
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 318e640 commit 320a850

7 files changed

Lines changed: 38 additions & 14 deletions

File tree

.copier-answers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 99606c7
2+
_commit: 484c8a6
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: rustjswasm

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
node-version: [22.x]
3636

3737
steps:
38-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
38+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3939

4040
- uses: actions-ext/python/setup@main
4141
with:
@@ -72,7 +72,7 @@ jobs:
7272
if: matrix.os == 'ubuntu-latest'
7373

7474
- name: Publish Unit Test Results
75-
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
75+
uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0
7676
with:
7777
files: '**/junit.xml'
7878
if: matrix.os == 'ubuntu-latest'
@@ -83,7 +83,7 @@ jobs:
8383
token: ${{ secrets.CODECOV_TOKEN }}
8484

8585
- name: Set up QEMU
86-
uses: docker/setup-qemu-action@v4
86+
uses: docker/setup-qemu-action@ 06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
8787
with:
8888
platforms: all
8989
if: runner.os == 'Linux' && runner.arch == 'X64'

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
1818
steps:
19-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
19+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2020
- uses: actions-ext/python/setup@main
2121

2222
- name: Download dist from build

.github/workflows/wiki.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
deploy:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
23+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2424
- run: cp README.md docs/wiki/Home.md
25-
- uses: Andrew-Chen-Wang/github-wiki-action@64efa0a9436db17670a2259e0ac249d6f08bb352 # v5
25+
- uses: Andrew-Chen-Wang/github-wiki-action@4e78882ff52f8751488e506e49b221145506ee34 # v5.0.5
2626
with:
2727
path: docs/wiki

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/build.mjs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,26 @@ async function build() {
2222
await bundle_css();
2323

2424
// Copy HTML
25-
cpy("src/html/*", "dist/");
25+
await cpy("src/html/*", "dist/");
2626

2727
// Copy images
28-
fs.mkdirSync("dist/img", { recursive: true });
29-
cpy("src/img/*", "dist/img");
28+
if (fs.existsSync("src/img")) {
29+
fs.mkdirSync("dist/img", { recursive: true });
30+
await cpy("src/img/*", "dist/img");
31+
}
3032

3133
await Promise.all(BUNDLES.map(bundle)).catch(() => process.exit(1));
3234

3335
// Copy servable assets to python extension (exclude esm/)
36+
fs.rmSync("../python_template_rust/extension", {
37+
recursive: true,
38+
force: true,
39+
});
3440
fs.mkdirSync("../python_template_rust/extension", { recursive: true });
35-
cpy("dist/**/*", "../python_template_rust/extension", {
36-
filter: (file) => !file.relativePath.startsWith("esm"),
41+
await cpy("dist/**/*", "../python_template_rust/extension", {
42+
filter: (file) =>
43+
!file.relativePath.startsWith("esm/") &&
44+
!file.relativePath.startsWith("dist/esm/"),
3745
});
3846
}
3947

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,17 @@ exclude_also = [
134134
ignore_errors = true
135135
fail_under = 50
136136

137+
[tool.hatch.build]
138+
artifacts = [
139+
"python_template_rust/*.dll",
140+
"python_template_rust/*.dylib",
141+
"python_template_rust/*.so",
142+
"python_template_rust/extension",
143+
]
144+
145+
[tool.hatch.build.sources]
146+
src = "/"
147+
137148
[tool.hatch.build.hooks.hatch-js]
138149
path = "js"
139150
build_cmd = "build"
@@ -157,6 +168,11 @@ packages = [
157168
"Cargo.lock",
158169
]
159170
exclude = [
171+
"python_template_rust/*.dll",
172+
"python_template_rust/*.dylib",
173+
"python_template_rust/*.so",
174+
"python_template_rust/extension",
175+
"js/dist",
160176
"js/node_modules",
161177
"rust/Makefile",
162178
"target",

0 commit comments

Comments
 (0)