-
Notifications
You must be signed in to change notification settings - Fork 11
/
copier.yml
96 lines (79 loc) · 2.61 KB
/
copier.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# see https://copier.readthedocs.io/en/stable/configuring/
### Settings ###
_min_copier_version: "9.0.0"
_subdirectory: project-template
_templates_suffix: "" # empty suffix will process all files
_jinja_extensions:
- copier_templates_extensions.TemplateExtensionLoader
- extensions.py:CurrentYearExtension
- extensions.py:GitExtension
- extensions.py:SlugifyExtension
### question ###
full_name:
default: "{{ git_user_name }}"
type: str
help: Enter your full name. This will appear in the License generated and `pyproject.toml`'s authors field.
email:
default: "{{ git_user_email }}"
type: str
help: Your E-mail address. This will appear in the License generated and `pyproject.toml`'s authors field.
github_username:
default: "{{ github_username }}"
type: str
help: You Github username or organization name under which the projects lives.
project_name:
type: str
help: Name of the project without the 'xontrib-' prefix
project_repo_name:
type: str
default: xontrib-{{ project_name|slugify }}
help: full repository name. Mostly the default is good.
project_short_description:
type: str
help: A short description of the project.
package_manager:
type: str
help: Choose a build backend for the project
choices:
- setuptools
- poetry
enable_autoloading:
type: bool
help: Enable auto-loading the xontrib when installed?
default: true
project_package_name:
type: str
default: "{{ project_name|slugify(separator='_') }}"
help: "{% if enable_autoloading %}
name of the xontrib/plugin
{% else %}
name of the Python module created inside the 'xontrib/' namespace package
{% endif %}"
py_module_name:
# this is not asked by reused across the template and useful only when autoloading is enabled
when: false
default: "{{project_repo_name|slugify(separator='_')}}"
has_aliases:
type: bool
help: Do you want to have alias functions?
when: "{{ enable_autoloading }}"
default: "{% if 'alias' in project_short_description %}yes{% else %}no{% endif %}"
has_events:
type: bool
help: Do you want to have event handlers?
when: "{{ enable_autoloading }}"
default: "{% if 'event' in project_short_description %}yes{% else %}no{% endif %}"
enable_pre_commit_hooks:
type: bool
help: Enable pre-commit for this project?
default: yes
pure_py:
type: bool
# use pure version when autoloading is installed.
# Though possible, the reason is that the project is getting too complex providing all the options.
when: "{{ not enable_autoloading }}"
help: Use Only pure Python for developing the extension?
default: "yes"
version:
help: project version
default: 0.0.1