[arch-commits] Commit in python-importlib-metadata/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sun Dec 6 19:23:05 UTC 2020


    Date: Sunday, December 6, 2020 @ 19:23:05
  Author: ffy00
Revision: 771122

upgpkg: python-importlib-metadata 3.1.1-1

Modified:
  python-importlib-metadata/trunk/PKGBUILD

----------+
 PKGBUILD |   45 ++++++++++++---------------------------------
 1 file changed, 12 insertions(+), 33 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-06 19:22:59 UTC (rev 771121)
+++ PKGBUILD	2020-12-06 19:23:05 UTC (rev 771122)
@@ -1,54 +1,33 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-importlib-metadata
-pkgname=(python-importlib-metadata python2-importlib-metadata)
-pkgver=2.0.0
-pkgrel=3
+pkgname=python-importlib-metadata
+pkgver=3.1.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'
-              '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')
+depends=('python-zipp')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pip' 'python-pytest-runner' 'python-importlib_resources'
+              'python-wheel' 'python-pyfakefs' 'python-tests')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/python/importlib_metadata/archive/v$pkgver.tar.gz")
+sha512sums=('ddebb9b785afb0da6bcb4c5e226efd57b80951b17a180fed623f049b0aa75864815020cd7b0c08794573e09768bd4b801551f267f257d999ac2b15a6be5d30e0')
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 
-prepare() {
-  cp -a importlib_metadata-v$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/importlib_metadata-v$pkgver
+  cd importlib_metadata-$pkgver
   python setup.py build
-
-  cd "$srcdir"/importlib_metadata-v$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/importlib_metadata-v$pkgver
+  cd importlib_metadata-$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
+  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-v$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}



More information about the arch-commits mailing list