Skip to content

Commit a589e38

Browse files
authored
Merge pull request #28 from python-project-templates/copier-update-2026-04-12T06-24-19
Update from copier (2026-04-12T06:24:19)
2 parents 31116b0 + dbb9f0c commit a589e38

File tree

9 files changed

+233
-161
lines changed

9 files changed

+233
-161
lines changed

.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: 9498b78
2+
_commit: fdea3fe
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: cppjswasm
Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,32 @@
11
---
2-
name: Bug report
3-
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
2+
name: Bug Report
3+
about: Report a bug to help us improve
4+
title: '[BUG] '
5+
labels: bug
66
assignees: ''
7-
87
---
98

10-
**Describe the bug**
11-
A clear and concise description of what the bug is.
12-
13-
**To Reproduce**
14-
Steps to reproduce the behavior:
15-
1. Go to '...'
16-
2. Click on '....'
17-
3. Scroll down to '....'
18-
4. See error
9+
**Description**
10+
A clear and concise description of the bug.
1911

20-
**Expected behavior**
21-
A clear and concise description of what you expected to happen.
12+
**Steps to Reproduce**
13+
1.
14+
2.
15+
3.
2216

23-
**Screenshots**
24-
If applicable, add screenshots to help explain your problem.
17+
**Expected Behavior**
18+
What you expected to happen.
2519

26-
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
20+
**Actual Behavior**
21+
What actually happened. Include full error messages or tracebacks if available.
3022

31-
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
23+
**Environment**
24+
- OS: [e.g. Ubuntu 22.04, macOS 14.0, Windows 11]
25+
- Python version: [e.g. 3.11.5] (`python --version`)
26+
- Compiler: [e.g. gcc 13.2, clang 17, MSVC 19.37]
27+
- Node.js version: [e.g. 22.0.0] (`node --version`)
28+
- pnpm version: [e.g. 9.0.0] (`pnpm --version`)
29+
- Package version: (`pip show python-template-cppjswasm | grep Version`)
3630

37-
**Additional context**
38-
Add any other context about the problem here.
31+
**Additional Context**
32+
Add any other relevant context, logs, or screenshots.
Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
---
2-
name: Feature request
3-
about: Suggest an idea for this project
4-
title: ''
5-
labels: ''
2+
name: Feature Request
3+
about: Suggest a new feature or improvement
4+
title: '[FEATURE] '
5+
labels: enhancement
66
assignees: ''
7-
87
---
98

10-
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
**Problem Statement**
10+
A clear description of the problem this feature would solve. Ex. "I'm always frustrated when [...]"
1211

13-
**Describe the solution you'd like**
14-
A clear and concise description of what you want to happen.
12+
**Proposed Solution**
13+
A clear description of the desired behavior or feature.
1514

16-
**Describe alternatives you've considered**
17-
A clear and concise description of any alternative solutions or features you've considered.
15+
**Alternatives Considered**
16+
Any alternative solutions or workarounds you've considered.
1817

19-
**Additional context**
20-
Add any other context or screenshots about the feature request here.
18+
**Additional Context**
19+
Add any other context, mockups, or examples.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Question
3+
about: Ask a question about usage or behavior
4+
title: '[QUESTION] '
5+
labels: question
6+
assignees: ''
7+
---
8+
9+
**Question**
10+
A clear and concise description of your question.
11+
12+
**Context**
13+
What are you trying to accomplish? Include relevant code snippets, configuration, or links to documentation you've already consulted.
14+
15+
**Environment**
16+
If relevant, include your environment details (OS, language versions, package version).

.github/pull_request_template.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Description
2+
3+
Brief description of the changes in this PR.
4+
5+
## Type of Change
6+
7+
- [ ] Bug fix
8+
- [ ] New feature
9+
- [ ] Documentation update
10+
- [ ] Refactor / code cleanup
11+
- [ ] CI / build configuration
12+
- [ ] Other (describe below)
13+
14+
## Checklist
15+
16+
- [ ] Linting passes (`make lint`)
17+
- [ ] Tests pass (`make test`)
18+
- [ ] New tests added for new functionality
19+
- [ ] Documentation updated (if applicable)
20+
- [ ] Changelog / version bump (if applicable)

