-
Notifications
You must be signed in to change notification settings - Fork 1
/
copier.yml
312 lines (267 loc) · 8.58 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
---
# Copier will load all these files
!include template/copier.*.yml
---
_exclude:
- .copier-answers.*.yml
- copier.*.yml
- licenses
_envops:
block_end_string: '%]'
block_start_string: '[%'
_subdirectory: template
_message_before_copy: |
Thanks for generating a project using our template.
You'll be asked a series of questions whose answers will be used to
generate a tailored project for you.
_message_after_copy: |
Your project "{{ project_name }}" has been created successfully!
_message_before_update: |
Thanks for updating your project using our template.
You'll be asked a series of questions whose answers are pre-populated
with previously entered values. Feel free to change them as needed.
_message_after_update: |
Your project "{{ project_name }}" has been updated successfully!
In case there are any conflicts, please resolve them. Then,
you're done.
project_name:
default: Serious Scaffold Pybind11
help: 'Enter the name of the project in CamelCase format:'
type: str
project_description:
default: |
[%- if project_name == 'Serious Scaffold Pybind11' -%]
A continuously evolving basic template for cpp development.
[%- endif -%]
help: 'Provide a brief description for the project:'
type: str
copyright_license:
default: MIT License
choices:
- Apache Software License
- Boost Software License 1.0 (BSL-1.0)
- GNU Affero General Public License v3
- GNU General Public License v3 (GPLv3)
- GNU Lesser General Public License v3 (LGPLv3)
- MIT License
- Mozilla Public License 2.0 (MPL 2.0)
- The Unlicense (Unlicense)
help: Choose the project's license (e.g. "MIT", "GPL-3.0").
type: str
copyright_year:
default: 2022-{{ "%Y" | strftime }}
help: Enter the copyright year or range (e.g. "2022-2023").
type: str
author_name:
default: Your Name
help: 'Specify the name of the author:'
type: str
organization_name:
default: |
[%- if project_name == 'Serious Scaffold Pybind11' -%]
Serious Scaffold
[%- endif -%]
help: 'Provide the name of the organization associated with the project:'
type: str
copyright_holder:
default: '{{ organization_name }}'
help: Name(s) or organization(s) holding the copyright.
type: str
author_email:
default: '{{ author_name|lower|replace(" ", ".") }}@{{ organization_name|lower|replace(" ", "-") }}.com'
help: 'Specify the email address of the author:'
type: str
repo_platform:
default: github
choices:
GitHub: github
GitLab: gitlab
GitLab (self-managed): gitlab-self-managed
help: 'Choose the platform for the repository:'
type: str
repo_host:
default: |-
[% if repo_platform == 'github' -%]
github.com
[%- elif repo_platform == 'gitlab' -%]
gitlab.com
[%- endif %]
help: 'Specify the host of the self-managed GitLab:'
type: str
when: '{{ repo_platform == "gitlab-self-managed" }}'
page_host:
default: |-
[% if repo_platform == 'github' -%]
github.io
[%- elif repo_platform == 'gitlab' -%]
gitlab.io
[%- endif %]
help: 'Specify the host of the self-managed GitLab Pages:'
type: str
when: '{{ repo_platform == "gitlab-self-managed" }}'
repo_namespace:
default: '{{ organization_name|lower|replace(" ", "-") }}'
help: 'Indicate the GitHub Repository Owner or GitLab Namespace. This is typically the account name of the author or the organization:'
type: str
repo_name:
default: '{{ project_name|lower|replace(" ", "-") }}'
help: 'Provide a name for the repository:'
type: str
module_name:
default: '{{ repo_name|lower|replace("-", "_") }}'
help: 'Specify the name of the primary module within the package (often used in "import <module_name>"):'
type: str
create_devcontainer:
default: true
help: 'Whether to create a devcontainer configuration:'
type: bool
docs_type:
default: sphinx
choices:
Sphinx: sphinx
MkDocs: mkdocs
help: 'Choose the type of documentation to generate:'
type: str
compiled:
default: true
help: Whether to add _core compiled module.
type: bool
use_cpm:
default: false
help: Whether to use CPM to manage C++ dependencies.
type: bool
when: '{{ compiled == true }}'
use_conan:
default: false
help: Whether to use conan to manage C++ dependencies.
type: bool
when: '{{ compiled == true }}'
use_codecov:
default: true
help: 'Whether to add codecov integration:'
type: bool
codecov_notify_builds:
default: 1
help: 'Specify the number of builds to notify status for codecov:'
type: int
when: '{{ use_codecov == true }}'
codecov_threshold:
default: 5%
help: 'Specify the minimum coverage threshold for codecov:'
type: str
when: '{{ use_codecov == true }}'
use_codeql:
default: true
help: 'Whether to add codeql integration:'
type: bool
when: '{{ repo_platform == "github" }}'
min_py:
default: '3.12'
choices:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
help: 'Choose the minimal Python version the project should support:'
type: str
max_py:
default: '3.12'
choices:
'3.8':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_higher_than_validator %]{{ version_higher_than_validator("3.8", min_py) }}'
value: '3.8'
'3.9':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_higher_than_validator %]{{ version_higher_than_validator("3.9", min_py) }}'
value: '3.9'
'3.10':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_higher_than_validator %]{{ version_higher_than_validator("3.10", min_py) }}'
value: '3.10'
'3.11':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_higher_than_validator %]{{ version_higher_than_validator("3.11", min_py) }}'
value: '3.11'
'3.12':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_higher_than_validator %]{{ version_higher_than_validator("3.12", min_py) }}'
value: '3.12'
'3.13':
value: '3.13'
help: 'Choose the maximal Python version the project should support:'
type: str
default_py:
default: '{{ max_py }}'
choices:
'3.8':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_between_validator %]{{ version_between_validator("3.8", min_py, max_py) }}'
value: '3.8'
'3.9':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_between_validator %]{{ version_between_validator("3.9", min_py, max_py) }}'
value: '3.9'
'3.10':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_between_validator %]{{ version_between_validator("3.10", min_py, max_py) }}'
value: '3.10'
'3.11':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_between_validator %]{{ version_between_validator("3.11", min_py, max_py) }}'
value: '3.11'
'3.12':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_between_validator %]{{ version_between_validator("3.12", min_py, max_py) }}'
value: '3.12'
'3.13':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_between_validator %]{{ version_between_validator("3.13", min_py, max_py) }}'
value: '3.13'
help: 'Choose the default Python version for development, documentation generation, and package build:'
type: str
# Override ss-cmake variables
ss_cmake_repo_name:
default: '{{ repo_name }}'
type: str
when: false
ss_cmake_repo_url:
default: '[% from pathjoin("includes", "variable.jinja") import repo_url with context %]{{ repo_url() }}'
type: str
when: false
ss_cmake_project_description:
default: '{{ project_description }}'
type: str
when: false
ss_cmake_configure_coverage:
default: false
type: bool
when: false
ss_cmake_configure_version:
default: '{{ compiled }}'
type: bool
when: false
ss_cmake_configure_warnings_and_hardening:
default: '{{ compiled }}'
type: bool
when: false
ss_cmake_use_cpm:
default: '{{ use_cpm }}'
type: bool
when: false
ss_cmake_use_conan:
default: '{{ use_conan }}'
type: bool
when: false
# Override ss-license variables
ss_license_project_name:
default: '{{ project_name }}'
type: str
when: false
ss_license_project_description:
default: '{{ project_description }}'
type: str
when: false
ss_license_copyright_license:
default: '{{ copyright_license }}'
type: str
when: false
ss_license_copyright_year:
default: '{{ copyright_year }}'
type: str
when: false
ss_license_copyright_holder:
default: '{{ copyright_holder }}'
type: str
when: false