Date: Wednesday, December 14, 2022 @ 19:56:45
  Author: demize
Revision: 1359167

archrelease: copy trunk to community-any

Added:
  python-srcinfo/repos/community-any/PKGBUILD
    (from rev 1359166, python-srcinfo/trunk/PKGBUILD)
  python-srcinfo/repos/community-any/keys/
Deleted:
  python-srcinfo/repos/community-any/PKGBUILD
  python-srcinfo/repos/community-any/keys/

----------+
 PKGBUILD |   66 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 35 insertions(+), 31 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-12-14 19:56:41 UTC (rev 1359166)
+++ PKGBUILD    2022-12-14 19:56:45 UTC (rev 1359167)
@@ -1,31 +0,0 @@
-# Maintainer: Johannes Löthberg <[email protected]>
-
-pkgname=python-srcinfo
-pkgver=0.0.8
-pkgrel=7
-
-pkgdesc="Simple .SRCINFO parsing library"
-url='https://github.com/kyrias/python-srcinfo'
-arch=('any')
-license=('ISC')
-
-depends=('python' 'python-parse')
-checkdepends=('python-setuptools' 'python-nose')
-
-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";)
-
-validpgpkeys=('5134EF9EAF65F95B6BB1608E50FB9B273A9D0BB5')
-md5sums=('5905c054ac2cd080bd0dbf1df5253608'
-         'SKIP')
-
-check() {
-       cd srcinfo-"$pkgver"
-       python setup.py test
-}
-
-package() {
-       cd srcinfo-"$pkgver"
-       python setup.py install --root="$pkgdir" --optimize=1
-       install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
-}

Copied: python-srcinfo/repos/community-any/PKGBUILD (from rev 1359166, 
python-srcinfo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-12-14 19:56:45 UTC (rev 1359167)
@@ -0,0 +1,35 @@
+# Maintainer: Johannes Löthberg <[email protected]>
+
+pkgname=python-srcinfo
+pkgver=0.1.1
+_commit=a7cdd66dc402eed35aa35f3753bbdefc69f84554
+pkgrel=1
+
+pkgdesc="Simple .SRCINFO parsing library"
+url='https://github.com/kyrias/python-srcinfo'
+arch=(any)
+license=(ISC)
+
+depends=(python python-parse)
+makedepends=(git python-build python-installer python-poetry-core python-wheel)
+
+source=("git+https://github.com/kyrias/python-srcinfo?signed#commit=$_commit";)
+
+validpgpkeys=(5134EF9EAF65F95B6BB1608E50FB9B273A9D0BB5)
+sha256sums=(SKIP)
+
+build() {
+       cd python-srcinfo
+       python -m build --wheel --no-isolation
+}
+
+check() {
+       cd python-srcinfo
+       python -m unittest discover -v
+}
+
+package() {
+       cd python-srcinfo
+       python -m installer --destdir="$pkgdir" dist/*.whl
+       install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+}

Reply via email to