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

Felix Yan fyan at archlinux.org
Thu Jun 4 09:14:20 UTC 2015


    Date: Thursday, June 4, 2015 @ 11:14:20
  Author: fyan
Revision: 240327

upgpkg: pyopenssl 0.15.1-1

upstream new release

Modified:
  pyopenssl/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-04 08:17:41 UTC (rev 240326)
+++ PKGBUILD	2015-06-04 09:14:20 UTC (rev 240327)
@@ -1,22 +1,26 @@
 # $Id$
 # Maintainer : Ionut Biru<ibiru at archlinux.org>
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
 # Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
 
 pkgbase=pyopenssl
 pkgname=('python-pyopenssl' 'python2-pyopenssl')
-pkgver=0.14
-pkgrel=3
+pkgver=0.15.1
+pkgrel=1
 arch=('any')
 url="http://pypi.python.org/pypi/pyOpenSSL"
 license=('LGPL2.1')
 makedepends=('python-setuptools' 'python2-setuptools' 'openssl' 'python-six' 'python2-six' 'python-cryptography' 'python2-cryptography')
+checkdepends=('python-pytest' 'python2-pytest')
 source=(http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${pkgver}.tar.gz)
-md5sums=('8579ff3a1d858858acfba5f046a4ddf7')
+md5sums=('f447644afcbd5f0a1f47350fec63a4c6')
 
-build() {
+prepare() {
     cd "${srcdir}"
     cp -a "pyOpenSSL-${pkgver}"{,-python2}
+}
 
+build () {
     #build python 3 module
     cd "pyOpenSSL-${pkgver}"
     python setup.py build
@@ -26,9 +30,17 @@
     python2 setup.py build
 }
 
+check () {
+    cd "pyOpenSSL-${pkgver}"
+    LC_CTYPE=en_US.utf8 python setup.py test || warning "Python 3 tests failed"
+
+    cd ../"pyOpenSSL-${pkgver}-python2"
+    LC_CTYPE=en_US.utf8 python2 setup.py test || warning "Python 2 tests failed"
+}
+
 package_python-pyopenssl(){
     pkgdesc="Python3 wrapper module around the OpenSSL library"
-    depends=('python>=3.3' 'openssl' 'python-six' 'python-cryptography')
+    depends=('python>=3.4' 'openssl' 'python-six' 'python-cryptography')
     replaces=('pyopenssl')
     provides=('pyopenssl')
     conflicts=('pyopenssl')



More information about the arch-commits mailing list