Skip to content

Commit

Permalink
DX-83326 Update crossbow to pass in Configuration object to setuptools.
Browse files Browse the repository at this point in the history
  • Loading branch information
lriggs committed Oct 4, 2023
1 parent 4b929d7 commit 094ca95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/archery/archery/crossbow/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,11 +740,13 @@ def get_version(root, **kwargs):
subprojects, e.g. apache-arrow-js-XXX tags.
"""
from setuptools_scm.git import parse as parse_git_version
from setuptools_scm import Configuration

# query the calculated version based on the git tags
kwargs['describe_command'] = (
'git describe --dirty --tags --long --match "apache-arrow-[0-9]*.*"'
)
kwargs['config'] = Configuration(root=root)
version = parse_git_version(root, **kwargs)
tag = str(version.tag)

Expand Down

0 comments on commit 094ca95

Please sign in to comment.