Skip to content

Apache DataFusion SQL Query Engine

ARROW-4045: [Packaging/Python] Add hypothesis test dependency to wheel crossbow tests

Krisztián Szűcs91034f114c87
diff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txt
index e274d97548..f2e3f164fa 100644
--- a/dev/release/rat_exclude_files.txt
+++ b/dev/release/rat_exclude_files.txt
@@ -130,6 +130,7 @@ python/pyarrow/includes/__init__.pxd
python/pyarrow/tests/__init__.py
python/requirements.txt
python/requirements-test.txt
+python/requirements-wheel.txt
pax_global_header
MANIFEST.in
__init__.pxd
diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh
index 45404b03df..71324ec12f 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -189,7 +189,7 @@ test_and_install_cpp() {
test_python() {
pushd python
- pip install -r requirements-test.txt
+ pip install -r requirements.txt -r requirements-test.txt
python setup.py build_ext --inplace --with-parquet --with-plasma
py.test pyarrow -v --pdb
diff --git a/dev/tasks/python-wheels/appveyor.yml b/dev/tasks/python-wheels/appveyor.yml
index 016041a6c6..c220f922bc 100644
--- a/dev/tasks/python-wheels/appveyor.yml
+++ b/dev/tasks/python-wheels/appveyor.yml
@@ -20,7 +20,7 @@ os: Visual Studio 2015
environment:
ARCH: "64"
GENERATOR: Visual Studio 14 2015 Win64
- NUMPY: "{{ numpy_version }}"
+ NUMPY: "1.14.5"
PYTHON: "{{ python_version }}"
MSVC_DEFAULT_OPTIONS: ON
ARROW_SRC: C:\apache-arrow
diff --git a/dev/tasks/python-wheels/linux-test.sh b/dev/tasks/python-wheels/linux-test.sh
index 163730a9f3..234ce8d561 100755
--- a/dev/tasks/python-wheels/linux-test.sh
+++ b/dev/tasks/python-wheels/linux-test.sh
@@ -30,5 +30,5 @@ python -c "import pyarrow.parquet"
python -c "import pyarrow.plasma"
# Run pyarrow tests
-pip install pytest pandas
+pip install -r /arrow/python/requirements-test.txt
pytest --pyargs pyarrow
diff --git a/dev/tasks/python-wheels/osx-build.sh b/dev/tasks/python-wheels/osx-build.sh
index 5c69904ff4..22c44c1573 100755
--- a/dev/tasks/python-wheels/osx-build.sh
+++ b/dev/tasks/python-wheels/osx-build.sh
@@ -99,9 +99,8 @@ function build_wheel {
# build will also work with newer NumPy versions.
export ARROW_HOME=`pwd`/arrow-dist
export PARQUET_HOME=`pwd`/arrow-dist
- if [ -n "$BUILD_DEPENDS" ]; then
- pip install $(pip_opts) $BUILD_DEPENDS
- fi
+
+ pip install $(pip_opts) -r python/requirements-wheel.txt cython
pushd cpp
mkdir build
@@ -161,10 +160,6 @@ function install_run {
wheelhouse="$PWD/python/dist"
- # Install test dependencies and built wheel
- if [ -n "$TEST_DEPENDS" ]; then
- pip install $(pip_opts) $TEST_DEPENDS
- fi
# Install compatible wheel
pip install $(pip_opts) \
$(python $multibuild_dir/supported_wheels.py $wheelhouse/*.whl)
@@ -179,7 +174,8 @@ function install_run {
python -c "import pyarrow.plasma"
# Run pyarrow tests
- pip install pytest pytest-faulthandler
+ pip install $(pip_opts) -r python/requirements-test.txt
+
py.test --pyargs pyarrow
popd
diff --git a/dev/tasks/python-wheels/travis.linux.yml b/dev/tasks/python-wheels/travis.linux.yml
index 9a8f804d1c..17888ccc9f 100644
--- a/dev/tasks/python-wheels/travis.linux.yml
+++ b/dev/tasks/python-wheels/travis.linux.yml
@@ -42,7 +42,6 @@ script:
- docker run --shm-size=2g
-e SETUPTOOLS_SCM_PRETEND_VERSION={{ arrow.version }}
-e PYTHON_VERSIONS="{{ python_version }},{{ unicode_width }}"
- -e WHEEL_VERSION={{ wheel_version }}
-v $PWD:/io
-v $PWD/../../:/arrow
quay.io/xhochy/arrow_manylinux1_x86_64_base:latest /io/build_arrow.sh
diff --git a/dev/tasks/python-wheels/travis.osx.yml b/dev/tasks/python-wheels/travis.osx.yml
index 2f0d168a3f..c6bd010da4 100644
--- a/dev/tasks/python-wheels/travis.osx.yml
+++ b/dev/tasks/python-wheels/travis.osx.yml
@@ -29,8 +29,6 @@ env:
- PYARROW_VERSION={{ arrow.version }}
- PYARROW_BUILD_VERBOSE=1
- MB_PYTHON_VERSION={{ python_version }}
- - BUILD_DEPENDS="wheel=={{ wheel_version }} numpy=={{ numpy_version }} cython==0.27.3 six"
- - TEST_DEPENDS="numpy=={{ numpy_version }} pandas=={{ pandas_version }} six"
before_install:
- git clone https://github.com/matthew-brett/multibuild # TODO pin it
diff --git a/dev/tasks/python-wheels/win-build.bat b/dev/tasks/python-wheels/win-build.bat
index 22e306ab1f..f85c8e8b74 100644
--- a/dev/tasks/python-wheels/win-build.bat
+++ b/dev/tasks/python-wheels/win-build.bat
@@ -82,7 +82,7 @@ popd
@rem test the wheel
call deactivate
conda create -n wheel-test -q -y python=%PYTHON% ^
- numpy=%NUMPY% pandas pytest
+ numpy=%NUMPY% pandas pytest hypothesis
call activate wheel-test
pip install --no-index --find-links=%ARROW_SRC%\python\dist\ pyarrow
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index bd49616f6b..ea104d507e 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -146,7 +146,6 @@ tasks:
platform: linux
template: python-wheels/travis.linux.yml
params:
- wheel_version: 0.31.1
python_version: 2.7
unicode_width: 16
test_docker_images: []
@@ -157,7 +156,6 @@ tasks:
platform: linux
template: python-wheels/travis.linux.yml
params:
- wheel_version: 0.31.1
python_version: 2.7
unicode_width: 32
test_docker_images:
@@ -169,7 +167,6 @@ tasks:
platform: linux
template: python-wheels/travis.linux.yml
params:
- wheel_version: 0.31.1
python_version: 3.5
unicode_width: 16
test_docker_images:
@@ -181,7 +178,6 @@ tasks:
platform: linux
template: python-wheels/travis.linux.yml
params:
- wheel_version: 0.31.1
python_version: 3.6
unicode_width: 16
test_docker_images:
@@ -193,7 +189,6 @@ tasks:
platform: linux
template: python-wheels/travis.linux.yml
params:
- wheel_version: 0.31.1
python_version: 3.7
unicode_width: 16
test_docker_images:
@@ -207,10 +202,7 @@ tasks:
platform: osx
template: python-wheels/travis.osx.yml
params:
- numpy_version: 1.14.5
- pandas_version: 0.23.0
python_version: 2.7
- wheel_version: 0.31.1
artifacts:
- pyarrow-{version}-cp27-cp27m-macosx_10_6_intel.whl
@@ -218,10 +210,7 @@ tasks:
platform: osx
template: python-wheels/travis.osx.yml
params:
- numpy_version: 1.14.5
- pandas_version: 0.23.0
python_version: 3.5
- wheel_version: 0.31.1
artifacts:
- pyarrow-{version}-cp35-cp35m-macosx_10_6_intel.whl
@@ -229,10 +218,7 @@ tasks:
platform: osx
template: python-wheels/travis.osx.yml
params:
- numpy_version: 1.14.5
- pandas_version: 0.23.0
python_version: 3.6
- wheel_version: 0.31.1
artifacts:
- pyarrow-{version}-cp36-cp36m-macosx_10_6_intel.whl
@@ -240,10 +226,7 @@ tasks:
platform: osx
template: python-wheels/travis.osx.yml
params:
- numpy_version: 1.14.5
- pandas_version: 0.23.0
python_version: 3.7
- wheel_version: 0.31.1
artifacts:
- pyarrow-{version}-cp37-cp37m-macosx_10_6_intel.whl
@@ -253,7 +236,6 @@ tasks:
platform: win
template: python-wheels/appveyor.yml
params:
- numpy_version: 1.14.5
python_version: 3.5
artifacts:
- pyarrow-{version}-cp35-cp35m-win_amd64.whl
@@ -262,7 +244,6 @@ tasks:
platform: win
template: python-wheels/appveyor.yml
params:
- numpy_version: 1.14.5
python_version: 3.6
artifacts:
- pyarrow-{version}-cp36-cp36m-win_amd64.whl
@@ -271,7 +252,6 @@ tasks:
platform: win
template: python-wheels/appveyor.yml
params:
- numpy_version: 1.14.5
python_version: 3.7
artifacts:
- pyarrow-{version}-cp37-cp37m-win_amd64.whl