ocebuild.sources.dortania
#
Methods for formatting and retrieving Dortania source URLs.
Module Contents#
Functions#
|
Checks if the cached build catalog is latest. |
|
Checks if a plugin has a build. |
|
Gets the latest build sha for a plugin. |
|
Formats a Dortania build repo file URL. |
|
Formats a Dortania build release URL. |
- ocebuild.sources.dortania.is_latest_build() bool [source]#
Checks if the cached build catalog is latest.
- ocebuild.sources.dortania.get_latest_sha(plugin: str) str [source]#
Gets the latest build sha for a plugin.
- ocebuild.sources.dortania.dortania_file_url(filepath: str) str [source]#
Formats a Dortania build repo file URL.
- Parameters:
file – The remote filepath of the file.
- Returns:
The formatted Dortania build repo file URL.
- ocebuild.sources.dortania.dortania_release_url(plugin: str, commit: str | None = None) str [source]#
Formats a Dortania build release URL.
- Parameters:
plugin – The plugin to get the release URL for.
commit – The commit to get the release URL for. Defaults to the latest build.
- Returns:
The formatted Dortania build release URL.