[arch-commits] Commit in python-routes/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sat Nov 23 21:55:30 UTC 2019
Date: Saturday, November 23, 2019 @ 21:55:30
Author: arojas
Revision: 532388
Drop python2
Modified:
python-routes/trunk/PKGBUILD
----------+
PKGBUILD | 36 ++++++++----------------------------
1 file changed, 8 insertions(+), 28 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-23 21:52:08 UTC (rev 532387)
+++ PKGBUILD 2019-11-23 21:55:30 UTC (rev 532388)
@@ -2,8 +2,7 @@
# Contributor: SpepS <dreamspepser at yahoo.it>
# Contributor: James Bulmer <nekinie at gmail.com>
-pkgbase=python-routes
-pkgname=(python-routes python2-routes)
+pkgname=python-routes
pkgver=2.4.1
pkgrel=4
pkgdesc="Routing recognition and generation tools"
@@ -10,43 +9,24 @@
arch=("any")
url="https://pypi.python.org/pypi/Routes"
license=("custom:BSD")
-makedepends=('python-setuptools' 'python2-setuptools' 'python-repoze.lru' 'python2-repoze.lru' 'python-six' 'python2-six')
-checkdepends=('python-nose' 'python2-nose' 'python-webob' 'python2-webob' 'python-coverage' 'python2-coverage')
+depends=("python-repoze.lru" 'python-six')
+makedepends=('python-setuptools' 'python-repoze.lru' 'python-six')
+checkdepends=('python-nose' 'python-webob' 'python-coverage')
source=("https://pypi.io/packages/source/R/Routes/Routes-$pkgver.tar.gz")
md5sums=('c058dff6832941dec47e0d0052548ad8')
-prepare() {
- cp -a Routes-${pkgver}{,-py2}
-}
-
build() {
- cd "$srcdir"/Routes-$pkgver
+ cd Routes-$pkgver
python setup.py build
-
- cd "$srcdir"/Routes-$pkgver-py2
- python2 setup.py build
}
check() {
- cd "$srcdir"/Routes-$pkgver
+ cd Routes-$pkgver
nosetests3
-
- cd "$srcdir"/Routes-$pkgver-py2
- nosetests2
}
-package_python-routes() {
- depends=("python-repoze.lru" 'python-six')
-
- cd "$srcdir"/Routes-$pkgver
+package() {
+ cd Routes-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
-
-package_python2-routes() {
- depends=("python2-repoze.lru" 'python2-six')
-
- cd "$srcdir"/Routes-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}
More information about the arch-commits
mailing list