From d0e7d07dfdcbf5382932292e512d7b9013b29cb6 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Wed, 16 Oct 2024 18:39:30 +0900 Subject: [PATCH] GH-44389: [Java][Integration][Release] Use Python 3.12 for verify-rc-source-integration-linux-conda-latest-amd64 (#44395) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Rationale for this change Because JPype doesn't support Python 3.13 yet. See also: * GH-44389 * https://discuss.python.org/t/api-for-python-3-13-prevents-use-of-3rd-party-gc-allocators/62709/5 ### What changes are included in this PR? Pin Python 3.12. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: #44389 Lead-authored-by: Raúl Cumplido Co-authored-by: Sutou Kouhei Signed-off-by: Raúl Cumplido --- dev/tasks/verify-rc/github.linux.amd64.docker.yml | 9 +++++++++ dev/tasks/verify-rc/github.macos.yml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dev/tasks/verify-rc/github.linux.amd64.docker.yml b/dev/tasks/verify-rc/github.linux.amd64.docker.yml index f2c0673314826..97eecd2d28977 100644 --- a/dev/tasks/verify-rc/github.linux.amd64.docker.yml +++ b/dev/tasks/verify-rc/github.linux.amd64.docker.yml @@ -41,6 +41,15 @@ jobs: {% if distro == 'almalinux' and target|upper == 'PYTHON' %} -e ARROW_GANDIVA=OFF \ {% endif %} + {% if distro == "conda" and target == "integration" %} + {# JPype doesn't work with Python 3.13. + # See also: + # * https://discuss.python.org/t/api-for-python-3-13-prevents-use-of-3rd-party-gc-allocators/62709/5 + # * GH-44386 + # * GH-44389 + #} + -e PYTHON_VERSION="3.12" \ + {% endif %} -e VERIFY_RC="{{ rc|default("") }}" \ -e TEST_DEFAULT=0 \ -e TEST_{{ target|upper }}=1 \ diff --git a/dev/tasks/verify-rc/github.macos.yml b/dev/tasks/verify-rc/github.macos.yml index 37a3e6f3fd517..e0272e8f4e321 100644 --- a/dev/tasks/verify-rc/github.macos.yml +++ b/dev/tasks/verify-rc/github.macos.yml @@ -65,7 +65,6 @@ jobs: TEST_DEFAULT: 0 TEST_{{ target|upper }}: 1 {% if use_conda %} - USE_CONDA: 1 {% if target == "integration" %} # JPype doesn't work with Python 3.13. # See also: @@ -74,6 +73,7 @@ jobs: # * GH-44389 PYTHON_VERSION: "3.12" {% endif %} + USE_CONDA: 1 {% endif %} run: | arrow/dev/release/verify-release-candidate.sh {{ release|default("") }} {{ rc|default("") }}