[arch-commits] Commit in python-hunter/repos (2 files)

2020-03-13 Thread Felix Yan via arch-commits
Date: Friday, March 13, 2020 @ 13:51:29
  Author: felixonmars
Revision: 595958

archrelease: copy trunk to community-testing-x86_64

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

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

Copied: python-hunter/repos/community-testing-x86_64/PKGBUILD (from rev 595957, 
python-hunter/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-03-13 13:51:29 UTC (rev 595958)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+
+pkgname=python-hunter
+pkgver=3.1.1
+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=('1d4f2dc0c7a8e13ac16db556c63a6726b7815d1cbe4ce265a5755323e5d05354d3d4926042950edff1d0330444fa7289bd22f25c792b05efad8bf8c8f5bc2d72')
+
+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
+}


[arch-commits] Commit in python-hunter/repos (2 files)

2020-02-27 Thread Felix Yan via arch-commits
Date: Thursday, February 27, 2020 @ 08:55:45
  Author: felixonmars
Revision: 583661

archrelease: copy trunk to community-testing-x86_64

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

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

Copied: python-hunter/repos/community-testing-x86_64/PKGBUILD (from rev 583660, 
python-hunter/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-02-27 08:55:45 UTC (rev 583661)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+
+pkgname=python-hunter
+pkgver=3.1.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-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=('fac5e82316d0f7ff9650093338d06ee6a2cb16c0bdf3da544d9707b77e23d13a2a54c7d68b7bc22a0feb938673e75527679b7dc07b0f6232ae79d7f4f6960dda')
+
+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
+}


[arch-commits] Commit in python-hunter/repos (2 files)

2019-11-03 Thread Felix Yan via arch-commits
Date: Monday, November 4, 2019 @ 06:37:29
  Author: felixonmars
Revision: 523443

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: python-hunter/repos/community-staging-x86_64/PKGBUILD (from rev 523441, 
python-hunter/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-11-04 06:37:29 UTC (rev 523443)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan 
+
+pkgname=python-hunter
+pkgver=3.0.3
+pkgrel=2
+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-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
+}
+
+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
+}


[arch-commits] Commit in python-hunter/repos (2 files)

2018-12-30 Thread Felix Yan via arch-commits
Date: Sunday, December 30, 2018 @ 21:15:03
  Author: felixonmars
Revision: 419775

archrelease: copy trunk to community-testing-x86_64

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

--+
 PKGBUILD |   73 +
 1 file changed, 73 insertions(+)

