Skip to main content

get_version

Function
This function is defined in the _version module.
Get the version string from pyproject.toml.

Signature

Returns

str
Version string (e.g., “1.6.52”)

Exceptions

If version cannot be found or parsed

Uses

  • Path
  • pyproject_path.exists
  • RuntimeError
  • pyproject_path.read_text
  • re.search
  • match.group
  • warnings.warn

Source

View on GitHub

praisonaiagents/_version.py at line 12