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

Felix Yan felixonmars at archlinux.org
Fri May 1 17:24:47 UTC 2020


    Date: Friday, May 1, 2020 @ 17:24:47
  Author: felixonmars
Revision: 624098

archrelease: copy trunk to community-any

Added:
  python-importlib-metadata/repos/community-any/PKGBUILD
    (from rev 624097, 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-05-01 17:24:30 UTC (rev 624097)
+++ PKGBUILD	2020-05-01 17:24:47 UTC (rev 624098)
@@ -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.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
-}

Copied: python-importlib-metadata/repos/community-any/PKGBUILD (from rev 624097, python-importlib-metadata/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-01 17:24:47 UTC (rev 624098)
@@ -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.2
+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=('a2d007fe541493a665170a746b6e0613b71a07f0a032affddb5562c57b8b28c439d108c934dd5a44da451e5f0a03c1d707ee0eae5cc079450f9d8fd7c000b817')
+
+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