diff --git a/conda_recipe_v2_schema/model.py b/conda_recipe_v2_schema/model.py index 9be6983..081b824 100644 --- a/conda_recipe_v2_schema/model.py +++ b/conda_recipe_v2_schema/model.py @@ -92,7 +92,7 @@ class BaseSource(StrictBaseModel): class UrlSource(BaseSource): url: NonEmptyStr | list[NonEmptyStr] = Field( ..., - description="Rrl pointing to the source tar.gz|zip|tar.bz2|... (this can be a list of mirrors that point to the same file)", + description="Url pointing to the source tar.gz|zip|tar.bz2|... (this can be a list of mirrors that point to the same file)", ) sha256: SHA256Str | None = Field(None, description="The SHA256 hash of the source archive") md5: MD5Str | None = Field(None, description="The MD5 hash of the source archive") @@ -311,6 +311,11 @@ class Python(StrictBaseModel): disable_pip: bool | JinjaExpr = Field(default=False) + site_packages_path: str | JinjaExpr | None = Field( + default=None, + 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.", + ) + class PrefixDetection(StrictBaseModel): force_file_type: ForceFileType | None = Field( @@ -320,7 +325,7 @@ class PrefixDetection(StrictBaseModel): default=False, description="Ignore all or specific files for prefix replacement" ) ignore_binary_files: bool | JinjaExpr | ConditionalList[PathNoBackslash] = Field( - default=False, description="Wether to detect binary files with prefix or not" + default=False, description="Whether to detect binary files with prefix or not" ) @@ -335,7 +340,7 @@ class DynamicLinking(StrictBaseModel): ) binary_relocation: bool | JinjaExpr | ConditionalList[Glob] = Field( default=True, - description="Wether to relocate binaries or not. If this is a list of paths then only the listed paths are relocated", + description="Whether to relocate binaries or not. If this is a list of paths then only the listed paths are relocated", ) missing_dso_allowlist: ConditionalList[Glob] = Field( default=[], @@ -529,7 +534,7 @@ class About(StrictBaseModel): summary: str | None = Field(None, description="A short description of the package.") description: str | DescriptionFile | None = Field( None, - description="Extented description of the package or a file (usually a README).", + description="Extended description of the package or a file (usually a README).", ) prelink_message: str | None = None diff --git a/schema.json b/schema.json index 272934d..e10ecd4 100644 --- a/schema.json +++ b/schema.json @@ -131,7 +131,7 @@ } ], "default": null, - "description": "Extented description of the package or a file (usually a README).", + "description": "Extended description of the package or a file (usually a README).", "title": "Description" }, "prelink_message": { @@ -977,7 +977,7 @@ } ], "default": true, - "description": "Wether to relocate binaries or not. If this is a list of paths then only the listed paths are relocated", + "description": "Whether to relocate binaries or not. If this is a list of paths then only the listed paths are relocated", "title": "Binary Relocation" }, "missing_dso_allowlist": { @@ -2950,7 +2950,7 @@ } ], "default": false, - "description": "Wether to detect binary files with prefix or not", + "description": "Whether to detect binary files with prefix or not", "title": "Ignore Binary Files" } }, @@ -3086,6 +3086,23 @@ ], "default": false, "title": "Disable Pip" + }, + "site_packages_path": { + "anyOf": [ + { + "type": "string" + }, + { + "pattern": "\\$\\{\\{.*\\}\\}", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "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.", + "title": "Site Packages Path" } }, "title": "Python", @@ -3963,7 +3980,7 @@ "type": "array" } ], - "description": "Rrl pointing to the source tar.gz|zip|tar.bz2|... (this can be a list of mirrors that point to the same file)", + "description": "Url pointing to the source tar.gz|zip|tar.bz2|... (this can be a list of mirrors that point to the same file)", "title": "Url" }, "sha256": {