Module Import alias Import alias Import alias Assign NameStore TupleLoad Str Assign NameStore TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareNotIn Str NameLoad body Return NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Str attr ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore ListLoad Str Str Str CompareIn NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad Return Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad TryExcept body Assign NameStore ListLoad Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad Return Call NameLoad Call NameLoad NameLoad decorator_list
N/A N/A os N/A re N/A subprocess N/A __all__ N/A get_version N/A VERSION_FMT N/A N/A N/A re compile v(?P<tag>\d+\.\d+\.\d+) N/A N/A re compile (?P<commits>\d+) N/A N/A re compile (?P<sha>g[0-9a-f]{7}) N/A N/A re compile (?P<dirty>dirty) N/A VERSION_UNKNOWN 0+unknown parse_version N/A N/A ver N/A N/A N/A Parse a `git describe` version into a dictionary. N/A ver_parts N/A N/A ver split - N/A ver_dict N/A N/A N/A patt part N/A zip VERSION_FMT ver_parts N/A N/A match N/A N/A re match patt part N/A N/A match None N/A N/A N/A N/A ver_dict update N/A N/A match groupdict N/A ver_dict N/A pep440_version N/A N/A ver_dict N/A N/A N/A Convert a version dictionary into a PEP440 version. N/A N/A tag ver_dict N/A N/A VERSION_UNKNOWN N/A tag N/A ver_dict N/A tag N/A local N/A N/A . join N/A N/A ver_dict N/A x N/A x N/A commits sha dirty N/A x ver_dict N/A N/A local N/A N/A tag N/A N/A N/A {}+{} format tag local N/A get_version N/A N/A N/A N/A N/A Fetch the current version from git, if possible. N/A git_dir N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ ../.git N/A N/A N/A N/A N/A os path isdir git_dir N/A N/A VERSION_UNKNOWN N/A N/A N/A cmd N/A git describe --tags --dirty --always N/A ver N/A N/A subprocess check_output cmd N/A N/A N/A N/A subprocess CalledProcessError N/A N/A VERSION_UNKNOWN N/A N/A pep440_version N/A parse_version ver N/A