DUNAMAI(1)
π NAME π
okay so bestie, meet dunamai β that's dunamai from bazaar β and it's a User Command, section 1, no cap. it's giving "generate me a version string from my Bazaar repo" and honestly? obsessed. π¦
β¨ DESCRIPTION β¨
here's the vibe, fr fr β this is how you call it:
usage: dunamai from bazaar [-h] [--metadata] [--no-metadata] [--dirty] [--tagged-metadata] [--pattern PATTERN] [--pattern-prefix PATTERN_PREFIX] [--format FORMAT] [--style {pep440,semver,pvp}] [--latest-tag] [--highest-tag] [--strict] [--path PATH] [--debug] [--bump] [--commit-length COMMIT_LENGTH] [--commit-prefix COMMIT_PREFIX] [--escape-with ESCAPE_WITH]
and what does it do? Generate version from Bazaar π that's the whole main character job. periodt.
π options π
-h,--helpβ shows this help message and dips. classic. π--metadataβ always include metadata. lowkey gets ignored when--formatis used (default: None)--no-metadataβ never include metadata. also ignored when--formatis used (default: None)--dirtyβ include the dirty flag if it applies to you. ignored when--formatis used (default: False)--tagged-metadataβ include tagged metadata if applicable. ignored when--formatis used (default: False)--pattern PATTERNβ a regular expression that gets matched against the version source. β¨ it must contain one capture group namedbasethat corresponds to the release segment of the source. optionally it can have another two groups namedstageandrevisionβ those correspond to a prerelease type (like'alpha'or'rc') and number (like in'alpha-2'or'rc3'). it may also contain a group namedtagged_metadatafor extra metadata after the main part of the version (typically after a plus sign). and there may also be a group namedepochfor the PEP 440 concept. if thebasegroup is not present, then instead this gets interpreted as a named preset, which may be one of these:default,default-unprefixed(default:
(?x) (?# ignore whitespace)
^v((?P<epoch>\d+)!)?(?P<base>\d+(\.\d+)*) (?# v1.2.3 or
v1!2000.1.2) ([-._]?((?P<stage>[a-zA-Z]+)[-
._]?(?P<revision>\d+)?))? (?# b0) (\+(?P<tagged_metadata>.+))?$
(?# +linux)
)
--pattern-prefix PATTERN_PREFIXβ insert this after the pattern's start anchor (^). (default: None)--format FORMATβ custom output format, your own little remix π΅ available substitutions:{base},{stage},{revision},{distance},{commit},{dirty},{tagged_metadata},{epoch},{branch},{branch_escaped},{timestamp},{major},{minor},{patch}(default: None)--style {pep440,semver,pvp}β a preconfigured output format, so you don't gotta build it yourself. it'll default to PEP 440 if nothing's set and you didn't give a custom format. if you specify both a style and a custom format, then the format gets validated against the style's rules (default: None) π--latest-tagβ only inspect the latest tag on the latest tagged commit for a pattern match (default: False)--highest-tagβ only inspect the numerically highest tag across all tagged commits for a pattern match (default: False)--strictβ elevate warnings to errors. when there are no tags, fail instead of falling back to0.0.0(default: False). no chill mode, and honestly valid.--path PATHβ directory to inspect, if it's not the current working directory (default: None)--debugβ display additional information on stderr for troubleshooting (default: False) π§--bumpβ increment the last part of the versionbaseby 1, unless thestageis set, in which case increment therevisionby 1 or set it to a default of 2 if there was norevision. does nothing when on a commit with a version tag. (default: False) π₯--commit-length COMMIT_LENGTHβ use this many characters from the start of the full commit hash (default: None)--commit-prefix COMMIT_PREFIXβ add this prefix when serializing commit IDs (default: None)--escape-with ESCAPE_WITHβ when escaping, replace with this substitution. the default is simply to remove invalid characters. (default: None) π
π«Ά that's literally everything, bestie β every flag, every default, every regex group. go generate some versions.
and that's a wrap on dunamai from bazaar 1.26.2, dated August 2026 β bye pookie, slay the build pipeline π
β¨
π¦ where this page comes from
- fedora 43: python3-dunamai 1.26.2-1.fc43 Β· MIT
- fedora 44: python3-dunamai 1.26.2-1.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms