Skip to content

Commit 705a1b6

Browse files
Update from copier (2026-04-11T20:09:18)
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 05f0bcc commit 705a1b6

File tree

8 files changed

+149
-109
lines changed

8 files changed

+149
-109
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: 9b579a3
2+
_commit: 3d2cd28
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: rust
Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,30 @@
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+
- Rust version: [e.g. 1.75.0] (`rustc --version`)
27+
- Package version: (`pip show python-template-rust | grep Version`)
3628

37-
**Additional context**
38-
Add any other context about the problem here.
29+
**Additional Context**
30+
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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383

8484
- name: Make dist (Linux)
8585
run: |
86+
rm -rf dist
8687
make dist-rs
8788
make dist-py-sdist
8889
make dist-py-wheel
@@ -91,12 +92,27 @@ jobs:
9192

9293
- name: Make dist (Macos / Windows)
9394
run: |
95+
rm -rf dist
9496
make dist-py-wheel
9597
make dist-check
9698
env:
9799
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
98100
if: matrix.os != 'ubuntu-latest'
99101

102+
- name: Test wheel install
103+
run: |
104+
python -m venv /tmp/test-wheel
105+
/tmp/test-wheel/bin/pip install dist/*.whl
106+
/tmp/test-wheel/bin/python -c "import python_template_rust"
107+
if: matrix.os == 'ubuntu-latest'
108+
109+
- name: Test sdist install
110+
run: |
111+
python -m venv /tmp/test-sdist
112+
/tmp/test-sdist/bin/pip install dist/*.tar.gz
113+
/tmp/test-sdist/bin/python -c "import python_template_rust"
114+
if: matrix.os == 'ubuntu-latest'
115+
100116
- uses: actions/upload-artifact@v7
101117
with:
102118
name: dist-${{matrix.os}}

.github/workflows/docs.yaml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,49 @@
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/rust/setup@main
17-
- run: uv pip install .[develop]
18-
- 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*
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+
uv pip install .[develop]
42+
uv pip install yardang
43+
if: github.event_name == 'workflow_dispatch'
44+
1945
- run: yardang build
46+
2047
- uses: peaceiris/actions-gh-pages@v4
2148
with:
2249
publish_branch: gh-pages

0 commit comments

Comments
 (0)