[arch-commits] Commit in python-helper/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Mar 17 10:47:10 UTC 2019


    Date: Sunday, March 17, 2019 @ 10:47:09
  Author: felixonmars
Revision: 442350

upgpkg: python-helper 2.4.2-4

remove python2 sibling

Modified:
  python-helper/trunk/PKGBUILD

----------+
 PKGBUILD |   44 +++++++++++---------------------------------
 1 file changed, 11 insertions(+), 33 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-17 10:44:57 UTC (rev 442349)
+++ PKGBUILD	2019-03-17 10:47:09 UTC (rev 442350)
@@ -1,52 +1,30 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-helper
-pkgname=('python-helper' 'python2-helper')
+pkgname=python-helper
 pkgver=2.4.2
-pkgrel=3
+pkgrel=4
 pkgdesc="Development library for quickly writing configurable applications and daemons"
 arch=('any')
 license=('BSD')
 url="https://helper.readthedocs.org"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-yaml' 'python2-yaml' 'git')
-checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-coverage'
-              'python2-coverage')
-source=("git+https://github.com/gmr/helper.git#tag=$pkgver")
-sha512sums=('SKIP')
+depends=('python-yaml')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-mock' 'python-coverage')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/gmr/helper/archive/$pkgver.tar.gz")
+sha512sums=('56eca464eebc3e5a25f1b84c491b28c0f55f72fc3264598639fbd4200f87a1a3644b6edaba2201e97675fb33532a32df5a0e6bf0b2937b9951445666fc19c6f3')
 
-prepare() {
-  cp -a helper{,-py2}
-}
-
 build() {
-  cd "$srcdir"/helper
+  cd helper-$pkgver
   python setup.py build
-
-  cd "$srcdir"/helper-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/helper
+  cd helper-$pkgver
   nosetests3
-
-  cd "$srcdir"/helper-py2
-  nosetests2
 }
 
-package_python-helper() {
-  depends=('python-yaml')
-
-  cd helper
+package() {
+  cd helper-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-helper() {
-  depends=('python2-yaml')
-
-  cd helper-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-



More information about the arch-commits mailing list