Date: Wednesday, December 14, 2022 @ 19:56:41
  Author: demize
Revision: 1359166

upgpkg: python-srcinfo 0.1.1-1

Modified:
  python-srcinfo/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-12-14 19:35:42 UTC (rev 1359165)
+++ PKGBUILD    2022-12-14 19:56:41 UTC (rev 1359166)
@@ -1,31 +1,35 @@
 # Maintainer: Johannes Löthberg <johan...@kyriasis.com>
 
 pkgname=python-srcinfo
-pkgver=0.0.8
-pkgrel=7
+pkgver=0.1.1
+_commit=a7cdd66dc402eed35aa35f3753bbdefc69f84554
+pkgrel=1
 
 pkgdesc="Simple .SRCINFO parsing library"
 url='https://github.com/kyrias/python-srcinfo'
-arch=('any')
-license=('ISC')
+arch=(any)
+license=(ISC)
 
-depends=('python' 'python-parse')
-checkdepends=('python-setuptools' 'python-nose')
+depends=(python python-parse)
+makedepends=(git python-build python-installer python-poetry-core python-wheel)
 
-source=("https://pypi.python.org/packages/source/s/srcinfo/srcinfo-$pkgver.tar.gz";
-        
"https://pypi.python.org/packages/source/s/srcinfo/srcinfo-$pkgver.tar.gz.asc";)
+source=("git+https://github.com/kyrias/python-srcinfo?signed#commit=$_commit";)
 
-validpgpkeys=('5134EF9EAF65F95B6BB1608E50FB9B273A9D0BB5')
-sha256sums=('5ac610cf8b15d4b0a0374bd1f7ad301675c2938f0414addf3ef7d7e3fcaf5c65'
-            'SKIP')
+validpgpkeys=(5134EF9EAF65F95B6BB1608E50FB9B273A9D0BB5)
+sha256sums=(SKIP)
 
+build() {
+       cd python-srcinfo
+       python -m build --wheel --no-isolation
+}
+
 check() {
-       cd srcinfo-"$pkgver"
-       python setup.py test
+       cd python-srcinfo
+       python -m unittest discover -v
 }
 
 package() {
-       cd srcinfo-"$pkgver"
-       python setup.py install --root="$pkgdir" --optimize=1
+       cd python-srcinfo
+       python -m installer --destdir="$pkgdir" dist/*.whl
        install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
 }

Reply via email to