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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 16:21:05 UTC 2020


    Date: Monday, November 9, 2020 @ 16:21:05
  Author: foutrelis
Revision: 747494

archrelease: copy trunk to community-staging-any

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

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

Copied: python-utils/repos/community-staging-any/PKGBUILD (from rev 747492, python-utils/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:21:05 UTC (rev 747494)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Maxim Andersson <thesilentboatman at gmail.com>
+# Contributor: NicoHood <archlinux {cat} nicohood {dog} de>
+
+pkgdesc="A module with some convenient utilities not included with the standard Python install"
+pkgname=python-utils
+pkgver=2.4.0
+pkgrel=2
+url="https://github.com/WoLpH/python-utils"
+license=('BSD')
+arch=('any')
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("https://pypi.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc})
+sha512sums=('bfad0ef30383df634b89bb2206a00e45434eff9fee9ba0eeab99361bacfb56f3fb420019608b639713a7e8777870de75becb1d7b48aa09c582df27f9ebe8c512'
+            'SKIP')
+validpgpkeys=('149325FD15904E9C4EB89E95E81444E9CE1F695D') # Rick van Hattem <wolph at wol.ph>
+
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  # don't care about custom pytest flags
+  rm -v pytest.ini
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  export PYTHONPATH="${PWD}/build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --prefix=/usr \
+                          --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list