Skip to content
rlsbl.member_context
On this page

Shared resolution of a member package's effective config and targets, merging releasable-level and per-package overrides for release pipelines and hooks.

#rlsbl.member_context

#rlsbl.member_context

Shared resolution of a member package's effective config and targets, merging releasable-level and per-package overrides for release pipelines and hooks.

In explicit releasable mode, a member package's effective configuration is the releasable-level config.json merged with the per-package config.json (per-package wins), and target detection must use the same inheritance so releasable-level publish_mode / targets apply to members that don't set them. This module is the single source of truth for that resolution -- every code path that decides whether a member is published (version sync, companion tags, workspace checks, primary path resolution) must go through it so they all agree on the member set.

Kept dependency-light (only rlsbl.config and rlsbl.targets, both imported lazily) so it is importable from both rlsbl.checks. and rlsbl.commands.release. without circular imports.

#MemberContext

A member package's effective (releasable-inherited) config and targets.

targets is computed lazily: detect_targets() can raise ConfigError (config file present but no targets key anywhere), and consumers that skip publish-suppressed members must be able to check publish_mode without triggering target detection.

#publish_mode

python
def publish_mode(self) -> str

The member's effective publish_mode (one of "ci" / "none").

Required-read: raises :class:ConfigError when the key is absent or invalid (with releasable-level inheritance already applied). Consumers derive the old boolean via publish_mode == "none".

#targets

python
def targets(self) -> list

Detected targets (list of TargetEntry), with releasable inheritance.

#target_paths

python
def target_paths(self) -> dict

Dict mapping target name -> resolved directory path.

#pipelines

python
def pipelines(self) -> dict

Loaded publish pipelines (name -> pipeline), from the merged config.

Each pipeline carries an explicit target link (Phase 6.1): a target name, or None for a target-less publisher (deploy). Empty dict when the config declares no pipelines.

#resolved_targets

python
def resolved_targets(self) -> list

List of :class:ResolvedTarget, one per (target, linked pipeline).

Pipeline-less targets resolve with pipeline=None; a target served by multiple pipelines produces one record per pipeline (the release flow publishes per pipeline). Target-less pipelines are excluded -- see :attr:deploy_pipelines.

When this context was created with a primary_name (the release file's include[0]), exactly one record is marked primary=True. Non-release contexts (version sync, workspace checks) pass no primary and leave every record unmarked.

#deploy_pipelines

python
def deploy_pipelines(self) -> list

Target-less publishers (target: null), in config order.

These are deploys (e.g. a docs/site publish), not release targets, so they are surfaced separately -- never faked into a ResolvedTarget.

#resolve_member_context

python
def resolve_member_context(member_dir, releasable_config_dir=None, primary_name=None) -> MemberContext

Resolve a member directory's effective merged config and detected targets.

Args:

  • member_dir: path to the member package directory.
  • releasable_config_dir: optional path to the releasable's state

directory (e.g. .rlsbl-monorepo/releasables/<name>/) for config inheritance. None for standalone projects.

  • primary_name: optional primary/registry target name (the release

file's include[0]); when given, resolved_targets marks the matching record primary=True. None outside the release flow.

More tools from this site

  • claudestream Drive Claude Code from Python: run it as a subprocess and read its output as typed events, with async and sync sessions, sandbox policies, and tools you define in Python
  • claudewheel A TUI Claude Code Launcher that lets you have more than one profile, manage sessions lifecycle, pick the exact CC version, model to use (even older unlisted ones), pick which GitHub account to use, etc.
  • dirstat Fast, single-binary directory statistics CLI: every file under a tree grouped by format, with counts, sizes, and lines of code, as a colored terminal table or as JSON
  • fastware A batteries-included ASGI framework: msgspec JSON, a managed Granian server, dependency injection, SSE, WebSockets, auth, and a test client
  • go-toml-edit Zero-dep TOML editing library for Go with comment preservation
  • howmuchleft The fastest Claude Code statusline: context window, 5-hour, and weekly limit usage as three customizable gradient bars, rendering in about 6 ms
  • orxtra
  • pgdesign
  • predraw Declarative rendering pipeline: describe a scene in JSON and get SVG, PNG and WebP out, with light and dark style tokens, reusable components and text converted to path outlines
  • reposummary Turn a git repository's history into a Markdown journal: pick a time window or revision range and get a readable digest of what changed, optionally narrated by an LLM
  • safegit git wrapper CLI that gives each commit its own temporary index and retries ref updates on conflict, so concurrent agents share one repository
  • saferm Command-line replacement for rm that archives every deletion with a mandatory reason and the context it ran in, so deleted files can be listed, inspected and restored
  • selfdoc Static Site Generator that builds a project's documentation site directly from its source code, so the docs can never drift from the code they describe, with SEO/AEO, first-class blog, search, and cross-project linking built in
  • strictcli
  • stricttest An always-on test-isolation floor: a pytest plugin and a Go env-hygiene module that make a test suite structurally unable to reach real credentials, the real HOME, the network, or the development repository.
  • wesktop A Python framework that turns an ASGI web app into a desktop application, serving it from a local Granian server and displaying it in a native OS window via pywebview
Search