Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions conda_recipe_v2_schema/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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(
Expand All @@ -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"
)


Expand All @@ -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=[],
Expand Down Expand Up @@ -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
Expand Down
25 changes: 21 additions & 4 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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"
}
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down