Skip to content

Commit 41fb571

Browse files
authored
Merge pull request #62 from python-project-templates/copier-update-2026-08-01T21-18-44
Update from copier (2026-08-01T21:18:44)
2 parents 64c5d48 + ade7a6c commit 41fb571

8 files changed

Lines changed: 456 additions & 230 deletions

File tree

.copier-answers.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Changes here will be overwritten by Copier
2-
_commit: c2ea129
2+
_commit: b2cdb6d
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: cppjswasm
6+
add_vcpkg: false
67
add_wiki: true
78
email: 3105306+timkpaine@users.noreply.github.com
89
github: python-project-templates

.github/workflows/build.yaml

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

3737
steps:
38-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
39-
with:
40-
persist-credentials: false
41-
42-
- uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
43-
with:
44-
version: ${{ matrix.python-version }}
45-
46-
- uses: actions-ext/node/setup@0ea5bdcd24d2488b28e16bf611b446a2f8e1e12f
47-
with:
48-
version: ${{ matrix.node-version }}
49-
50-
- uses: actions-ext/cpp/setup@51c484ef64088c62434226039d0e3359f5fc8df6
51-
52-
- uses: mymindstorm/setup-emsdk@4528d102f7230f0e7b276855c01ea1159be0e984 # v16
53-
54-
- name: Install dependencies
55-
run: make develop
56-
57-
- name: Lint
58-
run: make lint
59-
if: matrix.os == 'ubuntu-latest'
60-
61-
- name: Checks
62-
run: make checks
63-
if: matrix.os == 'ubuntu-latest'
64-
65-
- name: Test
66-
run: make coverage
67-
68-
- name: Upload test results (Python)
69-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
70-
with:
71-
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}
72-
path: junit.xml
73-
if: matrix.os == 'ubuntu-latest'
74-
75-
- name: Publish Unit Test Results
76-
uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0
77-
with:
78-
files: '**/junit.xml'
79-
if: matrix.os == 'ubuntu-latest'
80-
81-
- name: Upload coverage
82-
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
83-
with:
84-
token: ${{ secrets.CODECOV_TOKEN }}
85-
86-
- name: Install build dependencies
87-
run: pip install cibuildwheel
88-
89-
- name: Make dist (Linux)
90-
run: |
91-
rm -rf dist
92-
make dist-py-sdist
93-
make dist-py-wheel
94-
make dist-check
95-
env:
96-
CIBW_BUILD: "${{ matrix.cibuildwheel }}-manylinux*"
97-
CIBW_BUILD_VERBOSITY: 3
98-
if: matrix.os == 'ubuntu-latest'
99-
100-
- name: Make dist (Macos)
101-
run: |
102-
rm -rf dist
103-
make dist-py-wheel
104-
env:
105-
CIBW_BUILD: "${{ matrix.cibuildwheel }}-macos*"
106-
CIBW_BUILD_VERBOSITY: 3
107-
if: matrix.os == 'macos-latest'
108-
109-
- name: Make dist (Windows)
110-
run: |
111-
if (Test-Path dist) { Remove-Item dist -Recurse -Force }
112-
make dist-py-wheel
113-
env:
114-
CIBW_BUILD: "${{ matrix.cibuildwheel }}-win_amd64"
115-
if: matrix.os == 'windows-latest'
116-
117-
- uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
118-
with:
119-
module: python_template_cppjswasm
120-
if: matrix.os == 'ubuntu-latest'
121-
122-
- uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
123-
with:
124-
module: python_template_cppjswasm
125-
if: matrix.os == 'ubuntu-latest'
126-
127-
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
128-
with:
129-
name: dist-${{matrix.os}}-${{matrix.python-version}}
130-
path: dist
38+
- name: Checkout
39+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
40+
with:
41+
persist-credentials: false
42+
43+
- name: Setup Python
44+
uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
45+
with:
46+
version: ${{ matrix.python-version }}
47+
48+
- name: Setup Node.js
49+
uses: actions-ext/node/setup@0ea5bdcd24d2488b28e16bf611b446a2f8e1e12f
50+
with:
51+
version: ${{ matrix.node-version }}
52+
53+
- name: Setup C++
54+
uses: actions-ext/cpp/setup@c2b1e90366b3a1c628a1df0748135f5e345ab26f
55+
56+
- name: Setup Emscripten
57+
uses: mymindstorm/setup-emsdk@4528d102f7230f0e7b276855c01ea1159be0e984 # v16
58+
59+
- name: Install dependencies
60+
run: make develop
61+
62+
- name: Lint
63+
run: make lint
64+
if: matrix.os == 'ubuntu-latest'
65+
66+
- name: Checks
67+
run: make checks
68+
if: matrix.os == 'ubuntu-latest'
69+
70+
- name: Test
71+
run: make coverage
72+
73+
- name: Upload test results (Python)
74+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
75+
with:
76+
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}
77+
path: junit.xml
78+
if: matrix.os == 'ubuntu-latest'
79+
80+
- name: Publish test results
81+
uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0
82+
with:
83+
files: '**/junit.xml'
84+
if: matrix.os == 'ubuntu-latest'
85+
86+
- name: Upload coverage
87+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
88+
with:
89+
token: ${{ secrets.CODECOV_TOKEN }}
90+
91+
- name: Install build dependencies
92+
run: pip install cibuildwheel
93+
94+
- name: Build distributions (Linux)
95+
run: |
96+
rm -rf dist
97+
make dist-py-sdist
98+
make dist-py-wheel
99+
make dist-check
100+
env:
101+
CIBW_BUILD: "${{ matrix.cibuildwheel }}-manylinux*"
102+
CIBW_BUILD_VERBOSITY: 3
103+
if: matrix.os == 'ubuntu-latest'
104+
105+
- name: Build distributions (macOS)
106+
run: |
107+
rm -rf dist
108+
make dist-py-wheel
109+
env:
110+
CIBW_BUILD: "${{ matrix.cibuildwheel }}-macos*"
111+
CIBW_BUILD_VERBOSITY: 3
112+
if: matrix.os == 'macos-latest'
113+
114+
- name: Build distributions (Windows)
115+
run: |
116+
if (Test-Path dist) { Remove-Item dist -Recurse -Force }
117+
make dist-py-wheel
118+
env:
119+
CIBW_BUILD: "${{ matrix.cibuildwheel }}-win_amd64"
120+
if: matrix.os == 'windows-latest'
121+
122+
- name: Test wheel
123+
uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
124+
with:
125+
module: python_template_cppjswasm
126+
if: matrix.os == 'ubuntu-latest'
127+
128+
- name: Test source distribution
129+
uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
130+
with:
131+
module: python_template_cppjswasm
132+
if: matrix.os == 'ubuntu-latest'
133+
134+
- name: Upload distributions
135+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
136+
with:
137+
name: dist-${{matrix.os}}-${{matrix.python-version}}
138+
path: dist

