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

Eli Schwartz eschwartz at archlinux.org
Fri Sep 25 05:44:07 UTC 2020


    Date: Friday, September 25, 2020 @ 05:44:07
  Author: eschwartz
Revision: 711965

upgpkg: python-html5-parser 0.4.9-3: drop python2

no longer used by calibre, which means python2-mechanize got dropped at the
same time, and this is therefore not needed at all

Modified:
  python-html5-parser/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++++--------------------
 1 file changed, 8 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-25 05:42:10 UTC (rev 711964)
+++ PKGBUILD	2020-09-25 05:44:07 UTC (rev 711965)
@@ -2,17 +2,17 @@
 # Maintainer: Eli Schwartz <eschwartz at archlinux.org>
 
 _pkgname=html5-parser
-pkgbase='python-html5-parser'
-pkgname=('python-html5-parser' 'python2-html5-parser')
+pkgname=python-html5-parser
 pkgver=0.4.9
-pkgrel=2
+pkgrel=3
 pkgdesc="Fast C based HTML 5 parsing for python"
 arch=('x86_64')
 url="https://github.com/kovidgoyal/${_pkgname}"
 license=('Apache')
-checkdepends=('python-beautifulsoup4' 'python2-beautifulsoup4')
-makedepends=('python-chardet' 'python-lxml' 'python-setuptools'
-             'python2-chardet' 'python2-lxml' 'python2-setuptools')
+depends=('python-chardet' 'python-lxml')
+makedepends=('python-setuptools')
+checkdepends=('python-beautifulsoup4')
+optdepends=('python-beautifulsoup4: to use the soup treebuilder')
 source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
 sha256sums=('25fe8f6848cbc15187f6748c0695df32bcf1b37df6420b6a01b4ebe1ec1ed48f'
             'SKIP')
@@ -24,7 +24,6 @@
     cd "${srcdir}"/${_pkgname}-${pkgver}
 
     python setup.py build
-    python2 setup.py build
 }
 
 check() {
@@ -31,21 +30,10 @@
     cd "${srcdir}"/${_pkgname}-${pkgver}
 
     python setup.py test
-    python2 setup.py test
 }
 
-package_python-html5-parser() {
-    depends=('python-chardet' 'python-lxml')
-    optdepends=('python-beautifulsoup4: to use the soup treebuilder')
+package() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
 
-    cd "${srcdir}"/${_pkgname}-${pkgver}
     python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
 }
-
-package_python2-html5-parser() {
-    depends=('python2-chardet' 'python2-lxml')
-    optdepends=('python2-beautifulsoup4: to use the soup treebuilder')
-
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-}



More information about the arch-commits mailing list