Skip to content

Commit

Permalink
Update core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lriggs authored Sep 29, 2023
1 parent b5452d9 commit 9a69ca1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev/archery/archery/crossbow/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,14 @@ 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'] = Config(root=root)

version = parse_git_version(root, **kwargs)
tag = str(version.tag)

Expand Down

0 comments on commit 9a69ca1

Please sign in to comment.