Date: Saturday, October 15, 2022 @ 19:23:19
  Author: archange
Revision: 1329231

Initial import of extension-helpers in [community]

Build depend of astropy

Added:
  python-extension-helpers/
  python-extension-helpers/repos/
  python-extension-helpers/trunk/
  python-extension-helpers/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Added: python-extension-helpers/trunk/PKGBUILD
===================================================================
--- python-extension-helpers/trunk/PKGBUILD                             (rev 0)
+++ python-extension-helpers/trunk/PKGBUILD     2022-10-15 19:23:19 UTC (rev 
1329231)
@@ -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/
+}

Reply via email to