[arch-commits] Commit in python-tqdm/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Fri Nov 8 20:04:47 UTC 2019
Date: Friday, November 8, 2019 @ 20:04:47
Author: arojas
Revision: 524652
Drop python2
Modified:
python-tqdm/trunk/PKGBUILD
----------+
PKGBUILD | 35 ++++++-----------------------------
1 file changed, 6 insertions(+), 29 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-08 19:15:57 UTC (rev 524651)
+++ PKGBUILD 2019-11-08 20:04:47 UTC (rev 524652)
@@ -1,7 +1,6 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-tqdm
-pkgname=('python-tqdm' 'python2-tqdm')
+pkgname=python-tqdm
pkgver=4.28.1
pkgrel=3
pkgdesc='Fast, Extensible Progress Meter'
@@ -8,48 +7,26 @@
arch=('any')
license=('MIT' 'MPL')
url='https://github.com/tqdm/tqdm'
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-nose' 'python2-nose' 'python-coverage' 'python2-coverage' 'flake8'
- 'python2-flake8')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/tqdm/tqdm/archive/v$pkgver.tar.gz")
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-coverage' 'flake8')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tqdm/tqdm/archive/v$pkgver.tar.gz")
sha512sums=('6bfccb83ede76a57fbad8e46bb0642a2db0f4bceedaed3428c7abb468a1f70bf4ac8097894416be9ab026877640db48953f40688ddcdf45ee52261bd3d61551b')
-prepare() {
- cp -a tqdm-$pkgver{,-py2}
-}
-
build() {
cd "$srcdir"/tqdm-$pkgver
python setup.py build
-
- cd "$srcdir"/tqdm-$pkgver-py2
- python2 setup.py build
}
check() {
cd "$srcdir"/tqdm-$pkgver
python setup.py nosetests --ignore-files="tests_perf\.py"
-
- cd "$srcdir"/tqdm-$pkgver-py2
- python2 setup.py nosetests --ignore-files="tests_perf\.py"
}
-package_python-tqdm() {
- depends=('python')
-
+package() {
cd tqdm-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
}
-package_python2-tqdm() {
- depends=('python2')
-
- cd tqdm-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
-
- mv "$pkgdir"/usr/bin/tqdm{,2}
-}
-
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list