On this page
Base class for release targets with shared defaults for version I/O, detection, scaffolding, publish, asset builds, and dev-install.
#rlsbl.targets.base
#rlsbl.targets.base
Base class for release targets providing shared defaults for version reading, writing, detection, scaffolding, and publish configuration.
#BaseTarget
Concrete base providing defaults for optional Protocol methods.
#version_file
def version_file(self)#tag_format
def tag_format(self, version)#monorepo_tag_format
def monorepo_tag_format(self, name, version, path=None)#monorepo_tag_glob
def monorepo_tag_glob(self, name, path=None)#template_dir
def template_dir(self)#shared_template_dir
def shared_template_dir(self)#read_name
def read_name(self, dir_path)#read_metadata
def read_metadata(self, dir_path)#template_vars
def template_vars(self, dir_path)#template_mappings
def template_mappings(self)#shared_template_mappings
def shared_template_mappings(self)#check_project_exists
def check_project_exists(self, dir_path)#get_project_init_hint
def get_project_init_hint(self)#write_version
def write_version(self, dir_path, version)Write a new version to the target's version file(s).
Returns a list of relative file paths (relative to dir_path) that were modified. Subclasses must override this method and return the actual paths written.
#build
def build(self, dir_path, version)#publish
def publish(self, dir_path, version)#build_assets
def build_assets(self, dir_path, version, dist_dir)#dev_install_command
def dev_install_command(self, project_dir)Specs for local install via rlsbl dev install, keyed by mode.
Subclasses override to return spec dicts for the "global" and/or "venv" modes. See the protocol docstring for the spec format. Default returns {"global": None, "venv": None} (unsupported).