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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:21:13 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:21:12
  Author: felixonmars
Revision: 1058076

archrelease: copy trunk to community-staging-any

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

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

Copied: python-sh/repos/community-staging-any/PKGBUILD (from rev 1058075, python-sh/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:21:12 UTC (rev 1058076)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: David Runge <dvzrv at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+
+pkgname=python-sh
+pkgver=1.14.2
+pkgrel=2
+pkgdesc='Subprocess interface that allows you to call any program as if it were a function'
+arch=('any')
+url='https://pypi.python.org/pypi/sh'
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('lsof' 'python-pytest')
+source=("https://pypi.io/packages/source/s/sh/sh-$pkgver.tar.gz")
+sha512sums=('b7917504ae85606e1986b681274077777ad3011639bfe933d4133c3ed16f930842e03b572caa396ca4d58f41fd5594bef776cc16c4b0fbd1242e57c6aad19e62')
+b2sums=('adc9004334a53f3704e22c318df6b4f60fd9ca2d31f5a9601f84abfaf0fe2ded06938b165e10b1a977ed38fcad7d0fa08799f2f552fc2c6b9b4c2a6476477115')
+
+build() {
+  cd sh-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd sh-$pkgver
+  export PYTHONPATH="build:${PYTHONPATH}"
+  # test_no_fd_leak: AssertionError: 27 != 25
+  pytest test.py --deselect test.py::MiscTests::test_no_fd_leak
+}
+
+package() {
+  cd sh-$pkgver
+  python setup.py install -O1 --root="$pkgdir"
+  install -vDm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/python-sh/LICENSE
+  install -vDm 644 {README.rst,CHANGELOG.md} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list