-
Notifications
You must be signed in to change notification settings - Fork 0
/
copier.yml
56 lines (56 loc) · 1.73 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
_min_copier_version: "9.1.0"
_subdirectory: template
# _jinja_extensions:
# - "jinja2_slug.SlugExtension"
project_name:
type: "str"
help: "A human-readable, official name for the project"
placeholder: "Cool Example"
validator: "{% if project_name|length == 0 %}Project name may not be empty{% endif %}"
pypi_name:
type: "str"
help: "Your package name on PyPi"
default: "{{ project_name|lower|replace(' ', '-') }}"
# default: "{{ project_name|slug }}"
module_name:
type: "str"
help: "`import` this project in Python using this name"
default: "{{ pypi_name|replace('-', '_') }}"
validator: "{% if not (module_name|regex_search('^[_a-zA-Z][_a-zA-Z0-9]+$')) %}Your module name is invalid{% endif %}"
project_description:
type: "str"
help: "The description of the project as it appears on PyPi"
placeholder: "An awesome project"
add_docs:
type: "bool"
help: "Do you want to add docs to your project?"
default: true
is_app:
type: "bool"
help: "Is your project an app that you should run?"
default: true
author:
type: "str"
help: "The author name as it shows on PyPi"
placeholder: "John Doe"
validator: "{% if author|length == 0 %}Author name may not be empty{% endif %}"
username:
type: "str"
help: "Your username as it is on GitHub"
placeholder: "Octocat"
validator: "{% if username|length == 0 %}Username may not be empty{% endif %}"
email:
type: "str"
help: "Your email"
placeholder: "hello@example.com"
# init_venv:
# type: "bool"
# help: "Should we run `poetry install` for you?"
# default: true
# git_init:
# type: "bool"
# help: "Should we run `git init` for you?"
# default: true
# _tasks:
# - "{% if init_venv %}poetry install{% endif %}"
# - "{% if git_init %}git init{% endif %}"