From 96005f7abdb251c873e6504133047b717b0b2577 Mon Sep 17 00:00:00 2001 From: Duncan Bellamy Date: Sat, 7 May 2022 11:45:22 +0000 Subject: community/py3-apache-arrow: move from testing --- community/py3-apache-arrow/APKBUILD | 77 +++++++++++++++++++++++++++++++++++++ testing/py3-apache-arrow/APKBUILD | 77 ------------------------------------- 2 files changed, 77 insertions(+), 77 deletions(-) create mode 100644 community/py3-apache-arrow/APKBUILD delete mode 100644 testing/py3-apache-arrow/APKBUILD diff --git a/community/py3-apache-arrow/APKBUILD b/community/py3-apache-arrow/APKBUILD new file mode 100644 index 00000000000..4cd7523c7eb --- /dev/null +++ b/community/py3-apache-arrow/APKBUILD @@ -0,0 +1,77 @@ +# Contributor: Duncan Bellamy +# Maintainer: Duncan Bellamy +# based on arch linux PKGBUILD +pkgname=py3-apache-arrow +pkgver=7.0.0 +pkgrel=0 +pkgdesc="multi-language toolbox for accelerated data interchange and in-memory processing" +url="https://arrow.apache.org/" +arch="all !riscv64" # missing glog-dev +license="Apache-2.0" +makedepends=" + apache-arrow-dev + bzip2-dev + cython + gtest-dev + python3-dev + py3-setuptools + py3-setuptools_scm + py3-numpy-dev + re2-dev + snappy-dev + " +checkdepends=" + py3-pytest + py3-cffi + py3-hypothesis + py3-pandas + py3-pytest-lazy-fixture + tzdata + " +subpackages="$pkgname-dev" +source="https://downloads.apache.org/arrow/arrow-$pkgver/apache-arrow-$pkgver.tar.gz" +builddir="$srcdir/apache-arrow-$pkgver" + +# s390x segaults when testing +case "$CARCH" in + s390x) options="!check" ;; +esac + +build() { + cd python + + case "$CARCH" in + armhf|armv7) _SIMD="NONE" ;; + *) _SIMD="DEFAULT" ;; + esac + export PYARROW_WITH_PARQUET=1 + python3 setup.py build_ext --inplace --extra-cmake-args="-DARROW_SIMD_LEVEL=$_SIMD" +} + +check() { + # test_memory.py test is jemalloc + # other tests are various platforms + cd python + python3 setup.py install --root="test_install" + export PYTHONPATH="$(echo $PWD/test_install/usr/lib/python3*/site-packages)" + pytest pyarrow --deselect=pyarrow/tests/test_memory.py \ + --deselect=pyarrow/tests/test_csv.py \ + --deselect=pyarrow/tests/parquet/test_data_types.py \ + --deselect=pyarrow/tests/test_array.py::test_dictionary_to_numpy \ + --deselect=pyarrow/tests/test_io.py::test_python_file_large_seeks \ + --deselect=pyarrow/tests/test_io.py::test_foreign_buffer \ + --deselect=pyarrow/tests/test_io.py::test_memory_map_large_seeks \ + --deselect=pyarrow/tests/test_pandas.py::TestConvertStructTypes::test_from_numpy_nested \ + --deselect=pyarrow/tests/test_schema.py::test_schema_sizeof \ + --deselect=pyarrow/tests/test_serialization.py::test_primitive_serialization \ + --deselect=pyarrow/tests/test_serialization.py::test_integer_limits +} + +package() { + cd python + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums=" +6727ea625b1a4dc3fd452e94ef5e8fd7a5bdebcf44b105f0ba684687cf126163317caef9e91cfd3722a8defca1f0295741ed0dde2393e85d15559bddd7ecb9a2 apache-arrow-7.0.0.tar.gz +" diff --git a/testing/py3-apache-arrow/APKBUILD b/testing/py3-apache-arrow/APKBUILD deleted file mode 100644 index 4cd7523c7eb..00000000000 --- a/testing/py3-apache-arrow/APKBUILD +++ /dev/null @@ -1,77 +0,0 @@ -# Contributor: Duncan Bellamy -# Maintainer: Duncan Bellamy -# based on arch linux PKGBUILD -pkgname=py3-apache-arrow -pkgver=7.0.0 -pkgrel=0 -pkgdesc="multi-language toolbox for accelerated data interchange and in-memory processing" -url="https://arrow.apache.org/" -arch="all !riscv64" # missing glog-dev -license="Apache-2.0" -makedepends=" - apache-arrow-dev - bzip2-dev - cython - gtest-dev - python3-dev - py3-setuptools - py3-setuptools_scm - py3-numpy-dev - re2-dev - snappy-dev - " -checkdepends=" - py3-pytest - py3-cffi - py3-hypothesis - py3-pandas - py3-pytest-lazy-fixture - tzdata - " -subpackages="$pkgname-dev" -source="https://downloads.apache.org/arrow/arrow-$pkgver/apache-arrow-$pkgver.tar.gz" -builddir="$srcdir/apache-arrow-$pkgver" - -# s390x segaults when testing -case "$CARCH" in - s390x) options="!check" ;; -esac - -build() { - cd python - - case "$CARCH" in - armhf|armv7) _SIMD="NONE" ;; - *) _SIMD="DEFAULT" ;; - esac - export PYARROW_WITH_PARQUET=1 - python3 setup.py build_ext --inplace --extra-cmake-args="-DARROW_SIMD_LEVEL=$_SIMD" -} - -check() { - # test_memory.py test is jemalloc - # other tests are various platforms - cd python - python3 setup.py install --root="test_install" - export PYTHONPATH="$(echo $PWD/test_install/usr/lib/python3*/site-packages)" - pytest pyarrow --deselect=pyarrow/tests/test_memory.py \ - --deselect=pyarrow/tests/test_csv.py \ - --deselect=pyarrow/tests/parquet/test_data_types.py \ - --deselect=pyarrow/tests/test_array.py::test_dictionary_to_numpy \ - --deselect=pyarrow/tests/test_io.py::test_python_file_large_seeks \ - --deselect=pyarrow/tests/test_io.py::test_foreign_buffer \ - --deselect=pyarrow/tests/test_io.py::test_memory_map_large_seeks \ - --deselect=pyarrow/tests/test_pandas.py::TestConvertStructTypes::test_from_numpy_nested \ - --deselect=pyarrow/tests/test_schema.py::test_schema_sizeof \ - --deselect=pyarrow/tests/test_serialization.py::test_primitive_serialization \ - --deselect=pyarrow/tests/test_serialization.py::test_integer_limits -} - -package() { - cd python - python3 setup.py install --prefix=/usr --root="$pkgdir" -} - -sha512sums=" -6727ea625b1a4dc3fd452e94ef5e8fd7a5bdebcf44b105f0ba684687cf126163317caef9e91cfd3722a8defca1f0295741ed0dde2393e85d15559bddd7ecb9a2 apache-arrow-7.0.0.tar.gz -" -- cgit v1.2.3