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

Felix Yan felixonmars at archlinux.org
Sun Mar 17 10:24:18 UTC 2019


    Date: Sunday, March 17, 2019 @ 10:24:17
  Author: felixonmars
Revision: 442334

upgpkg: python-cram 0.7-5

remove python2 sibling

Modified:
  python-cram/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-17 10:23:55 UTC (rev 442333)
+++ PKGBUILD	2019-03-17 10:24:17 UTC (rev 442334)
@@ -2,50 +2,28 @@
 # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
 # Contributor: Thomas S Hatch <thatch45 at gmail.com>
 
-pkgbase=python-cram
-pkgname=('python-cram' 'python2-cram')
+pkgname=python-cram
 pkgver=0.7
-pkgrel=4
+pkgrel=5
 pkgdesc='Functional tests for command line applications'
 arch=('any')
 url='https://bitheap.org/cram/'
 license=('GPL')
-makedepends=('python' 'python2' 'git')
+depends=('python')
 source=("https://bitheap.org/cram/cram-$pkgver.tar.gz")
-md5sums=('2ea37ada5190526b9bcaac5e4099221c')
+sha512sums=('9fa57e504abac8fd15bf5ff4a74405cb7acd10fd4c797adee87052a4f1c4e975bbc0f4219afd9485358b2c2939b48b3ffe538ae2abc6eea71e0ba8b458d50103')
 
-prepare() {
-  cp -a cram-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/cram-$pkgver
   python setup.py build
-
-  cd "$srcdir"/cram-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/cram-$pkgver
   PYTHONPATH="$PWD/build/lib:$PYTHONPATH" PYTHON=python python scripts/cram tests
-
-  cd "$srcdir"/cram-$pkgver-py2
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" PYTHON=python2 python2 scripts/cram tests
 }
 
-package_python-cram() {
-  depends=('python')
-
+package() {
   cd cram-$pkgver
   python setup.py install --root="$pkgdir" -O1
 }
-
-package_python2-cram() {
-  depends=('python2')
-
-  cd cram-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" -O1
-
-  mv "$pkgdir"/usr/bin/cram{,2}
-}


More information about the arch-commits mailing list