mirror of
https://github.com/archlinux/aur.git
synced 2026-02-07 12:41:55 +01:00
Add check() function
This commit is contained in:
parent
8e02c9d973
commit
f90093817f
2 changed files with 44 additions and 12 deletions
24
.SRCINFO
24
.SRCINFO
|
|
@ -7,12 +7,34 @@ pkgbase = python-trame-vtk
|
|||
license = custom:BSD-3-clause
|
||||
checkdepends = python-pytest-xprocess
|
||||
checkdepends = python-pillow
|
||||
checkdepends = python-pixelmatch
|
||||
checkdepends = python-seleniumbase
|
||||
checkdepends = python-pyvista
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-setuptools
|
||||
makedepends = python-wheel
|
||||
depends = python-trame-client
|
||||
depends = paraview
|
||||
depends = vtk
|
||||
depends = openmpi
|
||||
depends = fmt
|
||||
depends = jsoncpp
|
||||
depends = glew
|
||||
depends = ospray
|
||||
depends = openxr
|
||||
depends = openvr
|
||||
depends = ffmpeg
|
||||
depends = hdf5-openmpi
|
||||
depends = postgresql-libs
|
||||
depends = netcdf
|
||||
depends = pdal
|
||||
depends = mariadb-libs
|
||||
depends = liblas
|
||||
depends = cgns
|
||||
depends = adios2
|
||||
depends = libharu
|
||||
depends = gl2ps
|
||||
depends = verdict
|
||||
source = trame-vtk-2.5.4.tar.gz::https://github.com/Kitware/trame-vtk/archive/v2.5.4.tar.gz
|
||||
sha512sums = bc2745283f910634a07bc91793dbc56a5146c030b2c19817564bffd8e967db25b789262d47a918e3396fa7e0b183b41322e49e96d1875bbd96bf63bacb280b9a
|
||||
|
||||
|
|
|
|||
32
PKGBUILD
32
PKGBUILD
|
|
@ -1,20 +1,26 @@
|
|||
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
|
||||
_base=trame-vtk
|
||||
_npm_base=vue-vtk-js
|
||||
pkgname=python-${_base}
|
||||
pkgdesc="VTK widgets for trame"
|
||||
pkgver=2.5.4
|
||||
_npm_pkgver=3.1.7
|
||||
pkgrel=1
|
||||
arch=(any)
|
||||
url="https://github.com/Kitware/${_base}"
|
||||
license=('custom:BSD-3-clause')
|
||||
depends=(python-trame-client paraview)
|
||||
depends=(python-trame-client vtk openmpi fmt jsoncpp glew ospray
|
||||
openxr openvr ffmpeg hdf5-openmpi postgresql-libs netcdf pdal
|
||||
mariadb-libs liblas cgns adios2 libharu gl2ps verdict)
|
||||
makedepends=(python-build python-installer python-setuptools python-wheel)
|
||||
checkdepends=(python-pytest-xprocess python-pillow) # python-pixelmatch python-pyvista
|
||||
source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
|
||||
sha512sums=('bc2745283f910634a07bc91793dbc56a5146c030b2c19817564bffd8e967db25b789262d47a918e3396fa7e0b183b41322e49e96d1875bbd96bf63bacb280b9a')
|
||||
checkdepends=(python-pytest-xprocess python-pillow python-pixelmatch python-seleniumbase python-pyvista) # FIXME: python-matplotlib
|
||||
source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz
|
||||
https://registry.npmjs.org/${_npm_base}/-/${_npm_base}-${_npm_pkgver}.tgz)
|
||||
sha512sums=('bc2745283f910634a07bc91793dbc56a5146c030b2c19817564bffd8e967db25b789262d47a918e3396fa7e0b183b41322e49e96d1875bbd96bf63bacb280b9a'
|
||||
'66ed3556c34303c3af0de0585ad6e2e39d3dcec2a4e8773b98aef7312239c4d11466ff180c64aad192c4842fdcb83292dd26a3d98696cb0493a10fbb5f80f0c9')
|
||||
|
||||
prepare() {
|
||||
sed -i 's/^include/#include/' ${_base}-${pkgver}/MANIFEST.in
|
||||
sed -i 's/^include trame_vtk\/LICENSE/#include trame_vtk\/LICENSE/' ${_base}-${pkgver}/MANIFEST.in
|
||||
}
|
||||
|
||||
build() {
|
||||
|
|
@ -22,18 +28,22 @@ build() {
|
|||
python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
# check() {
|
||||
# cd ${_base}-${pkgver}
|
||||
# python -m venv --system-site-packages test-env
|
||||
# test-env/bin/python -m installer dist/*.whl
|
||||
# test-env/bin/python -m pytest #--ignore=tests/test_remote_rendering.py
|
||||
# }
|
||||
check() {
|
||||
cd ${_base}-${pkgver}
|
||||
python -m venv --system-site-packages test-env
|
||||
test-env/bin/python -m installer dist/*.whl
|
||||
test-env/bin/python -m pytest \
|
||||
--ignore=tests/test_gc.py \
|
||||
-k 'not reactivity[examples/validation/PyVistaInt64.py] and not reactivity[examples/validation/PyVistaLookupTable.py]'
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${_base}-${pkgver}
|
||||
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
|
||||
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
|
||||
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||
|
||||
rm ${pkgdir}${site_packages}/trame/__init__.py
|
||||
rm ${pkgdir}${site_packages}/trame/modules/__init__.py
|
||||
rm ${pkgdir}${site_packages}/trame/widgets/__init__.py
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue