[arch-commits] Commit in python-parse/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Mon Oct 14 19:26:18 UTC 2019
Date: Monday, October 14, 2019 @ 19:26:17
Author: jelle
Revision: 515881
remove python2 variant
Modified:
python-parse/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++--------------------------
1 file changed, 4 insertions(+), 26 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-14 19:09:02 UTC (rev 515880)
+++ PKGBUILD 2019-10-14 19:26:17 UTC (rev 515881)
@@ -1,8 +1,7 @@
# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
# Contributor: Aaron DeVore <aaron.devore at gmail.com>
-pkgbase=python-parse
-pkgname=(python-parse python2-parse)
+pkgname=python-parse
pkgver=1.12.1
pkgrel=1
@@ -11,7 +10,8 @@
arch=('any')
license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
source=("https://pypi.org/packages/source/p/parse/parse-$pkgver.tar.gz"
https://raw.githubusercontent.com/r1chardj0n3s/parse/b48b0494d27f64a9088cd92c1f8d58928af07317/LICENSE) # license from the bottom of parse.py
@@ -19,42 +19,20 @@
md5sums=('8fc634769f1d841f14a52dd731ca447a'
'68c10fa20482cc4328a1052695fb7e53')
-prepare() {
- cp -r parse-$pkgver{,-py2}
-}
-
build() {
cd "$srcdir"/parse-$pkgver
python setup.py build
-
- cd "$srcdir"/parse-$pkgver-py2
- python2 setup.py build
}
check() {
cd "$srcdir"/parse-$pkgver
python test_parse.py
-
- cd "$srcdir"/parse-$pkgver-py2
- python2 test_parse.py
}
-package_python-parse() {
- depends=('python')
-
+package() {
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd "$srcdir"/parse-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}
-
-
-package_python2-parse() {
- depends=('python2')
-
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
- cd "$srcdir"/parse-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
-}
More information about the arch-commits
mailing list