rlsbl
rlsbl: Release orchestration and project scaffolding for npm, PyPI, and Go.
Functions
_detect_version
def _detect_version()
Detect package version, preferring pyproject.toml over installed metadata.
Order: pyproject.toml in the source tree (accurate during editable installs) -> importlib.metadata (works for regular installs) -> "unknown".
detect_registries
def detect_registries()
Detect all registries that have a project file in the current directory.
Returns a list, e.g. ["npm"], ["pypi"], or ["npm", "pypi"].
parse_args
def parse_args(argv)
Parse sys.argv into positional args and flags.
Flags listed in VALUE_FLAGS consume the next token as their value (e.g. --registry npm). All other --flags are boolean.
_get_command_module
def _get_command_module(command)
Import and return the command module for the given command name.