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

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 21:41:53 UTC 2021


    Date: Tuesday, November 30, 2021 @ 21:41:53
  Author: foutrelis
Revision: 1058932

archrelease: copy trunk to community-staging-any

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

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

Copied: python-importlib_resources/repos/community-staging-any/PKGBUILD (from rev 1058930, python-importlib_resources/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 21:41:53 UTC (rev 1058932)
@@ -0,0 +1,37 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=importlib_resources
+pkgname=python-importlib_resources
+pkgver=5.4.0
+pkgrel=2
+pkgdesc="Design and implementation for a planned importlib.resources"
+arch=('any')
+url="https://github.com/python/importlib_resources"
+license=('Apache')
+depends=('python-zipp')
+makedepends=('python-setuptools-scm' 'python-toml')
+checkdepends=('python-pytest' 'python-tests')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('9262c185bdf79fad0a11caabc5c5df836702a74e140a9f60ace857e3f6a60fdb091639b2fb7129b17bad5a46968f43dda7d176fe39af495370dd31f04891fb1b')
+b2sums=('f5be47cb63813aea15f65d251115cf398f695041871fdf6e8885fee11d9a9d7a2fbfd07efd494bd7c91077f99ab871e06d45f49de9f7e501a1691601206bfb55')
+
+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 --optimize=1 --root="${pkgdir}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list