-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcopier.yml
More file actions
66 lines (58 loc) · 1.63 KB
/
copier.yml
File metadata and controls
66 lines (58 loc) · 1.63 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
57
58
59
60
61
62
63
64
65
66
_subdirectory: template
_templates_suffix: .j2
# Require template update "conflict" flag:
_min_copier_version: 9.4.1
_skip_if_exists:
- CHANGELOG.md
# # Tasks (git init + commit + tag) interfere with the update process!
_tasks:
- >-
export AUTHOR_NAME="{{author_name}}";
export AUTHOR_EMAIL="{{author_email}}";
export TEMPLATE="{{project_slug}}";
{{_copier_conf.src_path}}/hooks/git_init_project
project_name:
type: str
help: "What is your project name? (format: Capitalized With Spaces)"
placeholder: My Lovely Project
validator: >-
{% if not (project_name | regex_search('^[A-Z0-9].+$')) %}
Project_name must start Capitalized (regex '^[A-Z0-9].+$')
{% endif %}
description:
type: str
placeholder: "A python project to do things"
python_version:
type: str
default: "3.12"
choices:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
author_name:
type: str
help: The author of this package and template
default: "Jb Doyon"
author_email:
type: str
help: The email of author
default: "jb@jiby.tech"
validator: >-
{% if not (author_email | regex_search('^[^@]+@[^@]+\.[^@]+$')) %}
Email invalid
{% endif %}
project_slug:
type: str
default: "{{project_name|trim|lower|replace(' ', '-')}}"
package_name:
type: str
default: "{{ project_slug | lower | replace('-', '_') }}"
dynamic_versioning:
type: bool
help: |
Should we use dynamic package versioning?
If yes, python package version is computed from nearest git tag + number of
commits since as suffix, if any. If no, package version is a hard value
stored in pyproject.toml, regardless of git tag
default: False