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

Felix Yan felixonmars at archlinux.org
Fri May 17 18:22:48 UTC 2019


    Date: Friday, May 17, 2019 @ 18:22:47
  Author: felixonmars
Revision: 467774

archrelease: copy trunk to community-testing-any

Added:
  python-importlib-metadata/repos/community-testing-any/
  python-importlib-metadata/repos/community-testing-any/PKGBUILD
    (from rev 467773, python-importlib-metadata/trunk/PKGBUILD)

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

Copied: python-importlib-metadata/repos/community-testing-any/PKGBUILD (from rev 467773, python-importlib-metadata/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-05-17 18:22:47 UTC (rev 467774)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-importlib-metadata
+pkgname=(python-importlib-metadata python2-importlib-metadata)
+pkgver=0.12
+pkgrel=1
+pkgdesc="Read metadata from Python packages"
+url="https://importlib-metadata.readthedocs.io"
+license=('Apache')
+arch=('any')
+makedepends=('python-setuptools-scm' 'python2-setuptools-scm' 'python2-contextlib2'
+             'python2-pathlib2' 'python2-configparser' 'python-zipp' 'python2-zipp')
+checkdepends=('python-pip' 'python2-pip' 'python-pytest-runner' 'python2-pytest-runner'
+              'python2-importlib_resources' 'python-wheel' 'python2-wheel')
+source=("$pkgbase-$pkgver.tar.gz::https://gitlab.com/python-devs/importlib_metadata/-/archive/$pkgver/importlib_metadata-$pkgver.tar.bz2")
+sha512sums=('b3b13580dc1007d1e9a603999b4c578cb0dbdfd35dacd9908cc232795ddd08d2567cb8305b5eb2bca1babc9c94a3b51341e0feea835944e5dab132527771db98')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  cp -a importlib_metadata-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/importlib_metadata-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/importlib_metadata-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/importlib_metadata-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/importlib_metadata-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-importlib-metadata() {
+  depends=('python-zipp')
+
+  cd importlib_metadata-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-importlib-metadata() {
+  depends=('python2-zipp' 'python2-configparser' 'python2-contextlib2' 'python2-pathlib2')
+
+  cd importlib_metadata-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list