Skip to content

Commit fa2dfbb

Browse files
authored
feat: add source.filter to path source (#53)
See also prefix-dev/rattler-build#1545
1 parent e7e96d9 commit fa2dfbb

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

conda_recipe_v2_schema/model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ class LocalSource(BaseSource):
138138
None,
139139
description="A file name to rename the file to (does not apply to archives).",
140140
)
141+
filter: Glob = Field(
142+
None, description="Glob patterns to include or exclude files from the package."
143+
)
141144

142145

143146
Source = UrlSource | GitSource | LocalSource

schema.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,6 +2246,37 @@
22462246
"default": null,
22472247
"description": "A file name to rename the file to (does not apply to archives).",
22482248
"title": "File Name"
2249+
},
2250+
"filter": {
2251+
"anyOf": [
2252+
{
2253+
"minLength": 1,
2254+
"type": "string"
2255+
},
2256+
{
2257+
"$ref": "#/$defs/IfStatement"
2258+
},
2259+
{
2260+
"items": {
2261+
"anyOf": [
2262+
{
2263+
"minLength": 1,
2264+
"type": "string"
2265+
},
2266+
{
2267+
"$ref": "#/$defs/IfStatement"
2268+
}
2269+
]
2270+
},
2271+
"type": "array"
2272+
},
2273+
{
2274+
"$ref": "#/$defs/GlobDict"
2275+
}
2276+
],
2277+
"default": null,
2278+
"description": "Glob patterns to include or exclude files from the package.",
2279+
"title": "Filter"
22492280
}
22502281
},
22512282
"required": [

0 commit comments

Comments
 (0)