[arch-commits] Commit in python-click-plugins/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Tue May 12 19:27:45 UTC 2020
Date: Tuesday, May 12, 2020 @ 19:27:45
Author: jelle
Revision: 627192
upgpkg: python-click-plugins 1.1.1-5
Remove unused python2 module
Modified:
python-click-plugins/trunk/PKGBUILD
----------+
PKGBUILD | 25 +++++--------------------
1 file changed, 5 insertions(+), 20 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-12 19:25:35 UTC (rev 627191)
+++ PKGBUILD 2020-05-12 19:27:45 UTC (rev 627192)
@@ -3,28 +3,22 @@
# Contributor: Carl George < arch at cgtx dot us >
_name="click-plugins"
-pkgname=("python-click-plugins" "python2-click-plugins")
+pkgname=python-click-plugins
pkgver=1.1.1
-pkgrel=4
+pkgrel=5
pkgdesc="An extension module for click to enable registering CLI commands via setuptools entry-points."
arch=("any")
url="https://github.com/click-contrib/click-plugins"
license=("BSD")
depends=("python-click")
-makedepends=("python-setuptools" "python2-setuptools")
-checkdepends=("python-pytest" "python2-pytest" "python-click" "python2-click")
+makedepends=("python-setuptools")
+checkdepends=("python-pytest" "python-click")
source=("https://pypi.python.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('46ab999744a9d831159c3411bb0c79346d94a444df9a3a3742e9ed63645f264b')
-prepare() {
- cp -a "$srcdir/$_name-$pkgver" "$srcdir/$_name-$pkgver-python2"
-}
-
build() {
cd "$srcdir/$_name-$pkgver"
python setup.py build
- cd "$srcdir/$_name-$pkgver-python2"
- python2 setup.py build
}
check() {
@@ -31,20 +25,11 @@
export LC_ALL="en_US.UTF-8"
cd "$srcdir/$_name-$pkgver"
py.test tests
- cd "$srcdir/$_name-$pkgver-python2"
- py.test2 tests
}
-package_python-click-plugins() {
+package() {
depends=("python-click")
cd "$srcdir/$_name-$pkgver"
python setup.py install --skip-build --root="$pkgdir" --optimize=1
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-
-package_python2-click-plugins() {
- depends=("python2-click")
- cd "$srcdir/$_name-$pkgver-python2"
- python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
More information about the arch-commits
mailing list