Skip to content

Commit 1886b31

Browse files
committed
reinit copier
1 parent ef641cb commit 1886b31

File tree

6 files changed

+40
-3
lines changed

6 files changed

+40
-3
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: a03224b
2+
_commit: 3eae34f
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: python

.github/workflows/docs.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Docs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
permissions:
8+
contents: write
9+
jobs:
10+
docs:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions-ext/python/setup@main
15+
- run: uv pip install .
16+
- run: uv pip install yardang
17+
- run: yardang build
18+
- uses: peaceiris/actions-gh-pages@v4
19+
with:
20+
publish_branch: gh-pages
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
publish_dir: docs/html

.github/workflows/wiki.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424
- run: cp README.md docs/wiki/Home.md
25-
- uses: Andrew-Chen-Wang/github-wiki-action@v4
25+
- uses: Andrew-Chen-Wang/github-wiki-action@v5
2626
with:
2727
path: docs/wiki

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,13 @@ js/dist
139139
js/lib
140140
js/node_modules
141141
js/*.tgz
142+
python_template/extension
142143

143144
# Jupyter
144145
.ipynb_checkpoints
145146
.autoversion
147+
!python_template/extension/python_template.json
148+
!python_template/extension/install.json
146149
python_template/nbextension
147150
python_template/labextension
148151

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
develop: ## install dependencies and build library
77
uv pip install -e .[develop]
88

9+
requirements: ## install prerequisite python build requirements
10+
python -m pip install --upgrade pip toml
11+
python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'`
12+
python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'`
13+
914
build: ## build the python library
1015
python -m build -n
1116

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,11 @@ known-first-party = ["python_template"]
118118
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
119119

120120
[tool.ruff.lint.per-file-ignores]
121-
"__init__.py" = ["F401", "F403"]
121+
"__init__.py" = ["F401", "F403"]
122+
123+
[tool.yardang]
124+
title = "python template"
125+
root = "README.md"
126+
pages = []
127+
use-autoapi = true
128+

0 commit comments

Comments
 (0)