diff --git a/testing/pdal-python-plugins/APKBUILD b/testing/pdal-python-plugins/APKBUILD index 0559605a6e3..e87284aaddf 100644 --- a/testing/pdal-python-plugins/APKBUILD +++ b/testing/pdal-python-plugins/APKBUILD @@ -1,33 +1,43 @@ # Contributor: Brian Vuyk # Maintainer: Brian Vuyk pkgname=pdal-python-plugins -pkgver=1.2.1 -pkgrel=3 +pkgver=1.6.2 +pkgrel=0 pkgdesc="Supports embedding Python in PDAL pipelines with the readers.numpy and filters.python drivers." url="https://github.com/PDAL/python-plugins" -arch="aarch64 armhf armv7 ppc64le riscv64 x86 x86_64" # Exclude s390x due to test failures. +arch="all !s390x" # Exclude s390x due to test failures. license="BSD-3-Clause" depends="python3 py3-numpy" checkdepends="pdal" -makedepends="cmake pdal-dev py3-numpy-dev python3-dev py3-setuptools py3-packaging py3-scikit-build ninja" -source="https://files.pythonhosted.org/packages/source/p/pdal-plugins/pdal-plugins-1.2.1.tar.gz" -builddir="$srcdir/pdal-plugins-$pkgver" +makedepends="cmake pdal-dev py3-gpep517 py3-numpy-dev py3-pybind11 + py3-scikit-build-core python3-dev samurai" +source="https://files.pythonhosted.org/packages/source/p/pdal-plugins/pdal_plugins-$pkgver.tar.gz + enable-tests.patch" +builddir="$srcdir/pdal_plugins-$pkgver" build() { - python3 setup.py build -DWITH_TESTS=ON + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - export PDAL_DRIVER_PATH=$(python3 -c "import os, skbuild; print(os.path.join(skbuild.constants.SKBUILD_DIR(), 'cmake-build'))") + export WHEEL_DIR="$(python3 -m "scikit_build_core.builder.wheel_tag")" + export PDAL_DRIVER_PATH="$builddir"/build/$WHEEL_DIR/Release + # filters.python should appear in pdal output pdal --drivers + + # Copy test data where tests can find them + cp -r "$builddir"/src/pdal/test/data $PDAL_DRIVER_PATH/src/pdal/test/ $PDAL_DRIVER_PATH/pdal_filters_python_test $PDAL_DRIVER_PATH/pdal_io_numpy_test } package() { - python3 setup.py install --skip-build --root="$pkgdir" + python3 -m installer -d "$pkgdir" .dist/*.whl } sha512sums=" -328bb1960c823e442f08e3b3f7aca0e98a0755bc4fd655ad57d4efa202ecab4fc034ce85bb8015e7d0f0b13f4556b25cc9fb18d9f1b4281dbf65c23e21b2e577 pdal-plugins-1.2.1.tar.gz +c8afd30dbce6c17609fb39bb88354237c5a52cf6987233f5e20afd6735df2c2481e5945c7e620816f6f483210ef4caf4e905afd2414e4065cd8cc8e0d08ef511 pdal_plugins-1.6.2.tar.gz +6597ac5f0218a080ae0510f87c534ed794914c0882118524c0a9ff91435e348b6a1f689f1122fde02dea04524dcc2ad2dc5bfc74e1477c15f8bc451b1e1453c5 enable-tests.patch " diff --git a/testing/pdal-python-plugins/enable-tests.patch b/testing/pdal-python-plugins/enable-tests.patch new file mode 100644 index 00000000000..cab7a0ee4e4 --- /dev/null +++ b/testing/pdal-python-plugins/enable-tests.patch @@ -0,0 +1,10 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -65,5 +65,5 @@ + cmake.verbose = true + logging.level = "INFO" + +-#[tool.scikit-build.cmake.define] +-#WITH_TESTS = "ON" ++[tool.scikit-build.cmake.define] ++WITH_TESTS = "ON"