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

Felix Yan felixonmars at gemini.archlinux.org
Mon Aug 22 18:42:36 UTC 2022


    Date: Monday, August 22, 2022 @ 18:42:36
  Author: felixonmars
Revision: 454183

upgpkg: python-six 1.16.0-6: remove python2 subpackage

Modified:
  python-six/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++---------------------
 1 file changed, 7 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-22 18:37:20 UTC (rev 454182)
+++ PKGBUILD	2022-08-22 18:42:36 UTC (rev 454183)
@@ -2,40 +2,26 @@
 # Contributor: Jelle van der Waa <jelle at vdwaa.nl>
 # Contributer: Allan McRae <allan at archlinux.org>
 
-pkgbase=python-six
-pkgname=('python2-six' 'python-six')
+pkgname=python-six
 pkgver=1.16.0
-pkgrel=5
+pkgrel=6
 pkgdesc="Python 2 and 3 compatibility utilities"
 arch=('any')
 url="https://pypi.python.org/pypi/six/"
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 checkdepends=('python-pytest' 'tk')
 source=("https://pypi.io/packages/source/s/six/six-$pkgver.tar.gz")
 sha512sums=('076fe31c8f03b0b52ff44346759c7dc8317da0972403b84dfe5898179f55acdba6c78827e0f8a53ff20afe8b76432c6fe0d655a75c24259d9acbaa4d9e8015c0')
 
-build() {
-  cp -a six-$pkgver{,-py2}
-}
-
 check() {
-  cd "$srcdir"/six-$pkgver
+  cd six-$pkgver
   python -m pytest
 }
 
-package_python-six() {
-  depends=('python')
-
+package() {
   cd six-$pkgver
   python setup.py install --root "$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }
-
-package_python2-six() {
-  depends=('python2')
-
-  cd six-$pkgver-py2
-  python2 setup.py install --root "$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list