-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcopier.yml
111 lines (94 loc) · 2.65 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
project_type:
type: str
help: |
> project_type:
>
> Which type of project is this?
>
> - Plugins are eccenca Corporate Memory Plugins installable with cmemc.
> - Generic projects are just using the build plan and the config.
>
choices:
eccenca Corporate Memory Plugin: "plugin"
Generic Python Project: "generic"
default: plugin
project_slug:
type: str
help: |
> project_slug:
>
{% if project_type == 'plugin' -%}
> Will be used as part of the package name.
>
> Example: You enter 'awesome' and the name will be 'cmem-plugin-awesome'.
{%- else -%}
> Will be used as package name.
{%- endif %}
>
default: awesome
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 or dashes all lowercase.
{% endif %}
package_name:
type: str
when: false
default: |-
{% if project_type == 'plugin' -%}
cmem-plugin-{{ project_slug }}
{%- else -%}
{{ project_slug }}
{%- endif %}
package_dir:
type: str
when: false
default: |-
{% if project_type == 'plugin' -%}
cmem_plugin_{{ project_slug | replace("-", "_") }}
{%- else -%}
{{ project_slug | replace("-", "_") }}
{%- endif %}
project_description:
type: str
help: |
> project_description:
>
> Will be used as part of the README file and the package info.
>
{% if project_type == 'plugin' -%}
> Use an imperative form to describe what a user can do.
>
> Example descriptions can be listed here:
> https://pypi.org/search/?q=%22cmem-plugin-%22
>
{%- endif %}
default: Create awesome Knowledge Graphs with eccenca Corporate Memory :-)
author_name:
type: str
help: |
> author_name: Will be used as part of the package info.
>
default: eccenca GmbH
author_mail:
type: str
help: |
> author_mail: Will be used as part of the package info.
>
default: cmempy-developer@eccenca.com
github_page:
type: str
default: ""
help: |
> github_page: This URL (e.g. https://github.com/user/repo)
> will be used as a base for icons and the homepage link in
> the project toml. Leave blank if your project is not on github.
>
pypi:
type: bool
default: false
help: |
> pypi: Is your plugin published on pypi.org?
> This information is used to add more badges to the READMEs.
>
_subdirectory: src