-
Notifications
You must be signed in to change notification settings - Fork 0
/
copier.yml
37 lines (32 loc) · 969 Bytes
/
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
project_name:
type: str
help: "What is the name of the new project?"
validator: |-
{% if not (project_name | regex_search('^[a-z][a-z0-9\-]+$')) %}
Project name must follow PEP508.
{% endif %}
module_name:
type: str
help: "What is the module name?"
default: "{{ project_name.replace(' ', '_').replace('-', '_').lower() }}"
validator: |-
{% if not module_name.isidentifier() %}
Module name format must be a proper Python identifier
{% endif %}
project_description:
type: str
help: "What is the description of the new project?"
python_version:
type: str
help: "Which Python version do you want to use? Minimum 3.9"
default: "3.10"
validator: |-
{% if python_version.split('.') | map('int') | list < [3, 9] %}
Python version must be greater than or equal to 3.9
{% endif %}
author_name:
type: str
help: "Who is the author?"
author_email:
type: str
help: "What is the email address of the author?"