[arch-commits] Commit in python-ukpostcodeparser/repos/community-staging-any (2 files)
Jelle van der Waa
jelle at archlinux.org
Sat Nov 9 17:27:01 UTC 2019
Date: Saturday, November 9, 2019 @ 17:27:00
Author: jelle
Revision: 524857
archrelease: copy trunk to community-staging-any
Added:
python-ukpostcodeparser/repos/community-staging-any/PKGBUILD
(from rev 524856, python-ukpostcodeparser/trunk/PKGBUILD)
Deleted:
python-ukpostcodeparser/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 81 +++++++++++++++++++++++--------------------------------------
1 file changed, 31 insertions(+), 50 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-09 17:26:53 UTC (rev 524856)
+++ PKGBUILD 2019-11-09 17:27:00 UTC (rev 524857)
@@ -1,50 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-ukpostcodeparser
-pkgname=('python-ukpostcodeparser' 'python2-ukpostcodeparser')
-pkgver=1.1.2
-pkgrel=4
-pkgdesc="UK Postcode parser"
-arch=('any')
-license=('MIT')
-url="https://github.com/hamstah/ukpostcodeparser"
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/hamstah/ukpostcodeparser/archive/v$pkgver.tar.gz")
-sha512sums=('8113522b728c095f937a9f53f21c369130e3e63c4fc3546dbea4ad1c53648742fb0e766b1254c76ee65d69dec585f1a90caa7d39ca540de1765ff5f989a702de')
-
-prepare() {
- cp -a ukpostcodeparser-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/ukpostcodeparser-$pkgver
- python setup.py build
-
- cd "$srcdir"/ukpostcodeparser-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- # Expected failure: https://github.com/hamstah/ukpostcodeparser/issues/8
-
- cd "$srcdir"/ukpostcodeparser-$pkgver
- python -m unittest discover -s ukpostcodeparser/test -p '*.py' || warning "Tests failed"
-
- cd "$srcdir"/ukpostcodeparser-$pkgver-py2
- python2 -m unittest discover -s ukpostcodeparser/test -p '*.py' || warning "Tests failed"
-}
-
-package_python-ukpostcodeparser() {
- depends=('python')
-
- cd ukpostcodeparser-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-ukpostcodeparser() {
- depends=('python2')
-
- cd ukpostcodeparser-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
Copied: python-ukpostcodeparser/repos/community-staging-any/PKGBUILD (from rev 524856, python-ukpostcodeparser/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-09 17:27:00 UTC (rev 524857)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-ukpostcodeparser
+pkgver=1.1.2
+pkgrel=6
+pkgdesc="UK Postcode parser"
+arch=('any')
+license=('MIT')
+url="https://github.com/hamstah/ukpostcodeparser"
+depends=('python')
+makedepends=('python-setuptools')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/hamstah/ukpostcodeparser/archive/v$pkgver.tar.gz")
+sha512sums=('8113522b728c095f937a9f53f21c369130e3e63c4fc3546dbea4ad1c53648742fb0e766b1254c76ee65d69dec585f1a90caa7d39ca540de1765ff5f989a702de')
+
+build() {
+ cd "$srcdir"/ukpostcodeparser-$pkgver
+ python setup.py build
+}
+
+check() {
+ # Expected failure: https://github.com/hamstah/ukpostcodeparser/issues/8
+
+ cd "$srcdir"/ukpostcodeparser-$pkgver
+ python -m unittest discover -s ukpostcodeparser/test -p '*.py' || warning "Tests failed"
+}
+
+package() {
+
+ cd ukpostcodeparser-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list