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

Evangelos Foutras foutrelis at archlinux.org
Sat Oct 26 20:35:14 UTC 2019


    Date: Saturday, October 26, 2019 @ 20:35:14
  Author: foutrelis
Revision: 520603

archrelease: copy trunk to community-staging-any

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

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

Copied: python-objgraph/repos/community-staging-any/PKGBUILD (from rev 520602, python-objgraph/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 20:35:14 UTC (rev 520603)
@@ -0,0 +1,53 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-objgraph
+pkgname=(python-objgraph python2-objgraph)
+pkgver=3.4.1
+pkgrel=2
+pkgdesc="Draws Python object reference graphs with graphviz"
+url="https://github.com/mgedmin/objgraph"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-mock' 'python2-mock' 'graphviz')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/mgedmin/objgraph/archive/$pkgver.tar.gz")
+sha512sums=('9139db6ca96801330ebc14ec485aae360de012b76060a9ea25d9ba1e7113bcdd6f161bab2313e9c8ab3cd1448dc466d028a394d6729d965884f91384a4fc1338')
+
+prepare() {
+  # Only for ipython support
+  sed -i "/'graphviz'/d" objgraph-$pkgver/setup.py
+
+  cp -a objgraph-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/objgraph-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/objgraph-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/objgraph-$pkgver
+  python setup.py test
+
+  cd "$srcdir"/objgraph-$pkgver-py2
+  python2 setup.py test
+}
+
+package_python-objgraph() {
+  depends=('python')
+
+  cd objgraph-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-objgraph() {
+  depends=('python2')
+
+  cd objgraph-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list