Skip to content

Commit ca491cd

Browse files
authored
fix: fix some typos and add new python site-packages-location field (#44)
1 parent 7c25a13 commit ca491cd

File tree

2 files changed

+30
-8
lines changed

2 files changed

+30
-8
lines changed

conda_recipe_v2_schema/model.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class BaseSource(StrictBaseModel):
9292
class UrlSource(BaseSource):
9393
url: NonEmptyStr | list[NonEmptyStr] = Field(
9494
...,
95-
description="Rrl pointing to the source tar.gz|zip|tar.bz2|... (this can be a list of mirrors that point to the same file)",
95+
description="Url pointing to the source tar.gz|zip|tar.bz2|... (this can be a list of mirrors that point to the same file)",
9696
)
9797
sha256: SHA256Str | None = Field(None, description="The SHA256 hash of the source archive")
9898
md5: MD5Str | None = Field(None, description="The MD5 hash of the source archive")
@@ -311,6 +311,11 @@ class Python(StrictBaseModel):
311311

312312
disable_pip: bool | JinjaExpr = Field(default=False)
313313

314+
site_packages_path: str | JinjaExpr | None = Field(
315+
default=None,
316+
description="The path to the site-packages folder. This is advertised by Python to install noarch packages in the correct location. Only valid for a Python package.",
317+
)
318+
314319

315320
class PrefixDetection(StrictBaseModel):
316321
force_file_type: ForceFileType | None = Field(
@@ -320,7 +325,7 @@ class PrefixDetection(StrictBaseModel):
320325
default=False, description="Ignore all or specific files for prefix replacement"
321326
)
322327
ignore_binary_files: bool | JinjaExpr | ConditionalList[PathNoBackslash] = Field(
323-
default=False, description="Wether to detect binary files with prefix or not"
328+
default=False, description="Whether to detect binary files with prefix or not"
324329
)
325330

326331

@@ -335,7 +340,7 @@ class DynamicLinking(StrictBaseModel):
335340
)
336341
binary_relocation: bool | JinjaExpr | ConditionalList[Glob] = Field(
337342
default=True,
338-
description="Wether to relocate binaries or not. If this is a list of paths then only the listed paths are relocated",
343+
description="Whether to relocate binaries or not. If this is a list of paths then only the listed paths are relocated",
339344
)
340345
missing_dso_allowlist: ConditionalList[Glob] = Field(
341346
default=[],
@@ -529,7 +534,7 @@ class About(StrictBaseModel):
529534
summary: str | None = Field(None, description="A short description of the package.")
530535
description: str | DescriptionFile | None = Field(
531536
None,
532-
description="Extented description of the package or a file (usually a README).",
537+
description="Extended description of the package or a file (usually a README).",
533538
)
534539

535540
prelink_message: str | None = None

schema.json

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
}
132132
],
133133
"default": null,
134-
"description": "Extented description of the package or a file (usually a README).",
134+
"description": "Extended description of the package or a file (usually a README).",
135135
"title": "Description"
136136
},
137137
"prelink_message": {
@@ -977,7 +977,7 @@
977977
}
978978
],
979979
"default": true,
980-
"description": "Wether to relocate binaries or not. If this is a list of paths then only the listed paths are relocated",
980+
"description": "Whether to relocate binaries or not. If this is a list of paths then only the listed paths are relocated",
981981
"title": "Binary Relocation"
982982
},
983983
"missing_dso_allowlist": {
@@ -2950,7 +2950,7 @@
29502950
}
29512951
],
29522952
"default": false,
2953-
"description": "Wether to detect binary files with prefix or not",
2953+
"description": "Whether to detect binary files with prefix or not",
29542954
"title": "Ignore Binary Files"
29552955
}
29562956
},
@@ -3086,6 +3086,23 @@
30863086
],
30873087
"default": false,
30883088
"title": "Disable Pip"
3089+
},
3090+
"site_packages_path": {
3091+
"anyOf": [
3092+
{
3093+
"type": "string"
3094+
},
3095+
{
3096+
"pattern": "\\$\\{\\{.*\\}\\}",
3097+
"type": "string"
3098+
},
3099+
{
3100+
"type": "null"
3101+
}
3102+
],
3103+
"default": null,
3104+
"description": "The path to the site-packages folder. This is advertised by Python to install noarch packages in the correct location. Only valid for a Python package.",
3105+
"title": "Site Packages Path"
30893106
}
30903107
},
30913108
"title": "Python",
@@ -3963,7 +3980,7 @@
39633980
"type": "array"
39643981
}
39653982
],
3966-
"description": "Rrl pointing to the source tar.gz|zip|tar.bz2|... (this can be a list of mirrors that point to the same file)",
3983+
"description": "Url pointing to the source tar.gz|zip|tar.bz2|... (this can be a list of mirrors that point to the same file)",
39673984
"title": "Url"
39683985
},
39693986
"sha256": {

0 commit comments

Comments
 (0)