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

Antonio Rojas arojas at archlinux.org
Sat Nov 2 00:44:10 UTC 2019


    Date: Saturday, November 2, 2019 @ 00:44:08
  Author: arojas
Revision: 522121

Drop python2

Modified:
  python-hunter/trunk/PKGBUILD

----------+
 PKGBUILD |   43 ++++++++-----------------------------------
 1 file changed, 8 insertions(+), 35 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-02 00:40:10 UTC (rev 522120)
+++ PKGBUILD	2019-11-02 00:44:08 UTC (rev 522121)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-hunter
-pkgname=('python-hunter' 'python2-hunter')
+pkgname=python-hunter
 pkgver=3.0.3
 pkgrel=1
 arch=('x86_64')
@@ -8,25 +7,21 @@
 pkgdesc='Hunter is a flexible code tracing toolkit'
 license=('BSD')
 url='https://github.com/ionelmc/python-hunter'
-makedepends=('python-setuptools' 'python2-setuptools' 'python-manhole' 'python2-manhole'
-             'python-colorama' 'python2-colorama' 'cython' 'cython2')
-checkdepends=('python-pytest-benchmark' 'python2-pytest-benchmark' 'python-virtualenv'
-              'python2-virtualenv' 'python-pytest-runner' 'python2-pytest-runner' 'gdb'
-              'python-process-tests' 'python2-process-tests' 'python-aspectlib' 'python2-aspectlib')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/ionelmc/python-hunter/archive/v$pkgver.tar.gz")
+depends=('python-manhole' 'python-colorama')
+optdepends=('gdb: for remote support')
+makedepends=('python-setuptools' 'python-manhole' 'python-colorama' 'cython')
+checkdepends=('python-pytest-benchmark' 'python-virtualenv' 'python-pytest-runner' 'gdb'
+              'python-process-tests' 'python-aspectlib')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ionelmc/python-hunter/archive/v$pkgver.tar.gz")
 sha512sums=('366346c7029ad2a5885ff6f1a374f26c351a1a3a57e045cb9752a30b80766876487497ee311e5350295e5eb540e99d038fa775722c3bf7e5291b707200d8b1c0')
 
 prepare() {
   rm python-hunter-$pkgver/src/hunter/*.c
-  cp -a python-hunter-$pkgver{,-py2}
 }
 
 build() {
   cd "$srcdir"/python-hunter-$pkgver
   python setup.py build
-
-  cd "$srcdir"/python-hunter-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
@@ -40,32 +35,10 @@
     python setup.py install
     python setup.py pytest
   ) || warning "Tests failed"
-
-  cd "$srcdir"/python-hunter-$pkgver-py2
-  virtualenv2 "$srcdir/pyvenv-py2" --system-site-packages
-  (
-    . "$srcdir/pyvenv-py2/bin/activate"
-    python2 setup.py install
-    python2 setup.py pytest
-  ) || warning "Tests failed"
 }
 
-package_python-hunter() {
-  depends=('python-manhole' 'python-colorama')
-  optdepends=('gdb: for remote support')
-
+package() {
   cd python-hunter-$pkgver
   python setup.py install --root "$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-hunter() {
-  depends=('python2-manhole' 'python2-colorama')
-  optdepends=('gdb: for remote support')
-
-  cd python-hunter-$pkgver-py2
-  python2 setup.py install --root "$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  mv "$pkgdir"/usr/bin/hunter-trace{,2}
-}



More information about the arch-commits mailing list