Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 9498b78
_commit: fdea3fe
_src_path: https://github.com/python-project-templates/base.git
add_docs: true
add_extension: cppjswasm
Expand Down
52 changes: 23 additions & 29 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
name: Bug Report
about: Report a bug to help us improve
title: '[BUG] '
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Description**
A clear and concise description of the bug.

**Expected behavior**
A clear and concise description of what you expected to happen.
**Steps to Reproduce**
1.
2.
3.

**Screenshots**
If applicable, add screenshots to help explain your problem.
**Expected Behavior**
What you expected to happen.

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

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

**Additional context**
Add any other context about the problem here.
**Additional Context**
Add any other relevant context, logs, or screenshots.
25 changes: 12 additions & 13 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
name: Feature Request
about: Suggest a new feature or improvement
title: '[FEATURE] '
labels: enhancement
assignees: ''

---

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

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

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Alternatives Considered**
Any alternative solutions or workarounds you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
**Additional Context**
Add any other context, mockups, or examples.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Question
about: Ask a question about usage or behavior
title: '[QUESTION] '
labels: question
assignees: ''
---

**Question**
A clear and concise description of your question.

**Context**
What are you trying to accomplish? Include relevant code snippets, configuration, or links to documentation you've already consulted.

**Environment**
If relevant, include your environment details (OS, language versions, package version).
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Description

Brief description of the changes in this PR.

## Type of Change

- [ ] Bug fix
- [ ] New feature
- [ ] Documentation update
- [ ] Refactor / code cleanup
- [ ] CI / build configuration
- [ ] Other (describe below)

## Checklist

- [ ] Linting passes (`make lint`)
- [ ] Tests pass (`make test`)
- [ ] New tests added for new functionality
- [ ] Documentation updated (if applicable)
- [ ] Changelog / version bump (if applicable)
17 changes: 17 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:

- name: Make dist (Linux)
run: |
rm -rf dist
make dist-py-sdist
make dist-py-wheel
make dist-check
Expand All @@ -102,6 +103,7 @@ jobs:

- name: Make dist (Macos)
run: |
rm -rf dist
make dist-py-wheel
env:
CIBW_BUILD: "${{ matrix.cibuildwheel }}-macos*"
Expand All @@ -110,6 +112,7 @@ jobs:

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

- name: Test wheel install
run: |
python -m venv /tmp/test-wheel
/tmp/test-wheel/bin/pip install dist/*.whl
/tmp/test-wheel/bin/python -c "import python_template_cppjswasm"
if: matrix.os == 'ubuntu-latest'

- name: Test sdist install
run: |
python -m venv /tmp/test-sdist
/tmp/test-sdist/bin/pip install dist/*.tar.gz
/tmp/test-sdist/bin/python -c "import python_template_cppjswasm"
if: matrix.os == 'ubuntu-latest'

- uses: actions/upload-artifact@v7
with:
name: dist-${{matrix.os}}-${{matrix.python-version}}
Expand Down
42 changes: 34 additions & 8 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,50 @@
name: Publish Docs

on:
push:
branches:
- main
workflow_run:
workflows: ["Build Status"]
branches: [main]
types: [completed]
workflow_dispatch:

permissions:
actions: read
contents: write

jobs:
docs:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- uses: actions/checkout@v6
- uses: actions-ext/python/setup@main
- uses: actions-ext/node/setup@main
- uses: mymindstorm/setup-emsdk@v16
- run: make develop
- run: uv pip install .
- run: uv pip install yardang

- name: Download dist from build
uses: actions/download-artifact@v7
with:
pattern: dist-ubuntu-latest-3.11
merge-multiple: true
path: dist
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
if: github.event_name == 'workflow_run'

- name: Install from wheel
run: |
uv pip install dist/*.whl
uv pip install yardang
if: github.event_name == 'workflow_run'

- name: Install from source (manual trigger)
run: |
make develop
uv pip install .
uv pip install yardang
if: github.event_name == 'workflow_dispatch'

- run: yardang build

- uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
Expand Down
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"devDependencies": {
"@playwright/test": "^1.59.1",
"cpy": "^13.2.1",
"esbuild": "^0.27.3",
"esbuild": "^0.27.4",
"lightningcss": "^1.29.3",
"http-server": "^14.1.1",
"nodemon": "^3.1.10",
Expand Down
Loading
Loading