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

Jelle van der Waa jelle at archlinux.org
Sun Jul 12 11:19:45 UTC 2020


    Date: Sunday, July 12, 2020 @ 11:19:45
  Author: jelle
Revision: 663313

Remove python2 module

Modified:
  python-unittest-mixins/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++--------------------------
 1 file changed, 7 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-12 11:13:44 UTC (rev 663312)
+++ PKGBUILD	2020-07-12 11:19:45 UTC (rev 663313)
@@ -1,50 +1,31 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-unittest-mixins
-pkgname=('python-unittest-mixins' 'python2-unittest-mixins')
+pkgname=python-unittest-mixins
 pkgver=1.6
-pkgrel=3
+pkgrel=4
 pkgdesc='Helpful mixins for unittest classes'
 arch=('any')
 license=('Apache')
 url='https://github.com/nedbat/unittest-mixins'
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/nedbat/unittest-mixins/archive/v$pkgver.tar.gz")
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nedbat/unittest-mixins/archive/v$pkgver.tar.gz")
 sha512sums=('0d4a0bbf80264f34a03aebbb2668733cd3753f99b24b006ea6704a2b97df9fb51755e8c4efd0094219e65d25756ea31ff27d3892b32ab6829050236a6bcbc986')
 
-prepare() {
-  cp -a unittest-mixins-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/unittest-mixins-$pkgver
   python setup.py build
-
-  cd "$srcdir"/unittest-mixins-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/unittest-mixins-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/unittest-mixins-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-unittest-mixins() {
-  depends=('python-six')
-
+package() {
   cd unittest-mixins-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
 
-package_python2-unittest-mixins() {
-  depends=('python2-six')
-
-  cd unittest-mixins-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
 # vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list