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

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 2 23:36:41 UTC 2021


    Date: Thursday, December 2, 2021 @ 23:36:41
  Author: felixonmars
Revision: 1063179

archrelease: copy trunk to community-staging-any

Added:
  python-tree-format/repos/community-staging-any/
  python-tree-format/repos/community-staging-any/PKGBUILD
    (from rev 1063176, python-tree-format/trunk/PKGBUILD)

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

Copied: python-tree-format/repos/community-staging-any/PKGBUILD (from rev 1063176, python-tree-format/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-02 23:36:41 UTC (rev 1063179)
@@ -0,0 +1,39 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=tree-format
+pkgname=python-tree-format
+pkgver=0.1.2
+pkgrel=4
+pkgdesc="Python library for printing trees on the console"
+arch=('any')
+url="https://github.com/jml/tree-format"
+license=('Apache')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-testtools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('386b1d5852d70623514c6284cb2d4b7abe10c7b3b39ba2aca321d3590a065ad7cf1390fd518f9792bfbb9c13730beaf3504c399e25d39494e95af564a0f5b639')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list