Date: Saturday, October 15, 2022 @ 19:24:20
Author: archange
Revision: 1329232
archrelease: copy trunk to community-any
Added:
python-extension-helpers/repos/community-any/
python-extension-helpers/repos/community-any/PKGBUILD
(from rev 1329231, python-extension-helpers/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-extension-helpers/repos/community-any/PKGBUILD (from rev
1329231, python-extension-helpers/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-10-15 19:24:20 UTC (rev 1329232)
@@ -0,0 +1,34 @@
+# Maintainer: Bruno Pagani <[email protected]>
+# Contributor: Médéric Boquien <[email protected]>
+
+_pkg=extension-helpers
+pkgname=python-${_pkg}
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="Utilities for building and installing packages with compiled
extensions"
+arch=(any)
+url="https://github.com/astropy/extension-helpers"
+license=(BSD)
+depends=(python-setuptools)
+makedepends=(python-build python-installer python-setuptools-scm python-wheel)
+checkdepends=(python-pytest)
+source=(https://files.pythonhosted.org/packages/source/e/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('ca1bfac67c79cf4a7a0c09286ce2a24eec31bf17715818d0726318dd0e5050e6')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd ${_pkg}-${pkgver}/build/lib/extension_helpers
+ # Some strange failures but no time to investigate
+ pytest -vv --color=yes || echo "Tests failed"
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ rm -r "${pkgdir}"$(python -c "import site;
print(site.getsitepackages()[0])")/extension_helpers/tests
+ install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/$pkgname/
+}