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

Felix Yan fyan at archlinux.org
Thu Feb 18 12:49:49 UTC 2016


    Date: Thursday, February 18, 2016 @ 13:49:49
  Author: fyan
Revision: 259955

upgpkg: python-service-identity 16.0.0-1

Modified:
  python-service-identity/trunk/PKGBUILD

----------+
 PKGBUILD |   54 +++++++++++++++++++++++++-----------------------------
 1 file changed, 25 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-18 12:35:25 UTC (rev 259954)
+++ PKGBUILD	2016-02-18 12:49:49 UTC (rev 259955)
@@ -3,8 +3,8 @@
 
 pkgbase=python-service-identity
 pkgname=('python-service-identity' 'python2-service-identity')
-pkgver=14.0.0
-pkgrel=3
+pkgver=16.0.0
+pkgrel=1
 pkgdesc="Service identity verification for pyOpenSSL"
 arch=('any')
 license=('MIT')
@@ -11,49 +11,45 @@
 url="http://pypi.python.org/pypi/service_identity"
 makedepends=('python-pyopenssl' 'python2-pyopenssl' 'python-pyasn1' 'python2-pyasn1'
              'python-setuptools' 'python2-setuptools' 'python-pyasn1-modules' 'python2-pyasn1-modules'
-             'python-characteristic' 'python2-characteristic' 'python-pytest' 'python2-pytest')
-checkdepends=('python-idna' 'python2-idna')
-source=("http://pypi.python.org/packages/source/s/service_identity/service_identity-${pkgver}.tar.gz")
-md5sums=('cea0b0156d73b025ecef660fb51f0d9a')
+             'python-attrs' 'python2-attrs' 'python-idna' 'python2-idna')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("http://pypi.python.org/packages/source/s/service_identity/service_identity-$pkgver.tar.gz")
+md5sums=('d52392597b9c44a740abf322bfdb21e6')
 
 prepare() {
-   cp -a service_identity-${pkgver}{,-python2}
+  cp -a service_identity-$pkgver{,-py2}
 }
 
 build() {
-   # Build python 3 module
-   cd service_identity-${pkgver}
-   python3 setup.py build
+  cd "$srcdir"/service_identity-$pkgver
+  python setup.py build
  
-   # Build python 2 module
-   cd ../service_identity-${pkgver}-python2
-   python2 setup.py build
+  cd "$srcdir"/service_identity-$pkgver-py2
+  python2 setup.py build
 }
 
 check() {
-   # Check python3 module
-   cd "${srcdir}"/service_identity-${pkgver}
-   py.test
+  cd "$srcdir"/service_identity-$pkgver
+  python setup.py ptr
 
-   # Check python2 module
-   cd "${srcdir}"/service_identity-${pkgver}-python2
-   py.test2
+  cd "$srcdir"/service_identity-$pkgver-py2
+  python2 setup.py ptr
 }
  
 package_python-service-identity() {
-   depends=('python' 'python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules' 'python-characteristic')
-   optdepends=('python-idna: for Internationalized Domain Names support')
+  depends=('python-pyopenssl' 'python-pyasn1' 'python-pyasn1-modules' 'python-attrs')
+  optdepends=('python-idna: for Internationalized Domain Names support')
  
-   cd service_identity-${pkgver}
-   python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  cd service_identity-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
  
 package_python2-service-identity() {
-   depends=('python2' 'python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-characteristic')
-   optdepends=('python2-idna: for Internationalized Domain Names support')
+  depends=('python2-pyopenssl' 'python2-pyasn1' 'python2-pyasn1-modules' 'python2-attrs')
+  optdepends=('python2-idna: for Internationalized Domain Names support')
  
-   cd service_identity-${pkgver}-python2
-   python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  cd service_identity-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list