Date: Saturday, September 3, 2022 @ 19:18:25
  Author: ffy00
Revision: 1292705

upgpkg: python-pyadi-iio 0.0.13-1

Modified:
  python-pyadi-iio/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-03 19:16:06 UTC (rev 1292704)
+++ PKGBUILD    2022-09-03 19:18:25 UTC (rev 1292705)
@@ -2,26 +2,27 @@
 
 _pkgname=pyadi-iio
 pkgname=python-$_pkgname
-pkgver=0.0.8
-pkgrel=4
+pkgver=0.0.13
+pkgrel=1
 pkgdesc='Python interfaces for ADI hardware with IIO drivers'
 arch=('any')
 url='https://github.com/analogdevicesinc/pyadi-iio'
 license=('custom')
 depends=('python-pylibiio' 'python-numpy' 'python-paramiko')
-makedepends=('python-setuptools' 'python-sphinx' 'python-sphinx_rtd_theme')
-checkdepends=('python-pytest-runner' 'python-scapy')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
+#             'python-sphinx' 'python-sphinx_rtd_theme' 'python-myst-parser')
+checkdepends=('python-pytest' 'python-scapy')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('97f6b241230f54ff4932f677b42b4fd33c2e2eb69bb27d638b4c63b44e991b61c40744b9db09fd26d7973e83eeec6089cba65bbe63894206b06c3e10dd8f1f3e')
+sha512sums=('fed3cf90085fc56183e4bfdf69acc1b4231dced6e91c504ae66438730087d5ae8984117aa8337a3d9f3fa6fe5c81dbf11ba1a825697dd8692432901dd4cf5b20')
 
 build() {
   cd $_pkgname-$pkgver
 
-  python setup.py build
+  python -m build -nw
 
-  cd doc
-
-  make html
+#  cd doc
+#
+#  make html
 }
 
 # need liblibc.a
@@ -28,22 +29,22 @@
 #check() {
 #  cd $_pkgname-$pkgver
 #
-#  python setup.py pytest
+#  python -m pytest
 #}
 
 package() {
   cd $_pkgname-$pkgver
 
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer -d "$pkgdir" dist/*.whl
 
   # Remove tests
   rm -rf "$pkgdir"/usr/lib/python*/site-packages/test
 
   # Install documentation
-  install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
-  cp -r -a --no-preserve=ownership doc/build/html 
"$pkgdir"/usr/share/doc/$pkgname
-
-  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+#  install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+#  cp -r -a --no-preserve=ownership doc/build/html 
"$pkgdir"/usr/share/doc/$pkgname
+#
+#  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 # vim:set ts=2 sw=2 et:

Reply via email to