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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 10:04:45 UTC 2020


    Date: Thursday, November 12, 2020 @ 10:04:45
  Author: foutrelis
Revision: 751382

archrelease: copy trunk to community-staging-any

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

----------+
 PKGBUILD |  108 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 54 insertions(+), 54 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-12 10:04:44 UTC (rev 751381)
+++ PKGBUILD	2020-11-12 10:04:45 UTC (rev 751382)
@@ -1,54 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-importlib-metadata
-pkgname=(python-importlib-metadata python2-importlib-metadata)
-pkgver=2.0.0
-pkgrel=2
-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'
-              'python-importlib_resources' 'python2-importlib_resources' 'python-wheel'
-              'python2-wheel' 'python-pyfakefs' 'python-tests')
-source=("$pkgbase-$pkgver.tar.gz::https://gitlab.com/python-devs/importlib_metadata/-/archive/v$pkgver/importlib_metadata-v$pkgver.tar.bz2")
-sha512sums=('f424973dca95dbbfcbddd21b0ce26873b6e732d93722789efe4a6f2367caa21cf18a22dc7ea089167d98568ecbbe2e0e3fff1155017bf2d9d50fc3775024cb37')
-
-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-staging-any/PKGBUILD (from rev 751380, python-importlib-metadata/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-12 10:04:45 UTC (rev 751382)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-importlib-metadata
+pkgname=(python-importlib-metadata python2-importlib-metadata)
+pkgver=2.0.0
+pkgrel=3
+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'
+              'python-importlib_resources' 'python2-importlib_resources' 'python-wheel'
+              'python2-wheel' 'python-pyfakefs' 'python-tests')
+source=("$pkgbase-$pkgver.tar.gz::https://gitlab.com/python-devs/importlib_metadata/-/archive/v$pkgver/importlib_metadata-v$pkgver.tar.bz2")
+sha512sums=('f424973dca95dbbfcbddd21b0ce26873b6e732d93722789efe4a6f2367caa21cf18a22dc7ea089167d98568ecbbe2e0e3fff1155017bf2d9d50fc3775024cb37')
+
+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