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

Eli Schwartz eschwartz at archlinux.org
Sun Mar 14 23:07:43 UTC 2021


    Date: Sunday, March 14, 2021 @ 23:07:43
  Author: eschwartz
Revision: 891338

upgpkg: python-html5lib 1.1-6: remove check/opt depends on py2 + lxml

We only need html5lib for python2-pip at this point and the lxml treebuilder
is, of course, totally optional. pip doesn't use it. Why should we test or
guarantee it works?

Removing the check dependency means we can entirely drop lxml, bs4, soupsieve,
and cssselect to the AUR.

Modified:
  python-html5lib/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-03-14 23:04:26 UTC (rev 891337)
+++ PKGBUILD	2021-03-14 23:07:43 UTC (rev 891338)
@@ -6,14 +6,14 @@
 pkgbase=python-html5lib
 pkgname=('python2-html5lib' 'python-html5lib')
 pkgver=1.1
-pkgrel=5
+pkgrel=6
 arch=('any')
 url="https://github.com/html5lib"
 license=('MIT')
 _deps=('six' 'webencodings')
 makedepends=('python-setuptools' 'python2-setuptools' "${_deps[@]/#/python-}" "${_deps[@]/#/python2-}")
-_checkdeps=('pytest' 'pytest-expect' 'lxml' 'mock')
-checkdepends=("${_checkdeps[@]/#/python-}" "${_checkdeps[@]/#/python2-}")
+_checkdeps=('pytest' 'pytest-expect' 'mock')
+checkdepends=("${_checkdeps[@]/#/python-}" 'python-lxml' "${_checkdeps[@]/#/python2-}")
 _test_commit=71eebd59772d1d39aced0c0582ae9c09acf3ce6e
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz"
         "https://github.com/html5lib/html5lib-python/commit/2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch"
@@ -43,7 +43,7 @@
     cd "${srcdir}"/html5lib-python-${pkgver}
 
     py.test
-    py.test2
+    py.test2 -m 'not lxml'
 }
 
 package_python-html5lib() {
@@ -60,7 +60,6 @@
 package_python2-html5lib() {
     pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec"
     depends=("${_deps[@]/#/python2-}")
-    optdepends=('python2-lxml: lxml treebuilder')
     cd "${srcdir}"/html5lib-python-${pkgver}
 
     python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build



More information about the arch-commits mailing list