-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopier.yml
More file actions
68 lines (55 loc) · 1.79 KB
/
copier.yml
File metadata and controls
68 lines (55 loc) · 1.79 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
# NOTE some limitations of copier:
#
# - any extensions must be installed manually
# - you cannot use dst_path as default answers
_min_copier_version: 9.4.1
_answers_file: .copier/.copier-answers.yml
_jinja_extensions:
- jinja2_shell_extension.ShellExtension
_message_after_copy: |
Next steps:
1. Customize secrets in .envrc
2. Run `direnv allow`
3. Set PYPI_API_TOKEN on GH actions
4. Set GH_TOKEN on GH actions
project_name:
type: str
help: Dash separated project slug
default: "{{ \"basename $(pwd)\" | shell() | trim | regex_replace(' ', '-') | regex_replace('_', '-') }}"
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 or dashes all lowercase.
{% endif %}
# https://github.com/superlinear-ai/substrate/blob/main/copier.yml
project_name_snake_case:
when: false
default: "{{ project_name | lower | replace('-', '_') }}"
full_name:
type: str
help: Full name of the project owner (for pypi)
default: "{{ \"git config --global user.name\" | shell() | trim }}"
email:
type: str
help: Email of the project owner (for pypi)
default: "{{ \"git config --global user.email\" | shell() | trim }}"
github_username:
type: str
help: GitHub username of the project owner (for pypi)
default: "{{ \"gh api user --jq '.login'\" | shell() | trim }}"
_exclude:
- TODO
- /.git
- /README.md
- /CHANGELOG.md
- /LICENSE
- /uv.lock
- /metadata.json
_tasks:
- '[ ! -d .git ] && git init'
- touch README.md
- uv sync
- git add -A
- git commit -m "🎉 Initial commit"
# - ["{{ _copier_python }}", .copier/bootstrap.py]
# although it's annoying to have the .copier-answers.yml file in the root, it allows `copier update`
# to work properly