Copied: python-hunter/repos/community-testing-x86_64/PKGBUILD (from rev 419773, 
python-hunter/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2018-12-30 21:15:03 UTC (rev 419775)
@@ -0,0 +1,73 @@
+# Maintainer: Felix Yan 
+
+pkgbase=python-hunter
+pkgname=('python-hunter' 'python2-hunter')
+pkgver=2.1.0
+pkgrel=1
+arch=('x86_64')
+pkgdesc='Hunter is a flexible code tracing toolkit'
+license=('BSD')
+url='https://github.com/ionelmc/python-hunter'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-fields' 
'python2-fields'
+ 'python-colorama' 'python2-colorama' 'python-six' 'python2-six' 
'cython' 'cython2')
+checkdepends=('python-pytest-benchmark' 'python2-pytest-benchmark' 
'python-virtualenv'
+  'python2-virtualenv' 'python-pytest-runner' 
'python2-pytest-runner' 'gdb'
+  'python-manhole' 'python2-manhole' 'python-process-tests' 
'python2-process-tests')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/ionelmc/python-hunter/archive/v$pkgver.tar.gz;)
+sha512sums=('a7a6790029ba477a492cdd3f48e84a6239d6fd6a70b3fe0c5d5dc0218ad8e397d8ddd7ba800db4ef96b73106573cd78444725bb13c7f3fcd34102ff0abd4ee55')
+
+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() {
+  # 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"
+
+  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-fields' 'python-colorama' 'python-six')
+  optdepends=('python-manhole: for remote support'
+  'gdb: for remote support')
+
+  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-fields' 'python2-colorama' 'python2-six')
+  optdepends=('python2-manhole: for remote support'
+  '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}
+}


[arch-commits] Commit in python-hunter/repos (2 files)

2018-07-24 Thread Felix Yan via arch-commits
Date: Tuesday, July 24, 2018 @ 17:53:17
  Author: felixonmars
Revision: 363308

archrelease: copy trunk to community-staging-x86_64

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

--+
 PKGBUILD |   75 +
 1 file changed, 75 insertions(+)

Copied: python-hunter/repos/community-staging-x86_64/PKGBUILD (from rev 363307, 
python-hunter/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-24 17:53:17 UTC (rev 363308)
@@ -0,0 +1,75 @@
+# $Id: PKGBUILD 141472 2015-09-22 16:00:29Z fyan $
+# Maintainer: Felix Yan 
+
+pkgbase=python-hunter
+pkgname=('python-hunter' 'python2-hunter')
+pkgver=2.0.2
+pkgrel=2
+arch=('x86_64')
+pkgdesc='Hunter is a flexible code tracing toolkit'
+license=('BSD')
+url='https://github.com/ionelmc/python-hunter'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-fields' 
'python2-fields'
+ 'python-colorama' 'python2-colorama' 'python-six' 'python2-six' 
'cython' 'cython2')
+checkdepends=('python-pytest-benchmark' 'python2-pytest-benchmark' 
'python-virtualenv'
+  'python2-virtualenv' 'python-pytest-runner' 
'python2-pytest-runner' 'gdb'
+  'python-manhole' 'python2-manhole' 'python-process-tests' 
'python2-process-tests')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/ionelmc/python-hunter/archive/v$pkgver.tar.gz;)
+sha512sums=('e0f6ea2e19f389228e00e5e3c31f6477ab5d9776ae31b68bcd686a96fb5c4bce2c41643695e67c3d2cec9837e0f4e0e8898b513310deaf8ddc8e7b56ad0475a2')
+
+prepare() {
+  sed -i "s|'-mtarget'|'tests/target.py'|" 
python-hunter-$pkgver/tests/test_remote.py
+  sed -i -e 's|exc_|curexc_|g' -e 's|curcurexc|curexc|g' 
python-hunter-$pkgver/src/hunter/{_predicates.c,_event.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() {
+  # 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"
+
+  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-fields' 'python-colorama' 'python-six')
+  optdepends=('python-manhole: for remote support'
+  'gdb: for remote support')
+
+  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-fields' 'python2-colorama' 'python2-six')
+  optdepends=('python2-manhole: for remote support'
+  '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}
+}


[arch-commits] Commit in python-hunter/repos (2 files)

2015-09-22 Thread Felix Yan
Date: Wednesday, September 23, 2015 @ 06:33:34
  Author: fyan
Revision: 141506

archrelease: copy trunk to community-staging-any

Added:
  python-hunter/repos/community-staging-any/
  python-hunter/repos/community-staging-any/PKGBUILD
(from rev 141505, python-hunter/trunk/PKGBUILD)

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

Copied: python-hunter/repos/community-staging-any/PKGBUILD (from rev 141505, 
python-hunter/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2015-09-23 04:33:34 UTC (rev 141506)
@@ -0,0 +1,53 @@
+# $Id: PKGBUILD 141472 2015-09-22 16:00:29Z fyan $
+# Maintainer: Felix Yan 
+
+pkgbase=python-hunter
+pkgname=('python-hunter' 'python2-hunter')
+pkgver=0.5.0
+pkgrel=1
+arch=('any')
+pkgdesc='Hunter is a flexible code tracing toolkit'
+url='https://github.com/ionelmc/python-hunter'
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-fields' 
'python2-fields'
+ 'python-colorama' 'python2-colorama' 'git')
+checkdepends=('python-pytest-capturelog' 'python2-pytest-capturelog'
+  'python-pytest-cov' 'python2-pytest-cov')
+source=("git+https://github.com/ionelmc/python-hunter.git#tag=v$pkgver;)
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a python-hunter{,-py2}
+}
+
+build() {
+  cd python-hunter
+  python setup.py build
+
+  cd ../python-hunter-py2
+  python2 setup.py build
+}
+
+check() {
+  cd python-hunter
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test tests || warning "Tests 
failed"
+
+  cd ../python-hunter-py2
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2 tests || warning "Tests 
failed"
+}
+
+package_python-hunter() {
+  depends=('python')
+
+  cd python-hunter
+  python setup.py install --root "${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-hunter() {
+  depends=('python2')
+
+  cd python-hunter-py2
+  python2 setup.py install --root "${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}