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

Antonio Rojas arojas at archlinux.org
Sat Nov 2 00:32:55 UTC 2019


    Date: Saturday, November 2, 2019 @ 00:32:54
  Author: arojas
Revision: 522118

Drop python2

Modified:
  python-testfixtures/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++-----------------------------
 1 file changed, 7 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-02 00:26:19 UTC (rev 522117)
+++ PKGBUILD	2019-11-02 00:32:54 UTC (rev 522118)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-testfixtures
-pkgname=('python-testfixtures' 'python2-testfixtures')
+pkgname=python-testfixtures
 pkgver=6.10.0
 pkgrel=1
 pkgdesc="A collection of helpers and mock objects that are useful when writing unit tests or doc tests"
@@ -8,46 +7,25 @@
 arch=('any')
 license=('MIT')
 url="https://github.com/Simplistix/testfixtures"
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python2-mock'
-              'python-zope-component' 'python2-zope-component' 'python-sybil' 'python2-sybil'
-              'python-pytest-django' 'python2-pytest-django' 'python-django' 'python2-django'
-              'python-twisted' 'python2-twisted')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/Simplistix/testfixtures/archive/$pkgver.tar.gz")
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-zope-component' 'python-sybil'
+              'python-pytest-django' 'python-django' 'python-twisted')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Simplistix/testfixtures/archive/$pkgver.tar.gz")
 sha512sums=('0a4bed5c06d2059755026f6dfe6c0ccb37cf82e3526a4aa71721f0ad75cb475accf76f21834b84868b7ac6c94baeca95e84d1d3dd80556ad8bb1811b9cf60a2a')
 
-prepare() {
-  cp -a testfixtures-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/testfixtures-$pkgver
   python setup.py build
-
-  cd "$srcdir"/testfixtures-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/testfixtures-$pkgver
   python setup.py pytest --addopts "--ignore=build"
-
-  cd "$srcdir"/testfixtures-$pkgver-py2
-  python2 setup.py pytest --addopts "--ignore=build"
 }
 
-package_python-testfixtures() {
-  depends=('python')
-
+package() {
   cd testfixtures-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
 }
-
-package_python2-testfixtures() {
-  depends=('python2')
-
-  cd testfixtures-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
-}



More information about the arch-commits mailing list