.github/workflows/build.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292

9393
- name: Make dist (Linux)
9494
run: |
95+
rm -rf dist
9596
make dist-py-sdist
9697
make dist-py-wheel
9798
make dist-check
@@ -102,6 +103,7 @@ jobs:
102103

103104
- name: Make dist (Macos)
104105
run: |
106+
rm -rf dist
105107
make dist-py-wheel
106108
env:
107109
CIBW_BUILD: "${{ matrix.cibuildwheel }}-macos*"
@@ -110,6 +112,7 @@ jobs:
110112

111113
- name: Make dist (Windows)
112114
run: |
115+
if exist dist rmdir /s /q dist
113116
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
114117
make dist-py-wheel
115118
shell: cmd
@@ -118,6 +121,20 @@ jobs:
118121
CIBW_BEFORE_ALL: call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
119122
if: matrix.os == 'windows-latest'
120123

124+
- name: Test wheel install
125+
run: |
126+
python -m venv /tmp/test-wheel
127+
/tmp/test-wheel/bin/pip install dist/*.whl
128+
/tmp/test-wheel/bin/python -c "import python_template_cppjswasm"
129+
if: matrix.os == 'ubuntu-latest'
130+
131+
- name: Test sdist install
132+
run: |
133+
python -m venv /tmp/test-sdist
134+
/tmp/test-sdist/bin/pip install dist/*.tar.gz
135+
/tmp/test-sdist/bin/python -c "import python_template_cppjswasm"
136+
if: matrix.os == 'ubuntu-latest'
137+
121138
- uses: actions/upload-artifact@v7
122139
with:
123140
name: dist-${{matrix.os}}-${{matrix.python-version}}

.github/workflows/docs.yaml

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,50 @@
11
name: Publish Docs
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
workflow_run:
5+
workflows: ["Build Status"]
6+
branches: [main]
7+
types: [completed]
78
workflow_dispatch:
9+
810
permissions:
11+
actions: read
912
contents: write
13+
1014
jobs:
1115
docs:
1216
runs-on: ubuntu-latest
17+
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
1318
steps:
1419
- uses: actions/checkout@v6
1520
- uses: actions-ext/python/setup@main
16-
- uses: actions-ext/node/setup@main
17-
- uses: mymindstorm/setup-emsdk@v16
18-
- run: make develop
19-
- run: uv pip install .
20-
- run: uv pip install yardang
21+
22+
- name: Download dist from build
23+
uses: actions/download-artifact@v7
24+
with:
25+
pattern: dist-ubuntu-latest-3.11
26+
merge-multiple: true
27+
path: dist
28+
run-id: ${{ github.event.workflow_run.id }}
29+
github-token: ${{ secrets.GITHUB_TOKEN }}
30+
repository: ${{ github.repository }}
31+
if: github.event_name == 'workflow_run'
32+
33+
- name: Install from wheel
34+
run: |
35+
uv pip install dist/*.whl
36+
uv pip install yardang
37+
if: github.event_name == 'workflow_run'
38+
39+
- name: Install from source (manual trigger)
40+
run: |
41+
make develop
42+
uv pip install .
43+
uv pip install yardang
44+
if: github.event_name == 'workflow_dispatch'
45+
2146
- run: yardang build
47+
2248
- uses: peaceiris/actions-gh-pages@v4
2349
with:
2450
publish_branch: gh-pages

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"devDependencies": {
5151
"@playwright/test": "^1.59.1",
5252
"cpy": "^13.2.1",
53-
"esbuild": "^0.27.3",
53+
"esbuild": "^0.27.4",
5454
"lightningcss": "^1.29.3",
5555
"http-server": "^14.1.1",
5656
"nodemon": "^3.1.10",

0 commit comments

Comments
 (0)