From f2dbe77d1b320a54afc3c618ec3cb1879bd0d517 Mon Sep 17 00:00:00 2001 From: lriggs Date: Wed, 4 Oct 2023 12:00:07 -0700 Subject: [PATCH] DX-83326 Update crossbow to pass in Configuration object to setuptools. (#53) --- 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)