Skip to main content

Module version_files

Module version_files 

Source

Traits§

VersionFileHandler
Trait encapsulating detection, bumping, workspace discovery, and lock file association for a single ecosystem (Cargo, npm, Python, etc.).

Functions§

all_handlers
Return all known version-file handlers.
bump_version_file
Bump the version field in the given manifest file.
detect_version_files
Auto-detect version files in a directory. Returns relative paths (relative to dir) for every manifest whose ecosystem is detected.
discover_lock_files
Given a list of bumped manifest paths, discover associated lock files that exist on disk. Searches the manifest’s directory and ancestors (for monorepo roots). Returns deduplicated paths.
is_supported_version_file
Returns true if the given filename is a supported version file.