-
Notifications
You must be signed in to change notification settings - Fork 53
/
copier.yml
97 lines (85 loc) · 2.61 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
# [[[cog
# from cog_cc import CC
#
# cc = CC("cookiecutter.json")
# ]]]
# [[[end]]]
# [[[cog print(cc.project_name.yaml()) ]]]
project_name:
type: str
help: The name of your project
# [[[end]]]
validator: >-
{% if not project_name %} You must provide a name for the project. {% endif
%}
# [[[cog print(cc.org.yaml()) ]]]
org:
type: str
help: The name of your (GitHub?) org
# [[[end]]]
validator: >-
{% if not org %} You must provide a org for the project. It might just be
your user name on the site (like GitHub) you are targeting. {% endif %}
# [[[cog print(cc.url.yaml()) ]]]
url:
type: str
help: The url to your GitHub or GitLab repository
# [[[end]]]
default: "https://github.com/{{ org }}/{{ project_name }}"
# [[[cog print(cc.full_name.yaml()) ]]]
full_name:
type: str
help: Your name
# [[[end]]]
placeholder: My Name
validator: >-
{% if not full_name %} You must provide a name (possibly yours) to place in
your config files. {% endif %}
# [[[cog print(cc.email.yaml()) ]]]
email:
type: str
help: Your email
# [[[end]]]
placeholder: me@email.com
validator: >-
{% if not email %} You must provide an email (possibly yours) to place in
your config files, as required by PyPI. {% endif %}
# [[[cog print(cc.project_short_description.yaml()) ]]]
project_short_description:
type: str
help: A short description of your project
# [[[end]]]
default: A great package.
# [[[cog print(cc.license.yaml()) ]]]
license:
help: Select a license
choices:
- BSD
- Apache
- MIT
# [[[end]]]
# [[[cog print(cc.backend.yaml()) ]]]
backend:
help: Choose a build backend
choices:
"Hatchling - Pure Python (recommended)": hatch
"Flit-core - Pure Python (minimal)": flit
"PDM-backend - Pure Python": pdm
"Poetry - Pure Python": poetry
"Setuptools - Pure Python": setuptools
"Setuptools and pybind11 - Compiled C++": pybind11
"Scikit-build-core - Compiled C++ (recommended)": skbuild
"Meson-python - Compiled C++ (also good)": mesonpy
"Maturin - Compiled Rust (recommended)": maturin
# [[[end]]]
# [[[cog print(cc.vcs.yaml()) ]]]
vcs:
type: bool
help: Use version control for versioning
# [[[end]]]
when: "{{ backend not in ['maturin', 'mesonpy'] }}"
_templates_suffix: ""
_subdirectory: "{% raw %}{{cookiecutter.project_name}}{% endraw %}"
_jinja_extensions:
- copier_templates_extensions.TemplateExtensionLoader
- helpers/extensions.py:CookiecutterNamespace