From 094ca954f5131868afaf2a8c1df17dd7a73b2dda Mon Sep 17 00:00:00 2001 From: Logan Riggs Date: Wed, 4 Oct 2023 11:23:11 -0700 Subject: [PATCH] DX-83326 Update crossbow to pass in Configuration object to setuptools. --- dev/archery/archery/crossbow/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev/archery/archery/crossbow/core.py b/dev/archery/archery/crossbow/core.py index 3353c30b1a67c..53134af961568 100644 --- a/dev/archery/archery/crossbow/core.py +++ b/dev/archery/archery/crossbow/core.py @@ -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)