-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopier.yml
More file actions
50 lines (42 loc) · 1.33 KB
/
copier.yml
File metadata and controls
50 lines (42 loc) · 1.33 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
# General configuration
_subdirectory: templates
_answers_file: .copier-answers.yml
# Questions to ask when creating a new project
project_name_input:
type: str
help: What is your project name?
validator: "{% if not project_name_input %}Project name cannot be empty{% endif %}"
# Derived variable: sanitized project name for Python package
project_name:
type: str
default: "{{ project_name_input | lower | replace(' ', '_') | replace('-', '_') | replace('.', '_') | regex_replace('[^a-z0-9_]', '') }}"
when: false
project_description:
type: str
help: A short description of your project
author_name:
type: str
help: What is the author's name?
email_domain:
type: str
help: Email domain (after @)
default: example.com
when: false
author_email:
type: str
help: Author email
default: "{{ author_name | lower | replace(' ', '.') }}@{{ email_domain }}"
python_version_primary:
type: str
default: "3.14"
choices:
- "3.14"
- "3.13"
- "3.12"
help: Primary version of Python to used in the project.
# Optional: pin the astral `uv` installer script. Leave empty to use latest.
uv_version:
type: str
default: "0.9.21"
help: Optional version string to pin the astral `uv` installer, e.g. "0.8.2". Leave empty to use latest installer.
when: false