You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2025/04/09 00:39:50 UTC
(arrow) branch main updated: GH-46058: [Python] Run Python in AppVeyor outside of source directory (#46059)
This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 02df2db144 GH-46058: [Python] Run Python in AppVeyor outside of source directory (#46059)
02df2db144 is described below
commit 02df2db144d9d705876eba0ab4a51b834af8c820
Author: William Ayd <wi...@icloud.com>
AuthorDate: Tue Apr 8 20:39:44 2025 -0400
GH-46058: [Python] Run Python in AppVeyor outside of source directory (#46059)
### Rationale for this change
Throughout most of CI, the Python pytest invocations are run outside of the source directory. AppVeyor CI is an exception, where tests are invoked directly within the Python source tree.
This works all the same given setuptools performs an in-place build of PyArrow. However, as we look at other build backends, this will need to change. Doing this work up front has no downside, but reduces the diff and troubleshooting that subsequent build backend implementations would need to perform
### What changes are included in this PR?
The AppVeyor CI batch script is modified to invoke pytest outside of the source tree
### Are these changes tested?
Yes
### Are there any user-facing changes?
No
* GitHub Issue: #46058
Authored-by: Will Ayd <wi...@icloud.com>
Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
ci/appveyor-cpp-build.bat | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ci/appveyor-cpp-build.bat b/ci/appveyor-cpp-build.bat
index b1237fc995..eb6a2cb720 100644
--- a/ci/appveyor-cpp-build.bat
+++ b/ci/appveyor-cpp-build.bat
@@ -158,6 +158,6 @@ set PYARROW_TZDATA_PATH=%USERPROFILE%\Downloads\test\tzdata
set AWS_EC2_METADATA_DISABLED=true
set PYTHONDEVMODE=1
-python -m pytest -r sxX --durations=15 pyarrow/tests || exit /B
-
popd
+
+python -m pytest -r sxX --durations=15 --pyargs pyarrow || exit /B