.github/workflows/copier.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
pull-requests: write
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions-ext/copier-update@378500315a83b5985e175139a55f1fa5ea6dde09
16-
with:
17-
token: ${{ secrets.WORKFLOW_TOKEN }}
15+
- name: Update from Copier
16+
uses: actions-ext/copier/update@2061209faa6b75ffd4fcecc0b0983772767997f4
17+
with:
18+
token: ${{ secrets.WORKFLOW_TOKEN }}

.github/workflows/docs.yaml

Lines changed: 42 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -16,41 +16,45 @@ 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
20-
with:
21-
persist-credentials: false
22-
23-
- uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
24-
25-
- name: Download dist from build
26-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
27-
with:
28-
pattern: dist-ubuntu-latest-3.11
29-
merge-multiple: true
30-
path: dist
31-
run-id: ${{ github.event.workflow_run.id }}
32-
github-token: ${{ secrets.GITHUB_TOKEN }}
33-
repository: ${{ github.repository }}
34-
if: github.event_name == 'workflow_run'
35-
36-
- name: Install from wheel
37-
run: |
38-
uv pip install dist/*.whl
39-
uv pip install dist/*.whl --target . --no-deps
40-
uv pip install yardang
41-
if: github.event_name == 'workflow_run'
42-
43-
- name: Install from source (manual trigger)
44-
run: |
45-
make develop
46-
uv pip install .
47-
uv pip install yardang
48-
if: github.event_name == 'workflow_dispatch'
49-
50-
- run: yardang build
51-
52-
- uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
53-
with:
54-
publish_branch: gh-pages
55-
github_token: ${{ secrets.GITHUB_TOKEN }}
56-
publish_dir: docs/html
19+
- name: Checkout
20+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21+
with:
22+
persist-credentials: false
23+
24+
- name: Setup Python
25+
uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
26+
27+
- name: Download distributions
28+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
29+
with:
30+
pattern: dist-ubuntu-latest-3.11
31+
merge-multiple: true
32+
path: dist
33+
run-id: ${{ github.event.workflow_run.id }}
34+
github-token: ${{ secrets.GITHUB_TOKEN }}
35+
repository: ${{ github.repository }}
36+
if: github.event_name == 'workflow_run'
37+
38+
- name: Install from wheel
39+
run: |
40+
uv pip install dist/*.whl
41+
uv pip install dist/*.whl --target . --no-deps
42+
uv pip install yardang
43+
if: github.event_name == 'workflow_run'
44+
45+
- name: Install from source (manual trigger)
46+
run: |
47+
make develop
48+
uv pip install .
49+
uv pip install yardang
50+
if: github.event_name == 'workflow_dispatch'
51+
52+
- name: Build documentation
53+
run: yardang build
54+
55+
- name: Publish documentation
56+
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
57+
with:
58+
publish_branch: gh-pages
59+
github_token: ${{ secrets.GITHUB_TOKEN }}
60+
publish_dir: docs/html

.github/workflows/wiki.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@ jobs:
2020
deploy:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24-
with:
25-
persist-credentials: false
23+
- name: Checkout
24+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25+
with:
26+
persist-credentials: false
2627

27-
- run: cp README.md docs/wiki/Home.md
28-
- uses: Andrew-Chen-Wang/github-wiki-action@1bbb4280446f9630e8e21a18012cbacf3b0f992e # v5.0.6
29-
with:
30-
path: docs/wiki
28+
- name: Prepare wiki
29+
run: cp README.md docs/wiki/Home.md
30+
31+
- name: Publish wiki
32+
uses: Andrew-Chen-Wang/github-wiki-action@1bbb4280446f9630e8e21a18012cbacf3b0f992e # v5.0.6
33+
with:
34+
path: docs/wiki

js/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848
},
4949
"dependencies": {},
5050
"devDependencies": {
51-
"@playwright/test": "^1.61.1",
51+
"@playwright/test": "^1.62.0",
5252
"cpy": "^13.2.2",
5353
"esbuild": "^0.28.1",
54-
"lightningcss": "^1.29.3",
54+
"lightningcss": "^1.33.0",
5555
"http-server": "^14.1.1",
5656
"nodemon": "^3.1.10",
5757
"npm-run-all": "^4.1.5",
58-
"prettier": "^3.8.4",
59-
"typescript": "^6.0.3"
58+
"prettier": "^3.9.6",
59+
"typescript": "^7.0.2"
6060
}
6161
}

0 commit comments

Comments
 (0)