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

Jelle van der Waa jelle at archlinux.org
Wed Oct 30 20:55:09 UTC 2019


    Date: Wednesday, October 30, 2019 @ 20:55:09
  Author: jelle
Revision: 521004

drop python2-invoke

Modified:
  python-invoke/trunk/PKGBUILD

----------+
 PKGBUILD |   32 +++++---------------------------
 1 file changed, 5 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-30 20:55:01 UTC (rev 521003)
+++ PKGBUILD	2019-10-30 20:55:09 UTC (rev 521004)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-invoke
-pkgname=(python-invoke python2-invoke)
+pkgname=python-invoke
 pkgver=1.3.0
 pkgrel=3
 pkgdesc="Pythonic task execution"
@@ -8,49 +7,28 @@
 url="https://github.com/pyinvoke/invoke"
 license=('BSD')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock'
-              'python-pytest-relaxed' 'python2-pytest-relaxed')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-mock' 'python-pytest-relaxed')
 source=("https://pypi.io/packages/source/i/invoke/invoke-$pkgver.tar.gz")
 sha512sums=('c33e383d92065d2b9ca75dff3d51e46f19245a156535835b7545cf26ab4f839db7cac95328c4f370cda1a61432cc2ab85ba0f88b67f4b0c3a57cbeaff591e34c')
 
 prepare() {
   find invoke-$pkgver -type f -name '*.pyc' -delete
-  cp -a invoke-$pkgver{,-py2}
 }
 
 build() {
   cd "$srcdir"/invoke-$pkgver
   python setup.py build
-
-  cd "$srcdir"/invoke-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/invoke-$pkgver
   python setup.py pytest || warning "Tests failed"
-
-  cd "$srcdir"/invoke-$pkgver-py2
-  python2 setup.py pytest || warning "Tests failed"
 }
 
-package_python-invoke() {
-  depends=('python')
-
+package() {
   cd invoke-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-invoke() {
-  depends=('python2')
-
-  cd invoke-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  for _exe in "$pkgdir"/usr/bin/*; do
-    mv "$_exe"{,2}
-  done
-}



More information about the arch-commits mailing list