[arch-commits] Commit in python-setproctitle/repos/community-testing-x86_64 (2 files)

Massimiliano Torromeo mtorromeo at archlinux.org
Tue Dec 1 10:11:39 UTC 2020


    Date: Tuesday, December 1, 2020 @ 10:11:39
  Author: mtorromeo
Revision: 767153

archrelease: copy trunk to community-testing-x86_64

Added:
  python-setproctitle/repos/community-testing-x86_64/PKGBUILD
    (from rev 767152, python-setproctitle/trunk/PKGBUILD)
Deleted:
  python-setproctitle/repos/community-testing-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-01 10:11:26 UTC (rev 767152)
+++ PKGBUILD	2020-12-01 10:11:39 UTC (rev 767153)
@@ -1,23 +0,0 @@
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgname=python-setproctitle
-pkgver=1.2
-pkgrel=8
-pkgdesc="Allows a python process to change its process title"
-license=("BSD")
-url="https://github.com/dvarrazzo/py-setproctitle"
-depends=('python')
-arch=('x86_64')
-source=(https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-$pkgver.tar.gz)
-sha256sums=('9b4e48722dd96cbd66d5bf2eab930fff8546cd551dd8d774c8a319448bd381a6')
-
-build() {
-    cd "$srcdir"/setproctitle-$pkgver
-    python setup.py build
-}
-
-package_python-setproctitle() {
-    cd "$srcdir"/setproctitle-$pkgver
-    python setup.py install --skip-build -O1 --root="$pkgdir"
-    install -m0644 -D COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
-}

Copied: python-setproctitle/repos/community-testing-x86_64/PKGBUILD (from rev 767152, python-setproctitle/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-01 10:11:39 UTC (rev 767153)
@@ -0,0 +1,30 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=python-setproctitle
+pkgver=1.2
+pkgrel=9
+pkgdesc="Allows a python process to change its process title"
+license=("BSD")
+url="https://github.com/dvarrazzo/py-setproctitle"
+depends=('python')
+checkdepends=('python-pytest' 'procps-ng')
+arch=('x86_64')
+source=(https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-$pkgver.tar.gz)
+sha256sums=('9b4e48722dd96cbd66d5bf2eab930fff8546cd551dd8d774c8a319448bd381a6')
+
+build() {
+    cd "$srcdir"/setproctitle-$pkgver
+    python setup.py build
+}
+
+check() {
+    local _pyver=$(python -c "import sys; print('{0}.{1}'.format(*sys.version_info[:2]))")
+    cd "$srcdir"/setproctitle-$pkgver/build/lib.linux-$CARCH-$_pyver
+    python -m pytest ../../tests
+}
+
+package_python-setproctitle() {
+    cd "$srcdir"/setproctitle-$pkgver
+    python setup.py install --skip-build -O1 --root="$pkgdir"
+    install -m0644 -D COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
+}



More information about the arch-commits mailing list