[arch-commits] Commit in python-sshpubkeys/trunk (PKGBUILD)

Chih-Hsuan Yen yan12125 at archlinux.org
Wed Jan 27 11:20:45 UTC 2021


    Date: Wednesday, January 27, 2021 @ 11:20:45
  Author: yan12125
Revision: 831934

upgpkg: python-sshpubkeys 3.3.0-1; switched to PyPI sdist

Tests are included in the PyPI sdist since [1].

Also makes tests less verbose.

[1] https://github.com/ojarva/python-sshpubkeys/pull/58

Modified:
  python-sshpubkeys/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-27 10:59:26 UTC (rev 831933)
+++ PKGBUILD	2021-01-27 11:20:45 UTC (rev 831934)
@@ -1,9 +1,10 @@
 # Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
 # Contributor: Drew DeVault <sir at cmpwn.com>
 
+_pkgname=sshpubkeys
 pkgname=python-sshpubkeys
-pkgver=3.1.0
-pkgrel=5
+pkgver=3.3.0
+pkgrel=1
 pkgdesc='OpenSSH public key parser for Python'
 arch=(any)
 url='https://github.com/ojarva/python-sshpubkeys'
@@ -10,21 +11,21 @@
 license=(BSD)
 depends=(python-ecdsa python-cryptography)
 makedepends=(python-setuptools)
-source=("https://github.com/ojarva/python-sshpubkeys/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha256sums=(e411b7d7d42b6909c09c4f8899f4ff55eff52dc13026ef9c26f7a2762766657c)
+source=("https://files.pythonhosted.org/packages/source/s/sshpubkeys/$_pkgname-$pkgver.tar.gz")
+sha256sums=('89e10a0caf38407426a05e3f5b5243d6e2f9575d6af45e9321291d20bcfca8f7')
 
 build() {
-    cd $pkgname-$pkgver
+    cd $_pkgname-$pkgver
     python setup.py build
 }
 
 check() {
-    cd $pkgname-$pkgver
-    python -m unittest -v tests
+    cd $_pkgname-$pkgver
+    python -m unittest tests
 }
 
 package() {
-    cd $pkgname-$pkgver
+    cd $_pkgname-$pkgver
     python setup.py install --root="$pkgdir" --optimize=1 --skip-build
     install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
 }



More information about the arch-commits mailing list