ocebuild.sources.dortania#

Methods for formatting and retrieving Dortania source URLs.

Module Contents#

Functions#

is_latest_build(→ bool)

Checks if the cached build catalog is latest.

has_build(→ bool)

Checks if a plugin has a build.

get_latest_sha(→ str)

Gets the latest build sha for a plugin.

dortania_file_url(→ str)

Formats a Dortania build repo file URL.

dortania_release_url(→ str)

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.has_build(plugin: str) bool[source]#

Checks if a plugin has a build.

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.