-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcopier.yml
79 lines (66 loc) · 2.05 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
_subdirectory: template
# questions
project_name:
type: str
help: What is your project name?
validator: >-
{% if not (project_name | regex_search('^[a-z][a-z0-9\-_]+$')) %}
project_name must start with a letter, followed one or more letters, digits, dashes or underscores, all lowercase.
{% endif %}
project_slug:
type: str
help: What is the Python import name?
default: "{{ project_name|replace('-', '_') }}"
validator: >-
{% if not (project_slug | regex_search('^[a-z][a-z0-9\_]+$')) %}
project_slug must start with a letter, followed one or more letters, digits, underscores, all lowercase.
{% endif %}
project_description:
type: str
help: What is your project description?
license:
type: str
help: A SPDX license identifier (https://spdx.org/licenses/)
default: MIT
platforms:
type: str
help: What are the target platforms? ('linux-64' is used in CI for GitHub Actions)
multiselect: true
choices:
- "osx-arm64"
- "linux-64"
- "win-64"
default:
- "linux-64"
max_python_version:
type: str
help: What is the maximum supported Python version?
choices: ["3.13", "3.12", "3.11", "3.10", "3.9", "3.8", "3.7"]
max_python_version_minor:
type: int
default: "{{ max_python_version | replace('3.', '') | int }}"
when: false
min_python_version:
type: str
help: What is the minimum supported Python version?
choices: ["3.13", "3.12", "3.11", "3.10", "3.9", "3.8", "3.7"]
min_python_version_minor:
type: int
default: "{{ min_python_version | replace('3.', '') | int }}"
when: false
your_name:
type: str
help: What is your full name?
your_email:
type: str
help: What is your email address?
github_username:
type: str
help: What is your GitHub username?
_tasks:
# Strings get executed under system's default shell
- "git init"
- "pixi run pre-commit-install"
- "git add ."
- "pixi run lint-staged || git add ."
- "git commit -m 'Start project with copier'"