Parse function for setuptools_scm that ignores tags for non-C++ subprojects, e.g. apache-arrow-js-XXX tags.
(root, **kwargs)
| 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: |
nothing calls this directly
no outgoing calls
no test coverage detected