forked from mamba-org/boa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecipe.v1.json
168 lines (167 loc) · 5.01 KB
/
recipe.v1.json
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/*
initial, non complete spec...
*/
{
"$id": "https://mamba.pm/boa/recipe.v1.schema.json",
"title": "Boa Recipe V1",
"type": "object",
"additionalProperties": false,
"properties": {
"context": {
"type": "object",
"description": "The recipe context."
},
"package": {
"type": "object",
"description": "The package name and version.",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "The package name"
},
"version": {
"type": "string",
"description": "The package version"
}
}
},
"source": {
"type": "array",
"description": "The package name and version.",
"additionalProperties": false,
"items": [
{
"type": "object",
"properties": {
"url": {"type": "string"},
"sha256": {"type": "string"},
"md5": {"type": "string"},
"sha1": {"type": "string"},
"patches": {"type": "array", "items": {"type": "string"}}
}
}
]
},
"outputs": {
"type": "array",
"items": { "$ref": "#/definitions/output" }
},
"features": {
"type": "array"
},
"extra": {
"type": "object"
},
"build": {
"type": "object"
},
"about": {
"type": "object"
}
},
"definitions": {
"build": {
"type": "object",
"required": ["number"],
// 'build/script': list,
// 'build/script_env': list,
// 'build/run_exports': list,
// 'build/track_features': list,
// 'build/osx_is_app': bool,
// 'build/preserve_egg_dir': bool,
// 'build/binary_relocation': bool,
// 'build/noarch': text_type,
// 'build/noarch_python': bool,
// 'build/detect_binary_files_with_prefix': bool,
// 'build/skip': bool,
// 'build/skip_compile_pyc': list,
// 'build/preferred_env': text_type,
// 'build/preferred_env_executable_paths': list,
// 'build/ignore_run_exports': list,
// 'build/ignore_run_exports_from': list,
// 'build/requires_features': dict,
// 'build/provides_features': dict,
// 'build/pre-link': text_type,
// 'build/post-link': text_type,
// 'build/pre-unlink': text_type,
// 'build/string': text_type,
// 'build/pin_depends': text_type,
// 'build/force_use_keys': list,
// 'build/force_ignore_keys': list,
// 'build/merge_build_host': bool,
// 'build/msvc_compiler': text_type,
"properties": {
"number": {"type": "integer", "minimum": 0},
"string": {"type": "string"},
"run_exports": {"type": "object"},
"skip": {"type": "array", "items": {"type": "string"}},
"noarch": {"type": "string"},
"pre-link": {"type": "string"},
"post-link": {"type": "string"},
"pre-unlink": {"type": "string"},
"ignore_run_exports": {"type": "array", "items": {"type": "string"}},
"ignore_run_exports_from": {"type": "array", "items": {"type": "string"}},
}
},
"output": {
"type": "object",
"required": [ "package" ],
"properties": {
"package": {
"type": "object",
"description": "The package name.",
"required": [ "name" ],
"properties": {
"name": {"type": "string"},
"version": {"type": "string"},
}
},
"build": {
"type": "object",
},
"requirements": {
"type": "object",
"properties": {
"build": {"type": "array", "items": {"type": "string"}},
"host": {"type": "array", "items": {"type": "string"}},
"run": {"type": "array", "items": {"type": "string"}},
"run_constrained": {"type": "array", "items": {"type": "string"}},
}
},
"test": { "$ref": "#/definitions/test" }
}
},
"test": {
"type": "object",
"required": [],
"properties": {
"files": {
"type": "array",
"description": "Test files that are copied from the recipe into the temporary test directory and are needed during testing.",
"items": {"type": "string"}
},
"source_files": {
"type": "array",
"description": "Test files that are copied from the source work directory into the temporary test directory and are needed during testing.",
"items": {"type": "string"}
},
"requires": {
"type": "array",
"description": "In addition to the runtime requirements, you can specify requirements needed during testing.",
"items": {"type": "string"}
},
"imports": {
"type": "array",
"description": "Test importing modules.",
"items": {"type": "string"}
},
"commands": {
"type": "array",
"description": "The test commands to execute.",
"items": {"type": "string"}
},
}
}
}
}