[arch-commits] Commit in python-wstools/repos/extra-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Jul 23 06:38:16 UTC 2016


    Date: Saturday, July 23, 2016 @ 06:38:16
  Author: felixonmars
Revision: 272137

archrelease: copy trunk to extra-any

Added:
  python-wstools/repos/extra-any/PKGBUILD
    (from rev 272136, python-wstools/trunk/PKGBUILD)
Deleted:
  python-wstools/repos/extra-any/PKGBUILD

----------+
 PKGBUILD |   96 ++++++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 61 insertions(+), 35 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-07-23 06:38:03 UTC (rev 272136)
+++ PKGBUILD	2016-07-23 06:38:16 UTC (rev 272137)
@@ -1,35 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
-
-pkgbase=python-wstools
-pkgname=python2-wstools
-pkgver=0.4.3
-pkgrel=1
-pkgdesc="WSDL parsing services package for Web Services for Python"
-arch=('any')
-url="https://github.com/pycontribs/wstools"
-license=('custom')
-makedepends=('python2-setuptools')
-depends=('python2')
-source=("https://pypi.python.org/packages/source/w/wstools/wstools-${pkgver}.tar.gz")
-md5sums=('82f800f83195519ab6f01304456dadd9')
-
-prepare() {
-  cd wstools-$pkgver
-  sed -e 's|#! /usr/bin/env python$|#!/usr/bin/env python2|' \
-      -e 's|#!/usr/bin/env python$|#!/usr/bin/env python2|' \
-      -i src/wstools/{c14n.py,Namespaces.py,XMLSchema.py,Utility.py,logging.py,__init__.py,tests/*}
-}
-
-build() {
-  cd wstools-${pkgver}
-  python2 setup.py build
-}
-
-package_python2-wstools() {
-  cd wstools-${pkgver}
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-
-  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -Dm644 docs/* "${pkgdir}/usr/share/licenses/${pkgname}"/
-}

Copied: python-wstools/repos/extra-any/PKGBUILD (from rev 272136, python-wstools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-07-23 06:38:16 UTC (rev 272137)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-wstools
+pkgname=('python-wstools' 'python2-wstools')
+pkgver=0.4.4
+_commit=f74298a5b0527382e6482d2354150813e976f12d
+pkgrel=1
+pkgdesc="WSDL parsing services package for Web Services for Python"
+arch=('any')
+url="https://github.com/pycontribs/wstools"
+license=('custom')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-docutils' 'python2-docutils' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'autopep8' 'python2-autopep8')
+source=("git+https://github.com/pycontribs/wstools.git#commit=$_commit")
+md5sums=('SKIP')
+
+prepare() {
+  # pytest-pep8 doesn't work at the moment due to the upstream renaming from pep8 to pycodestyle
+  sed -i 's/--pep8//' wstools/setup.cfg
+  cp -a wstools{,-py2}
+  sed -e 's|#! /usr/bin/env python$|#!/usr/bin/env python2|' \
+      -e 's|#!/usr/bin/env python$|#!/usr/bin/env python2|' \
+      -i wstools-py2/wstools/{c14n.py,Namespaces.py,XMLSchema.py,Utility.py,__init__.py}
+}
+
+build() {
+  cd "$srcdir"/wstools
+  python setup.py build
+
+  cd "$srcdir"/wstools-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/wstools
+  python setup.py test
+
+  cd "$srcdir"/wstools-py2
+  python2 setup.py test
+}
+
+package_python-wstools() {
+  depends=('python-six' 'python-docutils')
+
+  cd wstools
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -d "$pkgdir/usr/share/licenses/$pkgname"
+  install -Dm644 docs/* "$pkgdir/usr/share/licenses/$pkgname"/
+}
+
+package_python2-wstools() {
+  depends=('python2-six' 'python2-docutils')
+
+  cd wstools-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  install -d "$pkgdir/usr/share/licenses/$pkgname"
+  install -Dm644 docs/* "$pkgdir/usr/share/licenses/$pkgname"/
+}



More information about the arch-commits mailing list