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: 9b579a3
_commit: 3d2cd28
_src_path: https://github.com/python-project-templates/base.git
add_docs: true
add_extension: rust
Expand Down
50 changes: 21 additions & 29 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,30 @@
---
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`)
- Rust version: [e.g. 1.75.0] (`rustc --version`)
- Package version: (`pip show python-template-rust | 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)
16 changes: 16 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:

- name: Make dist (Linux)
run: |
rm -rf dist
make dist-rs
make dist-py-sdist
make dist-py-wheel
Expand All @@ -91,12 +92,27 @@ jobs:

- name: Make dist (Macos / Windows)
run: |
rm -rf dist
make dist-py-wheel
make dist-check
env:
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
if: matrix.os != 'ubuntu-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_rust"
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_rust"
if: matrix.os == 'ubuntu-latest'

- uses: actions/upload-artifact@v7
with:
name: dist-${{matrix.os}}
Expand Down
39 changes: 33 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,49 @@
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/rust/setup@main
- run: uv pip install .[develop]
- run: uv pip install yardang

- name: Download dist from build
uses: actions/download-artifact@v7
with:
pattern: dist-ubuntu-latest*
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: |
uv pip install .[develop]
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
Loading
Loading