[arch-commits] Commit in python-memory-profiler/repos/community-any (2 files)

Felix Yan felixonmars at archlinux.org
Fri Dec 4 22:19:18 UTC 2020


    Date: Friday, December 4, 2020 @ 22:19:18
  Author: felixonmars
Revision: 770139

archrelease: copy trunk to community-any

Added:
  python-memory-profiler/repos/community-any/PKGBUILD
    (from rev 770138, python-memory-profiler/trunk/PKGBUILD)
Deleted:
  python-memory-profiler/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   62 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 32 insertions(+), 30 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-04 22:19:07 UTC (rev 770138)
+++ PKGBUILD	2020-12-04 22:19:18 UTC (rev 770139)
@@ -1,30 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-memory-profiler
-pkgver=0.57
-pkgrel=3
-pkgdesc="A module for monitoring memory usage of a python program"
-url="https://github.com/pythonprofilers/memory_profiler"
-license=('BSD')
-arch=('any')
-depends=('python-psutil')
-makedepends=('python-setuptools')
-checkdepends=('python-numpy')
-source=("https://github.com/pythonprofilers/memory_profiler/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('c6e2f755656dc820dfc2cf7a659dc319b3d1aa0df144ac6a08db35f4b38a90a9b994cf9c8320b8370f51c97e0d0bf2f9c4a3ab070b4934879f8e579b732e426a')
-
-build() {
-  cd memory_profiler-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd memory_profiler-$pkgver
-  PYTHONPATH="$PWD"/build/lib make test
-}
-
-package() {
-  cd memory_profiler-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
-}

Copied: python-memory-profiler/repos/community-any/PKGBUILD (from rev 770138, python-memory-profiler/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-04 22:19:18 UTC (rev 770139)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-memory-profiler
+pkgver=0.58.0
+pkgrel=1
+pkgdesc="A module for monitoring memory usage of a python program"
+url="https://github.com/pythonprofilers/memory_profiler"
+license=('BSD')
+arch=('any')
+depends=('python-psutil')
+makedepends=('python-setuptools')
+checkdepends=('python-numpy')
+source=("https://github.com/pythonprofilers/memory_profiler/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('5c02933acffc05f42d2ae98a069d36563e1d26515d439d94ad3903960dd06cd378faae3000b26c022770e71e83db6f770ceaf63cabb92f4159bda0ff9cc4e849')
+
+build() {
+  cd memory_profiler-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd memory_profiler-$pkgver
+  # Hack entry points by installing it
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" PATH="$PWD/tmp_install/usr/bin:$PATH" make test
+}
+
+package() {
+  cd memory_profiler-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}



More information about the arch-commits mailing list