🔗 dependencies#

Checks the versions of dependencies and sets up the load sequence.

check_version(
lib_ns: str,
data: JsonDict,
run_command: str,
) → str[source]#

Check version compatibility for a dependency.

Parameters:
  • lib_ns – The namespace of the library to check

  • data – The dependency data containing version info

  • run_command – The command to run if version check fails

Returns:

The version check commands

Return type:

str

beet_default(ctx: Context) → None[source]#

Main entry point for the dependencies plugin. This plugin handles dependency management, version checking, and load sequence setup.

Parameters:

ctx – The beet context.

detect_libraries(ns: str) → None[source]#

Mark as used every official library whose marker a function of the pack holds, reported in marker declaration order.

write_lantern_load(
ns: str,
dependencies: list[tuple[str, JsonDict]],
) → None[source]#

Set Lantern Load up, the pack’s load tag enumerating its dependencies’ load tags first.

write_secondary(ns: str, has_dependencies: bool) → None[source]#

Write the secondary load function: the pack’s score, the debug tag of its authors, then the dependency checks or the load.

Run the tick function only once loaded, link the smart_ore_generation signals, and list the libraries in use.

write_dependency_checks(
ns: str,
dependencies: list[tuple[str, JsonDict]],
) → None[source]#

Write the functions checking each dependency’s version, then the game version once a player gives it, before loading.

minimum_minecraft_version() → str[source]#

The oldest Minecraft version the pack supports, the lowest release of mc_supports when below the project’s version.

The latest known version when the project sets none.

silent#