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

Felix Yan felixonmars at archlinux.org
Mon Mar 16 12:39:32 UTC 2020


    Date: Monday, March 16, 2020 @ 12:39:32
  Author: felixonmars
Revision: 599710

upgpkg: python-iocapture 0.1.2-6: remove python2 sibling

Modified:
  python-iocapture/trunk/PKGBUILD

----------+
 PKGBUILD |   50 ++++++++++++++------------------------------------
 1 file changed, 14 insertions(+), 36 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 12:39:31 UTC (rev 599709)
+++ PKGBUILD	2020-03-16 12:39:32 UTC (rev 599710)
@@ -1,52 +1,30 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-iocapture
-pkgname=('python-iocapture' 'python2-iocapture')
+pkgname=python-iocapture
 pkgver=0.1.2
-pkgrel=5
-pkgdesc="Capture stdout, stderr easily."
+pkgrel=6
+pkgdesc="Capture stdout, stderr easily"
 arch=('any')
 license=('MIT')
 url="https://github.com/oinume/iocapture"
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-flexmock'
-              'python2-flexmock' 'python-pytest-cov' 'python2-pytest-cov'
-              'python-six' 'python2-six')
-source=("git+https://github.com/oinume/iocapture.git#tag=$pkgver")
-sha512sums=('SKIP')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-flexmock' 'python-pytest-cov' 'python-six')
+source=("https://github.com/oinume/iocapture/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('1205d13b107d83dcb45d5546038d8b0b5417a20a51149c405123111488c351ff81a447f10653cd3dd9ecc236e01a0fcceb6647091e38ff2fa34c69e0baff1567')
 
-prepare() {
-  cp -a iocapture{,-py2}
-}
-
 build() {
-  cd "$srcdir/iocapture"
+  cd iocapture-$pkgver
   python setup.py build
-
-  cd "$srcdir/iocapture-py2"
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir/iocapture"
+  cd iocapture-$pkgver
   python setup.py pytest
-
-  cd "$srcdir/iocapture-py2"
-  python2 setup.py pytest
 }
 
-package_python-iocapture() {
-  depends=('python')
-
-  cd iocapture
-  python setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+package() {
+  cd iocapture-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-iocapture() {
-  depends=('python2')
-
-  cd iocapture-py2
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}



More information about the arch-commits mailing list