diff options
Diffstat (limited to 'testing/py3-solidpython/APKBUILD')
-rw-r--r-- | testing/py3-solidpython/APKBUILD | 47 |
1 files changed, 32 insertions, 15 deletions
diff --git a/testing/py3-solidpython/APKBUILD b/testing/py3-solidpython/APKBUILD index 176f3592588..b4f70d0a26c 100644 --- a/testing/py3-solidpython/APKBUILD +++ b/testing/py3-solidpython/APKBUILD @@ -1,44 +1,61 @@ # Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de> pkgname=py3-solidpython -pkgver=1.0.2 -pkgrel=3 +pkgver=1.1.2 +pkgrel=1 pkgdesc="Python library to generated OpenSCAD code" url="https://github.com/SolidCode/SolidPython" -arch="noarch !aarch64 !armv7 !armhf !mips !mips64" # openscad +arch="noarch !aarch64 !armv7 !armhf" # openscad license="LGPL-2.1-or-later" depends=" openscad + py3-astroid py3-euclid3<0.2.0 + py3-mccabe + py3-platformdirs + py3-ply py3-prettytable py3-pypng py3-regex + py3-setuptools + py3-tomlkit python3 " makedepends=" - py3-setuptools + py3-gpep517 + py3-poetry-core " _pyname="solidpython" -_pypiprefix="${_pyname%${_pyname#?}}" +_pypiprefix="${_pyname%"${_pyname#?}"}" +subpackages="$pkgname-pyc" source=" https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz - fix-versions.patch + poetry-core.patch " builddir="$srcdir/$_pyname-$pkgver" build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - # Run the loop ourselves instead of relying on bash - local i; for i in solid/test/test_*.py; do - echo "$i" - PYTHONPATH="$PWD/build/lib" python3 "$i" - done + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m unittest discover solid/test + # local i; for i in solid/test/test_*.py; do + # echo "$i" + # python3 "$i" + # done } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl + rm -r "$pkgdir"/usr/lib/python3*/site-packages/solid/test } -sha512sums="eeb7c68e54055fcfd5b53cf9c2745ea4dac602dbce158c8c7559dde21372c87cacbcac9c203cf0b577bd292a59304d48e8a4c7afcf9afdd9cc6c6cf0286e1d09 solidpython-1.0.2.tar.gz -41e71d68ba0381ea44ab206a95549558991e923a218d4a8d7730a8baa21922762d0d3555a61e5d81bfb39d1918627deb1f17fa2347d279a3cf9b14cbf8270ae4 fix-versions.patch" + +sha512sums=" +b66b530fc1abc9c8c3044ad0bb74f7dab2932c77e6374a1e46573f934c2d59af9c24dae86e54201dec7ebae4d3e0dbfa2c2733fa18394a9ce87d5fd562544dc0 solidpython-1.1.2.tar.gz +df25c55af2d6dc6744b344deab129b5128c60d3c768f92018cbf7ceeca06f414fe427c231045ca8f0586a6f2bfbd598f8c2964492bf5def620f4a38ba5d84c96 poetry-core.patch +" |