forked from westerveltco/django-twc-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
copier.yml
114 lines (97 loc) · 3 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
# ----------------------------------------------------------------------
# META
# ----------------------------------------------------------------------
_answers_file: .copier/package.yml
_jinja_extensions:
- copier_templates_extensions.TemplateExtensionLoader
- extensions/context.py:MinMaxVersion
- extensions/context.py:NoxfileVersions
_min_copier_version: "9.1.0"
_subdirectory: src/django_twc_package
template_version:
default: "2024.17"
when: false
# ----------------------------------------------------------------------
# GENERAL
# ----------------------------------------------------------------------
package_name:
type: str
help: What is the name of the package?
default: "django-example-package"
package_description:
type: str
help: What is the description of the package?
default: "An example Django package"
module_name:
type: str
help: What is the name of the package's module?
default: "{{ package_name.lower() | replace('-', '_') | replace(' ', '_') | trim() }}"
author_name:
type: str
help: What is the name of the primary author/maintainer?
validator: "{% if author_name == '' %}You must provide an name.{% endif %}"
author_email:
type: str
help: What is the email of the primary author/maintainer?
validator: "{% if author_email == '' %}You must provide an email.{% endif %}"
github_owner:
type: str
help: Who is the GitHub owner? Can either be a user or organization.
validator: "{% if github_owner == '' %}You must provide an GitHub owner.{% endif %}"
github_repo:
type: str
help: What is the name of the GitHub repo?
default: "{{ package_name | trim() }}"
docs_domain:
type: str
help: What is the base domain where the documentation will be hosted?
choices:
- "readthedocs.io"
- "westervelt.dev"
default: "westervelt.dev"
# ----------------------------------------------------------------------
# VERSIONS
# ----------------------------------------------------------------------
versioning_scheme:
type: str
help: What versioning scheme will the package use?
choices:
- "SemVer"
- "CalVer (YYYY.INC1)"
- "CalVer (YYYY.MM.INC1)"
default: "SemVer"
current_version:
type: str
help: What is the current version of the project?
default: |-
{% if versioning_scheme == "SemVer" -%}
0.1.0
{%- elif versioning_scheme == "CalVer (YYYY.INC1)" -%}
{{ '%Y' | strftime }}.1
{%- else -%}
{{ '%Y.%-m' | strftime }}.1
{%- endif %}
python_versions:
type: str
help: Select all the versions of Python that should be supported.
multiselect: true
choices:
"3.8": "3.8"
"3.9": "3.9"
"3.10": "3.10"
"3.11": "3.11"
"3.12": "3.12"
default: ["3.8", "3.9", "3.10", "3.11", "3.12"]
django_versions:
type: str
help: Select all the versions of Django that should be supported.
multiselect: true
choices:
"3.2 (LTS)": "3.2"
"4.2 (LTS)": "4.2"
"5.0": "5.0"
default: ["3.2", "4.2", "5.0"]
test_django_main:
type: bool
help: Test against the Django `main` branch?
default: true