[arch-commits] Commit in python-hacking/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Tue May 12 19:56:55 UTC 2020
Date: Tuesday, May 12, 2020 @ 19:56:55
Author: jelle
Revision: 627220
upgpkg: python-hacking 3.0.0-2
Remove python2 module
Modified:
python-hacking/trunk/PKGBUILD
----------+
PKGBUILD | 25 ++++---------------------
1 file changed, 4 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-12 19:54:43 UTC (rev 627219)
+++ PKGBUILD 2020-05-12 19:56:55 UTC (rev 627220)
@@ -1,15 +1,14 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-hacking
-pkgname=('python-hacking' 'python2-hacking')
+pkgname=python-hacking
pkgver=3.0.0
-pkgrel=1
+pkgrel=2
arch=('any')
pkgdesc='OpenStack Hacking Guideline Enforcement'
url='https://docs.openstack.org/developer/hacking'
license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
- 'flake8' 'python2-flake8')
+depends=('python-six' 'flake8')
+makedepends=('python-setuptools' 'python-pbr' 'flake8')
checkdepends=('python-oslotest')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack-dev/hacking/archive/$pkgver.tar.gz")
sha512sums=('cdb1b8edc4dd0ffc4aee38df31b43a7f89fc4b36a9289459c3ff18db2a7759d0146ad2d03d0570f5cd51489614097df7acf5bd2fd0aac4f5a92259fd44003ebc')
@@ -16,16 +15,9 @@
export PBR_VERSION=$pkgver
-prepare() {
- cp -a hacking-$pkgver{,-py2}
-}
-
build() {
cd "$srcdir"/hacking-$pkgver
python setup.py build
-
- cd "$srcdir"/hacking-$pkgver-py2
- python2 setup.py build
}
check() {
@@ -34,15 +26,6 @@
}
package_python-hacking() {
- depends=('python-six' 'flake8')
-
cd hacking-$pkgver
python setup.py install --root "$pkgdir" --optimize=1
}
-
-package_python2-hacking() {
- depends=('python2-six' 'python2-flake8')
-
- cd hacking-$pkgver-py2
- python2 setup.py install --root "$pkgdir" --optimize=1
-}
More information about the arch-commits
mailing list