[arch-commits] Commit in python-hunter/repos/community-x86_64 (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Aug 16 08:38:52 UTC 2020


    Date: Sunday, August 16, 2020 @ 08:38:52
  Author: felixonmars
Revision: 680858

archrelease: copy trunk to community-x86_64

Added:
  python-hunter/repos/community-x86_64/PKGBUILD
    (from rev 680857, python-hunter/trunk/PKGBUILD)
Deleted:
  python-hunter/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   97 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 53 insertions(+), 44 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-16 08:38:47 UTC (rev 680857)
+++ PKGBUILD	2020-08-16 08:38:52 UTC (rev 680858)
@@ -1,44 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-hunter
-pkgver=3.1.3
-pkgrel=1
-arch=('x86_64')
-pkgdesc='Hunter is a flexible code tracing toolkit'
-license=('BSD')
-url='https://github.com/ionelmc/python-hunter'
-depends=('python-manhole' 'python-colorama')
-optdepends=('gdb: for remote support')
-makedepends=('python-pip' 'python-wheel' 'python-manhole' '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=('ea9cc935240526d2942568073cecfb2bef32d7caedd0b370850b208a56c652bf356ba0e5675281946419aafd966cbff148490f6f4439d0d808335a3e831adbf7')
-
-prepare() {
-  rm python-hunter-$pkgver/src/hunter/*.c
-}
-
-build() {
-  cd "$srcdir"/python-hunter-$pkgver
-  python setup.py build
-}
-
-check() {
-  # Hack to process .pth files properly
-  # ptrace needed to pass the remote tests
-
-  cd "$srcdir"/python-hunter-$pkgver
-  virtualenv "$srcdir/pyvenv" --system-site-packages
-  (
-    . "$srcdir/pyvenv/bin/activate"
-    python setup.py install
-    python setup.py pytest
-  ) || warning "Tests failed"
-}
-
-package() {
-  cd python-hunter-$pkgver
-  python setup.py install --root "$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-hunter/repos/community-x86_64/PKGBUILD (from rev 680857, python-hunter/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-08-16 08:38:52 UTC (rev 680858)
@@ -0,0 +1,53 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-hunter
+pkgver=3.2.0
+pkgrel=1
+arch=('x86_64')
+pkgdesc='Hunter is a flexible code tracing toolkit'
+license=('BSD')
+url='https://github.com/ionelmc/python-hunter'
+depends=('python-colorama' 'python-cymem' 'python-manhole')
+optdepends=('gdb: for remote support')
+makedepends=('python-pip' 'python-wheel' 'cython')
+checkdepends=('python-pytest-benchmark' 'python-virtualenv' 'python-pytest' 'gdb'
+              'python-process-tests' 'python-aspectlib')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ionelmc/python-hunter/archive/v$pkgver.tar.gz")
+sha512sums=('6a2beec273dbe97424741877393cc143dcd3f7f34b3015c4bdba256db376311274db5792aa9435bbd47d64182c9febcd99ac602c792980bb5046cd0728e93aa5')
+
+prepare() {
+  cd python-hunter-$pkgver
+  rm src/hunter/*.c
+  rm -r src/hunter/vendor
+
+  sed -i 's/from .vendor.colorama/from colorama/' src/hunter/{actions,util}.py
+  sed -i 's/from .vendor._cymem.cymem/from cymem.cymem/' src/hunter/_event.pyx
+}
+
+build() {
+  cd "$srcdir"/python-hunter-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack to process .pth files properly
+  # ptrace needed to pass the remote tests
+
+  cd "$srcdir"/python-hunter-$pkgver
+  python tests/setup.py build_ext --inplace
+  virtualenv "$srcdir/pyvenv" --system-site-packages
+  (
+    . "$srcdir/pyvenv/bin/activate"
+    python setup.py install
+    PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.8" PATH="$srcdir/pyvenv/bin:$PATH" pytest
+  ) || :
+
+  # Clean up to prevent it from being installed
+  rm build/lib.linux-$CARCH-3.8/*.so
+}
+
+package() {
+  cd python-hunter-$pkgver
+  python 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