Repository navigation
Expand file tree
/
Copy pathcopier.yml
More file actions
56 lines (50 loc) · 2.22 KB
/
Copy pathcopier.yml
File metadata and controls
56 lines (50 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Copier configuration for this template.
# See https://copier.readthedocs.io/en/stable/configuring/ for more information.
_min_copier_version: "9.5"
_subdirectory: template
# Only *.jinja files are rendered, so `${{ }}` in GitHub workflows is left untouched
_templates_suffix: .jinja
_exclude:
# Defaults; setting _exclude replaces them, so re-add the ones you want
- "~*"
- "*.py[co]"
- "__pycache__"
- ".git"
- ".DS_Store"
# Example code is only added on `copier copy`; `copier update` never adds it back.
# Docs and release files are also skipped when their option is off
- "{% if _copier_operation == 'update' %}src/*/hello_world.py{% endif %}"
- "{% if _copier_operation == 'update' %}tests/test_hello_world.py{% endif %}"
- "{% if _copier_operation == 'update' or not use_releases %}scripts/sync-labels.sh{% endif %}"
- "{% if _copier_operation == 'update' or not use_docs %}/docs{% endif %}"
- "{% if _copier_operation == 'update' or not use_docs %}zensical.toml{% endif %}"
- "{% if _copier_operation == 'update' or not use_releases %}.github/release-drafter.yml{% endif %}"
- "{% if _copier_operation == 'update' or not use_releases %}.github/workflows/release-drafter.yml{% endif %}"
- "{% if _copier_operation == 'update' or not use_releases %}.github/workflows/release.yml{% endif %}"
_tasks:
- uv lock
project_name:
type: str
help: Project name (used in pyproject.toml and the docs title)
validator: "{% if not project_name %}Required{% endif %}"
package_name:
type: str
help: Python package name (the folder under src/)
default: "{{ project_name | lower | replace('-', '_') | replace(' ', '_') }}"
validator: "{% if not package_name.isidentifier() %}Must be a valid Python identifier{% endif %}"
description:
type: str
help: Short project description
default: "{{ project_name }}"
github_repo:
type: str
help: GitHub owner/repo (used for the README badges)
validator: "{% if github_repo.count('/') != 1 %}Use the owner/repo format{% endif %}"
use_docs:
type: bool
help: Include Zensical docs (docs/, zensical.toml, docs build in CI and hooks)?
default: false
use_releases:
type: bool
help: Include Release Drafter, the manual release workflow, and release labels?
default: false