forked from Quantco/copier-template-python-open-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
copier.yml
73 lines (61 loc) · 1.93 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
# configuration
_subdirectory: template
_preserve_symlinks: True
_min_copier_version: "9.3.1"
# questions
project_slug:
type: str
help: What is your project slug (i.e. pypi package name)?
validator: >-
{% if '_' in project_slug or ' ' in project_slug or '.' in project_slug %}
The project slug should not contain underscores, spaces or dots.
{% endif %}
project_slug_snake_case:
type: str
default: "{{ project_slug.replace('-', '_') }}"
when: false
project_short_description:
type: str
help: Enter a short description.
github_user:
type: str
help: What is your GitHub username (used for CODEOWNERS)?
author_name:
type: str
help: What is your name (used for package author)?
author_email:
type: str
help: What is your email (used for package author)?
github_url:
type: str
help: What is the GitHub url of this project?
default: https://github.com/{{ github_user }}/{{ project_slug }}
validator: >-
{% if not github_url.startswith('https://github.com/') or github_url.endswith('.git') %}
The GitHub URL should start with `https://github.com/` and not end with `.git`, for example `https://github.com/LandoCalrissian/python-project`.
{% endif %}
minimal_python_version:
type: str
help: What is the minimal Python version you want to support?
choices:
- py38
- py39
- py310
- py311
- py312
default: py38
minimal_python_version_sortable:
type: str
default: "{{ minimal_python_version.replace('py38', 'py308').replace('py39', 'py309') }}"
when: false
use_devcontainer:
type: bool
help: Should this project use a devcontainer for development?
default: false
add_autobump_workflow:
type: bool
help: Do you want to add a GitHub Workflow to automatically bump `pixi.lock`?
default: true
_tasks:
- '"{{ _copier_python }}" -I -c "import sys; sys.path.insert(0, \"{{ _copier_conf.src_path }}\"); import runpy;
runpy.run_module(\"tasks\", run_name=\"__main__\")"'