[arch-commits] Commit in python-html5lib/repos/community-any (3 files)

2020-11-13 Thread Eli Schwartz via arch-commits
Date: Friday, November 13, 2020 @ 12:07:09
  Author: eschwartz
Revision: 753888

archrelease: copy trunk to community-any

Added:
  python-html5lib/repos/community-any/PKGBUILD
(from rev 753887, python-html5lib/trunk/PKGBUILD)
Deleted:
  python-html5lib/repos/community-any/PKGBUILD
  python-html5lib/repos/community-any/pytest4.patch

---+
 PKGBUILD  |  132 +-
 pytest4.patch |  279 
 2 files changed, 68 insertions(+), 343 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2020-11-13 12:06:53 UTC (rev 753887)
+++ PKGBUILD2020-11-13 12:07:09 UTC (rev 753888)
@@ -1,64 +0,0 @@
-# Maintainer: Eli Schwartz 
-# Maintainer: Jelle van der Waa 
-# Contributor: Daniel J Griffiths 
-# Contributor: Erol V. Aktay 
-
-pkgbase=python-html5lib
-pkgname=('python2-html5lib' 'python-html5lib')
-pkgver=1.1
-pkgrel=1
-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-}")
-_test_commit=c305da74fae50fb018870de7a042da36c1a93b65
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz;
-
"https://github.com/html5lib/html5lib-tests/archive/${_test_commit}.tar.gz;)
-sha256sums=('66e9e24a53c10c27abb6be8a3cf2cf55824c6ea1cef8570a633cb223ec46e894'
-'cb261423c644b3469ac66926e290060b481371d0952995d270492fc761d0209a')
-
-prepare() {
-cd "${srcdir}"/html5lib-python-${pkgver}
-
-rmdir html5lib/tests/testdata
-ln -sfT ../../../html5lib-tests-${_test_commit} html5lib/tests/testdata
-}
-
-build() {
-cd "${srcdir}"/html5lib-python-${pkgver}
-
-python setup.py build
-python2 setup.py build
-}
-
-check() {
-cd "${srcdir}"/html5lib-python-${pkgver}
-
-py.test
-py.test2
-}
-
-package_python-html5lib() {
-pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec"
-depends=("${_deps[@]/#/python-}")
-optdepends=('python-lxml: lxml treebuilder'
-'python-genshi: genshi treewalker')
-cd "${srcdir}"/html5lib-python-${pkgver}
-
-python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}
-
-package_python2-html5lib() {
-pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec"
-depends=("${_deps[@]/#/python2-}")
-optdepends=('python2-lxml: lxml treebuilder'
-'python2-genshi: genshi treewalker')
-cd "${srcdir}"/html5lib-python-${pkgver}
-
-python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python-html5lib/repos/community-any/PKGBUILD (from rev 753887, 
python-html5lib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2020-11-13 12:07:09 UTC (rev 753888)
@@ -0,0 +1,68 @@
+# Maintainer: Eli Schwartz 
+# Maintainer: Jelle van der Waa 
+# Contributor: Daniel J Griffiths 
+# Contributor: Erol V. Aktay 
+
+pkgbase=python-html5lib
+pkgname=('python2-html5lib' 'python-html5lib')
+pkgver=1.1
+pkgrel=4
+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-}")
+_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;
+
"https://github.com/html5lib/html5lib-tests/archive/${_test_commit}.tar.gz;)
+sha256sums=('66e9e24a53c10c27abb6be8a3cf2cf55824c6ea1cef8570a633cb223ec46e894'
+'6f37b33667e35ea138279be9842f012792821b1497b81ae4b108a74180cfe249'
+'c866f5e4ae9ef34313e2b61fcb74849b6f8aef970bf8249956b6a5d142197087')
+
+prepare() {
+cd "${srcdir}"/html5lib-python-${pkgver}
+
+# fix pytest 6 compat
+patch -p1 -i ../2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch
+
+rmdir html5lib/tests/testdata
+ln -sfT ../../../html5lib-tests-${_test_commit} html5lib/tests/testdata
+}
+
+build() {
+cd "${srcdir}"/html5lib-python-${pkgver}
+
+python setup.py build
+python2 setup.py build
+}
+
+check() {
+cd "${srcdir}"/html5lib-python-${pkgver}
+
+py.test
+py.test2
+}
+
+package_python-html5lib() {
+pkgdesc="A 

[arch-commits] Commit in python-html5lib/repos/community-any (3 files)

2019-11-19 Thread Felix Yan via arch-commits
Date: Wednesday, November 20, 2019 @ 05:41:22
  Author: felixonmars
Revision: 530627

archrelease: copy trunk to community-any

Added:
  python-html5lib/repos/community-any/PKGBUILD
(from rev 530626, python-html5lib/trunk/PKGBUILD)
  python-html5lib/repos/community-any/pytest4.patch
(from rev 530626, python-html5lib/trunk/pytest4.patch)
Deleted:
  python-html5lib/repos/community-any/PKGBUILD

---+
 PKGBUILD  |  132 +-
 pytest4.patch |  279 
 2 files changed, 347 insertions(+), 64 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2019-11-20 05:41:06 UTC (rev 530626)
+++ PKGBUILD2019-11-20 05:41:22 UTC (rev 530627)
@@ -1,64 +0,0 @@
-# Maintainer: Eli Schwartz 
-# Maintainer: Jelle van der Waa 
-# Contributor: Daniel J Griffiths 
-# Contributor: Erol V. Aktay 
-
-pkgbase=python-html5lib
-pkgname=('python2-html5lib' 'python-html5lib')
-pkgver=1.0.1
-pkgrel=6
-arch=('any')
-url="https://github.com/html5lib;
-license=('MIT')
-_deps=('six' 'webencodings')
-makedepends=('python-setuptools' 'python2-setuptools' "${_deps[@]/#/python-}" 
"${_deps[@]/#/python2-}")
-_checkdeps=('pytest32' 'pytest-expect' 'lxml' 'mock')
-checkdepends=("${_checkdeps[@]/#/python-}" "${_checkdeps[@]/#/python2-}")
-_test_commit=c305da74fae50fb018870de7a042da36c1a93b65
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz;
-
"https://github.com/html5lib/html5lib-tests/archive/${_test_commit}.tar.gz;)
-sha256sums=('fabbebd6a55d07842087f13849076eeed350aa8bb6c9ec840f6a6aba9388db06'
-'cb261423c644b3469ac66926e290060b481371d0952995d270492fc761d0209a')
-
-prepare() {
-cd "${srcdir}"/html5lib-python-${pkgver}
-
-rmdir html5lib/tests/testdata
-ln -sfT ../../../html5lib-tests-${_test_commit} html5lib/tests/testdata
-}
-
-build() {
-cd "${srcdir}"/html5lib-python-${pkgver}
-
-python setup.py build
-python2 setup.py build
-}
-
-check() {
-cd "${srcdir}"/html5lib-python-${pkgver}
-
-py.test
-py.test2
-}
-
-package_python-html5lib() {
-pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec"
-depends=("${_deps[@]/#/python-}")
-optdepends=('python-lxml: lxml treebuilder'
-'python-genshi: genshi treewalker')
-cd "${srcdir}"/html5lib-python-${pkgver}
-
-python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}
-
-package_python2-html5lib() {
-pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec"
-depends=("${_deps[@]/#/python2-}")
-optdepends=('python2-lxml: lxml treebuilder'
-'python2-genshi: genshi treewalker')
-cd "${srcdir}"/html5lib-python-${pkgver}
-
-python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python-html5lib/repos/community-any/PKGBUILD (from rev 530626, 
python-html5lib/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2019-11-20 05:41:22 UTC (rev 530627)
@@ -0,0 +1,68 @@
+# Maintainer: Eli Schwartz 
+# Maintainer: Jelle van der Waa 
+# Contributor: Daniel J Griffiths 
+# Contributor: Erol V. Aktay 
+
+pkgbase=python-html5lib
+pkgname=('python2-html5lib' 'python-html5lib')
+pkgver=1.0.1
+pkgrel=7
+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-}")
+_test_commit=c305da74fae50fb018870de7a042da36c1a93b65
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz;
+
"https://github.com/html5lib/html5lib-tests/archive/${_test_commit}.tar.gz;
+pytest4.patch)
+sha256sums=('fabbebd6a55d07842087f13849076eeed350aa8bb6c9ec840f6a6aba9388db06'
+'cb261423c644b3469ac66926e290060b481371d0952995d270492fc761d0209a'
+'6b627d2490d0cd16a801ec2787b8ce643f66d8ddf780fee9ff5268c8126d4f8c')
+
+prepare() {
+cd "${srcdir}"/html5lib-python-${pkgver}
+# From https://github.com/html5lib/html5lib-python/pull/429
+patch -p1 -i ../pytest4.patch
+
+rmdir html5lib/tests/testdata
+ln -sfT ../../../html5lib-tests-${_test_commit} html5lib/tests/testdata
+}
+
+build() {
+cd "${srcdir}"/html5lib-python-${pkgver}
+
+python setup.py build
+python2 setup.py build
+}
+
+check() {
+cd "${srcdir}"/html5lib-python-${pkgver}
+
+py.test
+py.test2
+}
+
+package_python-html5lib() {
+pkgdesc="A Python HTML