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

Felix Yan felixonmars at archlinux.org
Thu Aug 31 14:19:31 UTC 2017


    Date: Thursday, August 31, 2017 @ 14:19:31
  Author: felixonmars
Revision: 304379

upgpkg: python-pyasn1-modules 0.1.1-1

Modified:
  python-pyasn1-modules/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-31 11:14:12 UTC (rev 304378)
+++ PKGBUILD	2017-08-31 14:19:31 UTC (rev 304379)
@@ -3,7 +3,7 @@
 
 pkgbase=python-pyasn1-modules
 pkgname=('python-pyasn1-modules' 'python2-pyasn1-modules')
-pkgver=0.0.11
+pkgver=0.1.1
 pkgrel=1
 pkgdesc="A collection of ASN.1-based protocols modules"
 arch=('any')
@@ -11,7 +11,7 @@
 url="http://pypi.python.org/pypi/pyasn1-modules"
 makedepends=('python-pyasn1' 'python2-pyasn1' 'python-setuptools' 'python2-setuptools')
 source=("https://pypi.io/packages/source/p/pyasn1-modules/pyasn1-modules-$pkgver.tar.gz")
-sha512sums=('0c9943f1fe49453a97ede8aa14248340dc1e331d0d80fa948b507743d3f30fe61d99323b99ca43930d22c863611ae4a2bd9859726620756f345ff2d5873efb8d')
+sha512sums=('63cba7522da6d93d4c9059377e8b4b11e9fb362b0c17d603119508f28944f45cb48d31f541eb11bcd734493b9726637b8fe1fcd4cc67845d71b1fa67f9ca69e9')
 
 prepare() {
   cp -a pyasn1-modules-$pkgver{,-py2}
@@ -18,26 +18,32 @@
 }
 
 build() {
-  # Build python 3 module
   cd "$srcdir"/pyasn1-modules-$pkgver
-  python3 setup.py build
- 
-  # Build python 2 module
+  python setup.py build
+
   cd "$srcdir"/pyasn1-modules-$pkgver-py2
   python2 setup.py build
 }
- 
+
+check() {
+  cd "$srcdir"/pyasn1-modules-$pkgver
+  PYTHONPATH=. python tests/__main__.py
+
+  cd "$srcdir"/pyasn1-modules-$pkgver-py2
+  PYTHONPATH=. python2 tests/__main__.py
+}
+
 package_python-pyasn1-modules() {
   depends=('python-pyopenssl' 'python-pyasn1')
- 
+
   cd pyasn1-modules-$pkgver
-  python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
- 
+
 package_python2-pyasn1-modules() {
   depends=('python2-pyopenssl' 'python2-pyasn1')
- 
+
   cd pyasn1-modules-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt



More information about the arch-commits mailing list