This is an automated email from the ASF dual-hosted git repository.

areeve pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-dotnet.git


The following commit(s) were added to refs/heads/main by this push:
     new 93af89f  chore: Pin Python version to 3.13 as PythonNet doesn't yet 
support 3.14 (#271)
93af89f is described below

commit 93af89f6526d5cccfa75f36af85cff9ba8146b01
Author: Adam Reeve <[email protected]>
AuthorDate: Mon Feb 23 17:31:02 2026 +1300

    chore: Pin Python version to 3.13 as PythonNet doesn't yet support 3.14 
(#271)
    
    Pin the Python version to 3.13 in CI to keep the C Data Interface tests 
working without skipping them.
---
 .github/workflows/rc.yaml                            | 2 +-
 .github/workflows/test.yaml                          | 2 +-
 test/Apache.Arrow.Tests/CDataInterfacePythonTests.cs | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/rc.yaml b/.github/workflows/rc.yaml
index 810ab2c..11df6d7 100644
--- a/.github/workflows/rc.yaml
+++ b/.github/workflows/rc.yaml
@@ -156,7 +156,7 @@ jobs:
       - name: Setup Python
         uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # 
v6.2.0
         with:
-          python-version: 3
+          python-version: 3.13  # PythonNet isn't compatible with 3.14 yet 
(https://github.com/pythonnet/pythonnet/issues/2610)
       - name: Download
         uses: 
actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
         with:
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 6921588..c630334 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -74,7 +74,7 @@ jobs:
       - name: Setup Python
         uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # 
v6.2.0
         with:
-          python-version: 3
+          python-version: 3.13  # PythonNet isn't compatible with 3.14 yet 
(https://github.com/pythonnet/pythonnet/issues/2610)
       - name: Checkout
         uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 
v6.0.2
       - name: Build
diff --git a/test/Apache.Arrow.Tests/CDataInterfacePythonTests.cs 
b/test/Apache.Arrow.Tests/CDataInterfacePythonTests.cs
index ebd89cc..4276061 100644
--- a/test/Apache.Arrow.Tests/CDataInterfacePythonTests.cs
+++ b/test/Apache.Arrow.Tests/CDataInterfacePythonTests.cs
@@ -79,16 +79,16 @@ namespace Apache.Arrow.Tests
         {
             if (!pythonNet.Initialized)
             {
-                Skip.If(pythonNet.VersionMismatch, "VM has incompatible 
version of Python installed; skipping C Data Interface tests.");
+                var errorReason = pythonNet.VersionMismatch ? "Python version 
is incompatible with PythonNet" : "PYTHONNET_PYDLL not set";
 
                 bool inCIJob = 
Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true";
                 bool inVerificationJob = 
Environment.GetEnvironmentVariable("TEST_CSHARP") == "1";
 
                 // Skip these tests if this is not in CI or is a verification 
job and PythonNet couldn't be initialized
-                Skip.If(inVerificationJob || !inCIJob, "PYTHONNET_PYDLL not 
set; skipping C Data Interface tests.");
+                Skip.If(inVerificationJob || !inCIJob, $"{errorReason}; 
skipping C Data Interface tests.");
 
                 // Otherwise throw
-                throw new Exception("PYTHONNET_PYDLL not set; cannot run C 
Data Interface tests.");
+                throw new Exception($"{errorReason}; cannot run C Data 
Interface tests.");
             }
         }
 

Reply via email to