Apache DataFusion SQL Query Engine
ARROW-9014: [Packaging] Bump the minor part of the automatically generated version in crossbow
Krisztián Szűcs0b1b5279d705
diff --git a/dev/tasks/crossbow.py b/dev/tasks/crossbow.pyindex a657a8d09e..adabe66daa 100755--- a/dev/tasks/crossbow.py+++ b/dev/tasks/crossbow.py@@ -700,13 +700,23 @@ 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.version import guess_next_version+ # query the calculated version based on the git tagskwargs['describe_command'] = ('git describe --dirty --tags --long --match "apache-arrow-[0-9].*"')version = parse_git_version(root, **kwargs)- return version.format_next_version(guess_next_version)++ # increment the minor version, because there can be patch releases created+ # from maintenance branches where the tags are unreachable from the+ # master's HEAD, so the git command above generates 0.17.0.dev300 even if+ # arrow has a never 0.17.1 patch release+ pattern = r"^(\d+)\.(\d+)\.(\d+)$"+ match = re.match(pattern, str(version.tag))+ major, minor, patch = map(int, match.groups())++ # the bumped version number after 0.17.x will be 0.18.0.dev300+ return "{}.{}.{}.dev{}".format(major, minor + 1, patch, version.distance)class Serializable: