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

Felix Yan felixonmars at archlinux.org
Thu Apr 23 08:46:23 UTC 2020


    Date: Thursday, April 23, 2020 @ 08:46:20
  Author: felixonmars
Revision: 617801

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  106 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 53 insertions(+), 53 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-23 08:46:10 UTC (rev 617800)
+++ PKGBUILD	2020-04-23 08:46:20 UTC (rev 617801)
@@ -1,53 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-importlib-metadata
-pkgname=(python-importlib-metadata python2-importlib-metadata)
-pkgver=1.5.0
-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' 'python-pyfakefs')
-source=("$pkgbase-$pkgver.tar.gz::https://gitlab.com/python-devs/importlib_metadata/-/archive/v$pkgver/importlib_metadata-v$pkgver.tar.bz2")
-sha512sums=('046c7f86947746bf54703b735142c254425f1b27307518302fcb3393598a0f0dde0509dda109cb174dfda617ec26033bc20b1d378a7df42335b71c0cb612361f')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-prepare() {
-  cp -a importlib_metadata-v$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/importlib_metadata-v$pkgver
-  python setup.py build
-
-  cd "$srcdir"/importlib_metadata-v$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/importlib_metadata-v$pkgver
-  python setup.py pytest
-
-  # pyfakefs dropped support for python 2.7
-  #cd "$srcdir"/importlib_metadata-v$pkgver-py2
-  #python2 setup.py pytest
-}
-
-package_python-importlib-metadata() {
-  depends=('python-zipp')
-
-  cd importlib_metadata-v$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-v$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-importlib-metadata/repos/community-any/PKGBUILD (from rev 617800, python-importlib-metadata/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-23 08:46:20 UTC (rev 617801)
@@ -0,0 +1,53 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-importlib-metadata
+pkgname=(python-importlib-metadata python2-importlib-metadata)
+pkgver=1.5.1
+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' 'python-pyfakefs')
+source=("$pkgbase-$pkgver.tar.gz::https://gitlab.com/python-devs/importlib_metadata/-/archive/v$pkgver/importlib_metadata-v$pkgver.tar.bz2")
+sha512sums=('4312cee4ce01b4d273f2e6154d5e83cda580cf5e07d6c0ce42b8b36e26959b224f8b5bb12d3de07829226214a42bdfe093035cf494d6fbb5a3f426e6a896bc14')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  cp -a importlib_metadata-v$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/importlib_metadata-v$pkgver
+  python setup.py build
+
+  cd "$srcdir"/importlib_metadata-v$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/importlib_metadata-v$pkgver
+  python setup.py pytest
+
+  # pyfakefs dropped support for python 2.7
+  #cd "$srcdir"/importlib_metadata-v$pkgver-py2
+  #python2 setup.py pytest
+}
+
+package_python-importlib-metadata() {
+  depends=('python-zipp')
+
+  cd importlib_metadata-v$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-v$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list