-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcopier.yaml
More file actions
76 lines (62 loc) · 1.52 KB
/
copier.yaml
File metadata and controls
76 lines (62 loc) · 1.52 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
67
68
69
70
71
72
73
74
75
76
############# Configuration ##################
_subdirectory: template
############# Prompt ##################
project_name:
type: str
package_name:
type: str
help: |
Name of the python distribution package.
Must be a valid python identifier, i.e. my_package
default: "{{ project_name | replace('-', '_') }}"
validator: >
{% if not (package_name | regex_search('^[a-zA-Z][a-zA-Z_0-9]+$')) %}
{{package_name}} is not a valid python package name
{% endif %}
project_description:
type: str
help: Your project description
project_type:
type: str
choices:
- cli
- service
default: cli
help: Type of the project
service_framework:
type: str
choices:
- fastapi
- flask
default: fastapi
when: "{{ project_type == 'service' }}"
help: Web framework to use
repository_namespace:
type: str
help: Your repository namespace
default: "trobz"
repository_name:
type: str
help: |
Name of the repository.
default: "{{ project_name }}"
validator: >-
{% if not (repository_name | regex_search('^[a-zA-Z][a-zA-Z_\\.\\-0-9]+$')) %}
{{ repository_name }} is not a valid repo name
{% endif %}
author_username:
type: str
help: Your username (e.g. on GitHub)
author_email:
type: str
help: Your email
enable_github_action:
type: bool
default: False
publish_to_pypi:
type: bool
default: False
when: "{{ enable_github_action }}"
############# Tasks ##################
_tasks:
- "ln -sf AGENTS.md CLAUDE.md"