This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
copier.yml
157 lines (156 loc) · 3.89 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
_envops:
block_end_string: "%#"
block_start_string: "#%"
_exclude:
- "copier.yml"
- ".git"
_jinja_extensions:
- "copier_templates_extensions.TemplateExtensionLoader"
- "extensions/commands.py:CommandsContextHook"
- "extensions/context.py:SkeletonContextHook"
- "extensions/context.py:FilterExtension"
- "extensions/context.py:ProjectURLContextHook"
- "extensions/context.py:PythonVersionsContextHook"
- "extensions/context.py:VisibilityContextHook"
- "extensions/context.py:TemplateContextHook"
- "extensions/context.py:GitContextHook"
- "extensions/context.py:SelfContextHook"
- "extensions/scsgha.py:SCSGHAExtension"
- "extensions/scsgha.py:PoetryVersionContextHook"
- "extensions/stringops.py:StringOpsExtension"
- "extensions/make_context.py:MakeContextContextHook"
_subdirectory: "project"
_tasks:
- >-
set -ex
#%- if ctt %#
&& rm -rf "../.artifacts/{{repo}}/"
&& mkdir -p ../.artifacts/
&& cp -r . "../.artifacts/{{repo}}/"
&& cd ../.artifacts/
&& zip -r "artifacts.zip" *
&& cd -
#%- endif %#
&& ./setup_local.bash --run
repo:
type: "str"
help: "Repository name"
description:
type: "str"
default: ""
help: "Short project description"
wip:
type: "bool"
default: true
help: "Add a work-in-progress notice to the README?"
visibility:
type: "str"
choices:
- "public"
- "private"
default: "private"
help: "Repository visibility"
github:
type: "str"
help: "GitHub username of the owner of the repository, maybe organization"
default: "{{git_username or 'bswck'}}"
author:
type: "str"
default: "{{github}}"
help: "GitHub username of the author and copyright holder"
copyright:
type: "str"
default: "#% if github == 'bswck' %#Bartosz Sławecki#% endif %#"
help: "Full name of the copyright holder"
email:
type: "str"
default: "{{git_email or 'bartoszpiotrslawecki@gmail.com'}}"
help: "Your e-mail address"
pypi:
type: "bool"
default: true
help: "Publish on PyPI"
pypi_project:
type: "str"
default: "{{pypi_project_name or repo|kebabify}}"
help: "PyPI project name"
when: "{{pypi}}"
pypi_description:
type: "str"
default: "{{description}}"
help: "PyPI project description"
when: "{{pypi}}"
docs:
type: "bool"
default: true
help: "Include documentation suite?"
tests:
type: "bool"
default: true
help: "Include test suite?"
package:
type: "str"
default: "{{repo.replace('-', '_')}}"
help: "Package import name"
cli:
type: "bool"
default: false
help: "Is this a CLI app?"
python:
type: "str"
default: "3.8"
choices:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
help: "Minimal Python version"
python_until:
type: "str"
default: ""
choices:
"4.0": "4.0"
"{{python_ahead or '3.13'}}": "{{python_ahead or '3.13'}}"
"None": ""
help: "Allow Python versions until this version (exclusive)"
pypy:
type: "bool"
default: true
help: "Include PyPy (apart from CPython) in the test matrix?"
license:
type: "str"
default: "MIT"
choices:
"MIT License": "MIT"
"GNU Affero General Public License v3.0": "AGPL-3.0"
"Apache License 2.0": "Apache-2.0"
'BSD 2-Clause "Simplified" License': "BSD-2-Clause"
'BSD 3-Clause "New" or "Revised" License': "BSD-3-Clause"
"Boost Software License 1.0": "BSL-1.0"
"Creative Commons Zero v1.0 Universal": "CC0-1.0"
"Eclipse Public License 2.0": "EPL-2.0"
"GNU General Public License v2.0": "GPL-2.0"
"GNU General Public License v3.0": "GPL-3.0"
"GNU Lesser General Public License v2.1": "LGPL-2.1"
"Mozilla Public License 2.0": "MPL-2.0"
"The Unlicense": "Unlicense"
"Custom license/No license": "Custom"
help: "License name"
precommit:
type: "bool"
default: true
help: "Use pre-commit?"
tidelift:
type: "bool"
default: false
help: "Is the package lifted?"
when: "{{pypi}}"
ctt:
type: "bool"
default: false
help: "Copier Template Tester mode?"
when: "{{False}}"
year:
default: "{{'%Y' | strftime}}"
when: "{{False}}"