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

Jelle van der Waa jelle at archlinux.org
Wed May 13 19:35:32 UTC 2020


    Date: Wednesday, May 13, 2020 @ 19:35:31
  Author: jelle
Revision: 627765

remove unused python2 module

Modified:
  python-aspectlib/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++----------------------------
 1 file changed, 7 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-13 19:31:20 UTC (rev 627764)
+++ PKGBUILD	2020-05-13 19:35:31 UTC (rev 627765)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-aspectlib
-pkgname=('python-aspectlib' 'python2-aspectlib')
+pkgname=python-aspectlib
 pkgver=1.4.2
 pkgrel=5
 pkgdesc="Development library for quickly writing configurable applications and daemons"
@@ -8,45 +7,25 @@
 arch=('any')
 license=('BSD')
 url="https://github.com/ionelmc/python-aspectlib"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-fields' 'python2-fields')
-checkdepends=('python-mock' 'python2-mock' 'python-tornado' 'python2-tornado'
-              'python-process-tests' 'python2-process-tests' 'python2-trollius'
-              'python-profilestats' 'python2-profilestats' 'python-pytest' 'python2-pytest') # 'mysql-python')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/ionelmc/python-aspectlib/archive/v$pkgver.tar.gz")
+depends=('python-fields')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-tornado' 'python-process-tests'
+              'python-profilestats' 'python-pytest') # 'mysql-python')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ionelmc/python-aspectlib/archive/v$pkgver.tar.gz")
 sha512sums=('fadb90b625ce2faac8f6d29ee28efaee09b4338c3c516c79d9e8753b7fb2ff45e0033174c5c5302f47f1f9e332824f37d56667fb05e66f85b808e8aa3a086f57')
 
-prepare() {
-  cp -a python-aspectlib-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/python-aspectlib-$pkgver
   python setup.py build
-
-  cd "$srcdir"/python-aspectlib-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/python-aspectlib-$pkgver
   LC_CTYPE=en_US.UTF-8 py.test || warning "https://github.com/ionelmc/python-aspectlib/issues/11"
-
-  cd "$srcdir"/python-aspectlib-$pkgver-py2
-  py.test2 || warning "Tests failed"
 }
 
-package_python-aspectlib() {
-  depends=('python-fields')
-
+package() {
   cd python-aspectlib-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-aspectlib() {
-  depends=('python2-fields')
-
-  cd python-aspectlib-$pkgver-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