-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcopier.yml
More file actions
68 lines (57 loc) · 1.56 KB
/
copier.yml
File metadata and controls
68 lines (57 loc) · 1.56 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
67
68
_min_copier_version: "9.8.0"
_subdirectory: template
# "Well-known" variables that a user is likely to have set
user_name:
type: str
help: Author's full name
default: John Doe
user_email:
type: str
help: Author's email address
default: john.doe@example.com
project_name:
type: str
help: What is the name of the project?
default: My Example Project
project_slug:
type: str
help: What should the project slug be (no spaces allowed)?
default: "{{ project_name|lower|replace(' ', '-') }}"
package_name:
type: str
help: What should the package directory be named?
default: "{{ project_slug|replace('-', '_') }}"
package_description:
type: str
help: Give a short description of the package.
default: A tiny example project.
use_subcommands:
type: bool
help: Should I prepare this project for implementing subcommands?
default: true
copyright_license:
type: str
help: Which license should be used?
choices:
- "GNU GPLv3"
- "MIT"
- "Unlicense"
default: "GNU GPLv3"
pip_in_venv:
type: bool
help: Should pip be installed into .venv?
default: true
_exclude:
- "LICENSE_*"
_tasks:
- working_directory: "."
command: "git init && git add ."
when: "{{ _copier_operation == 'copy' }}"
- working_directory: "{{ project_dir }}"
command: "git commit -m \"Initial Commit\""
when: "{{ _copier_operation == 'copy' }}"
- working_directory: "{{ project_dir }}"
command: uv venv --seed
when: "{{ pip_in_venv and _copier_operation == 'copy' }}"
- working_directory: "{{ project_dir }}"
command: uv sync