[arch-commits] Commit in python-wstools/repos/extra-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Apr 12 05:56:12 UTC 2018
Date: Thursday, April 12, 2018 @ 05:56:11
Author: felixonmars
Revision: 321614
archrelease: copy trunk to extra-any
Added:
python-wstools/repos/extra-any/PKGBUILD
(from rev 321613, python-wstools/trunk/PKGBUILD)
Deleted:
python-wstools/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 121 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 61 insertions(+), 60 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-04-12 05:55:45 UTC (rev 321613)
+++ PKGBUILD 2018-04-12 05:56:11 UTC (rev 321614)
@@ -1,60 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-wstools
-pkgname=('python-wstools' 'python2-wstools')
-pkgver=0.4.5
-_commit=c57464fb6b79624742921a8aa0a2c0657c8b20b0
-pkgrel=1
-pkgdesc="WSDL parsing services package for Web Services for Python"
-arch=('any')
-url="https://github.com/pycontribs/wstools"
-license=('custom')
-makedepends=('python-pip' 'python2-pip' 'python-docutils' 'python2-docutils' 'git')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'autopep8' 'python2-autopep8'
- 'python-hacking' 'python2-hacking' 'python-pytest-cov' 'python2-pytest-cov')
-source=("git+https://github.com/pycontribs/wstools.git#commit=$_commit")
-md5sums=('SKIP')
-
-prepare() {
- 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"/
-}
Copied: python-wstools/repos/extra-any/PKGBUILD (from rev 321613, python-wstools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-04-12 05:56:11 UTC (rev 321614)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-wstools
+pkgname=('python-wstools' 'python2-wstools')
+pkgver=0.4.6
+pkgrel=1
+pkgdesc="WSDL parsing services package for Web Services for Python"
+arch=('any')
+url="https://github.com/pycontribs/wstools"
+license=('custom')
+makedepends=('python-pbr' 'python2-pbr' 'python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'autopep8' 'python2-autopep8'
+ 'python-hacking' 'python2-hacking' 'python-pytest-cov' 'python2-pytest-cov')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pycontribs/wstools/archive/$pkgver.tar.gz")
+sha512sums=('23d815ec7f58d30fdcefdb4bd7db544d61ecd6eed39666b09ad857ce9e6d8ccc148a3419698cab8dbc9d6d61fbd498de9c2afa12fc2c9aef47e2a94f687c276d')
+
+prepare() {
+ cp -a wstools-$pkgver{,-py2}
+ sed -e 's|#! /usr/bin/env python$|#!/usr/bin/env python2|' \
+ -e 's|#!/usr/bin/env python$|#!/usr/bin/env python2|' \
+ -i wstools-$pkgver-py2/wstools/{c14n.py,Namespaces.py,XMLSchema.py,Utility.py,__init__.py}
+
+ export PBR_VERSION=$pkgver
+}
+
+build() {
+ cd "$srcdir"/wstools-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/wstools-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/wstools-$pkgver
+ python setup.py test
+
+ cd "$srcdir"/wstools-$pkgver-py2
+ python2 setup.py test
+}
+
+package_python-wstools() {
+ depends=('python-six' 'python-setuptools')
+
+ cd wstools-$pkgver
+ 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-setuptools')
+
+ cd wstools-$pkgver-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