Date: Friday, September 25, 2020 @ 05:53:29
  Author: eschwartz
Revision: 711970

upgpkg: python-pychm 0.8.6-2: drop python2

no longer used by calibre, and is therefore not needed at all

Modified:
  python-pychm/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++---------------------
 1 file changed, 8 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-09-25 05:52:52 UTC (rev 711969)
+++ PKGBUILD    2020-09-25 05:53:29 UTC (rev 711970)
@@ -5,17 +5,16 @@
 # Contributor: Roman Kyrylych <roman.kyryl...@gmail.com>
 # Contributor: iom <piz...@gmail.com>
 
-pkgbase=python-pychm
-pkgname=(python-pychm python2-pychm)
+pkgname=python-pychm
 pkgver=0.8.6
-pkgrel=1
+pkgrel=2
 pkgdesc="Python bindings for chmlib"
 arch=('x86_64')
 url="https://github.com/dottedmag/pychm";
 license=('GPL')
-depends=('chmlib')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python2-pytest')
+depends=('chmlib' 'python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
 
source=($pkgname-$pkgver.tar.gz::https://github.com/dottedmag/pychm/archive/v$pkgver.tar.gz)
 sha256sums=('23cdc3bbbeb97b57b472a67a0c7c96c6f1ec2d684a73a69fa84aaaeb195cab6c')
 
b2sums=('fdf3c37eead60455fd5bde1638a010f2788074752f98c32cf4b3431b4a87b8893c23a9fa29995352b35b41f628b7026fdbfa6ff20b75e8a6efdf75fc2da3f67d')
@@ -24,7 +23,6 @@
   cd "$srcdir/pychm-$pkgver"
 
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
@@ -31,24 +29,13 @@
   cd "$srcdir/pychm-$pkgver"
 
   # do glob expansion in variable assignment
-  pythonpaths=("$PWD/build/lib.linux-$CARCH"-3* 
"$PWD/build/lib.linux-$CARCH-"2*)
+  pythonpaths=("$PWD/build/lib.linux-$CARCH"-3*)
 
   PYTHONPATH="${pythonpaths[0]}" pytest
-  PYTHONPATH="${pythonpaths[1]}" pytest2
 }
 
-package_python-pychm() {
-  depends+=('python')
+package() {
+  cd "$srcdir/pychm-$pkgver"
 
-  cd "$srcdir/pychm-$pkgver"
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }
-
-package_python2-pychm() {
-  depends+=('python2')
-
-  cd "$srcdir/pychm-$pkgver"
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
-
-# vim:set ts=2 sw=2 et:

Reply via email to