-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathcopier.yml
132 lines (112 loc) · 4.43 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
copyright_holder:
type: str
help: "Who is the copyright holder, for example, yourself or your organization? Used in the license file and project description."
author_name:
type: str
help: "Who is the author of the package to be? Used in the package description."
default: "{{ copyright_holder }}"
author_email:
type: str
help: "The author's email address. Used in the package description."
project_name:
type: str
help: "What is the name of the project? Used as the title in the README.md and other places."
package_description:
type: str
multiline: true
help: "Please provide a short description for the package."
use_default:
type: str
help: "Do you want to skip all remaining questions and simply use the provided default values?"
choices:
"No, I want to fully customize the template.": "no"
"Yes, with all the bells and whistles.": "full"
"Yes, but with a minimal setup.": "minimal"
default: "no"
project_slug:
when: "{{ use_default == 'no' }}"
type: str
help: "What is the project slug? Used in hyperlinks."
default: "{{ project_name|lower|replace(' ', '-') }}"
package_name:
when: "{{ use_default == 'no' }}"
type: str
help: "What is the Python package name? Used as the name of the package and the top-level import."
default: "{{ project_slug|replace('-', '_') }}"
use_vcs_version:
when: "{{ use_default == 'no' }}"
type: bool
default: "{% if use_default != 'minimal' %}yes{% else %}no{% endif %}"
help: "Do you want to use dynamic versioning of your package or static? Dynamic means that versions use your version control system (VCS), such as git tags, for creating versions."
use_git:
when: "{{ use_default == 'no' }}"
type: bool
default: "{% if use_default != 'minimal' %}yes{% else %}no{% endif %}"
help: "Do you want to use git with a development platform, like GitHub or GitLab?"
dev_platform:
when: "{{ use_default == 'no' and use_git }}"
type: str
help: "Which development platform are you planning to use? Used to generate certain documentation and hyperlinks."
choices:
- "GitHub"
- "GitLab"
default: "GitHub"
dev_platform_url:
type: str
when: false
default: "https://{{ dev_platform|lower }}.com"
username:
when: "{{ use_git }}"
type: str
help: "Your or your organization's username on {{ dev_platform }}. Used to generate certain documentation and hyperlinks."
documentation:
when: "{{ use_default == 'no' }}"
type: str
help: "Do you want to include documentation for your project and which framework do you want to use?"
choices:
"Sphinx (https://www.pyopensci.org/pyos-sphinx-theme)": sphinx
"mkdocs-material (https://squidfunk.github.io/mkdocs-material)": mkdocs
No: ""
default: "{% if use_default != 'minimal' %}sphinx{% else %}{% endif %}"
use_hatch_envs:
when: "{{ use_default == 'no' }}"
type: bool
default: "{% if use_default != 'minimal' %}yes{% else %}no{% endif %}"
help: "Do you want to use hatch environments for running isolated commands like linting, building docs, or testing?"
use_lint:
when: "{{ use_default == 'no' }}"
type: bool
default: "{% if use_default != 'minimal' %}yes{% else %}no{% endif %}"
help: "Do you want to lint your code and generally check the formatting of your files?"
use_types:
when: "{{ use_default == 'no' }}"
type: bool
default: "{% if use_default != 'minimal' %}yes{% else %}no{% endif %}"
help: "Do you want to use typing annotations and type check your code?"
use_test:
when: "{{ use_default == 'no' }}"
type: bool
default: "{% if use_default != 'minimal' %}yes{% else %}no{% endif %}"
help: "Do you want to test your code? Generally, we strongly recommend that you do, but for a quick demo you may want to avoid this."
license:
when: "{{ use_default == 'no' }}"
type: str
help: |
Which license do you want to use? Includes a LICENSE file in the repository root.
For more information, see:
- https://www.pyopensci.org/python-package-guide/documentation/repository-files/license-files.html
- https://opensource.org/licenses
choices:
"Permissive - MIT": "MIT"
"Permissive - BSD-3-Clause": "BSD-3-Clause"
"Permissive - Apache-2.0": "Apache-2.0"
"Copyleft - GPL-3.0": "GPL-3.0-only"
"Copyleft - EUPL-1.2": "EUPL-1.2"
"Intermediate - MPL-2.0": "MPL-2.0"
default: MIT
year:
when: "{{ use_default == 'no' }}"
type: str
help: "What is the starting year of the project? Used in copyright statements."
default: "2024"
_subdirectory: "template"