MCPcopy Create free account
hub / github.com/apache/arrow / parse_git

Function parse_git

python/pyarrow/__init__.py:45–53  ·  view source on GitHub ↗

Parse function for setuptools_scm that ignores tags for non-C++ subprojects, e.g. apache-arrow-js-XXX tags.

(root, **kwargs)

Source from the content-addressed store, hash-verified

43 # Code duplicated from setup.py to avoid a dependency on each other
44
45 def parse_git(root, **kwargs):
46 """
47 Parse function for setuptools_scm that ignores tags for non-C++
48 subprojects, e.g. apache-arrow-js-XXX tags.
49 """
50 from setuptools_scm.git import parse
51 kwargs['describe_command'] = \
52 "git describe --dirty --tags --long --match 'apache-arrow-[0-9]*.*'"
53 return parse(root, **kwargs)
54 __version__ = setuptools_scm.get_version('../',
55 parse=parse_git)
56 except ImportError:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected