Repository navigation
Expand file tree
/
Copy pathcopier.yml
More file actions
66 lines (55 loc) · 1.45 KB
/
Copy pathcopier.yml
File metadata and controls
66 lines (55 loc) · 1.45 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
# questions
full_name:
type: str
help: "What's your name?"
email:
type: str
help: "Email address"
placeholder: "first.last@example.com"
github_username:
type: str
help: "GitHub Username"
project_name:
type: str
help: "Project Name (human readable version)"
placeholder: "Python Package"
project_slug:
type: str
help: "Project slug (used for GitHub, PyPI, etc.)"
default: "{{ project_name.lower().replace(' ', '-') }}"
package_name:
type: str
help: "The name of the main Python package (should be a valid Python identifier)"
default: "{{ project_slug.replace('-', '_') }}"
project_short_description:
type: str
help: "A short description of the project"
placeholder: "A super helpful small Python package."
open_source_license:
type: str
help: "The open source license to use"
choices:
- "MIT"
- "Apache Software License 2.0"
- "GNU General Public License v3"
- "Not open source"
copyright_year:
type: str
help: "Copyright year(s)"
default: "2024"
documentation:
type: bool
help: "Generate documentation?"
default: yes
main_branch:
type: str
help: "Branch name to use for the main development branch"
default: "main"
# Copier metadata
_min_copier_version: "9.0.0"
_subdirectory: "project"
_tasks:
# Remove license file if no license
- "{% if open_source_license == 'Not open source' %}rm LICENSE{% endif %}"
# Cleanup docs
- "{% if not documentation %}rm -rf docs .readthedocs.yml{% endif %}"