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

Eli Schwartz eschwartz at archlinux.org
Mon Jul 16 17:28:40 UTC 2018


    Date: Monday, July 16, 2018 @ 17:28:40
  Author: eschwartz
Revision: 359998

archrelease: copy trunk to community-staging-any

Added:
  python-html5lib/repos/community-staging-any/
  python-html5lib/repos/community-staging-any/LICENSE
    (from rev 359997, python-html5lib/trunk/LICENSE)
  python-html5lib/repos/community-staging-any/PKGBUILD
    (from rev 359997, python-html5lib/trunk/PKGBUILD)

----------+
 LICENSE  |   17 ++++++++++++++++
 PKGBUILD |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

Copied: python-html5lib/repos/community-staging-any/LICENSE (from rev 359997, python-html5lib/trunk/LICENSE)
===================================================================
--- community-staging-any/LICENSE	                        (rev 0)
+++ community-staging-any/LICENSE	2018-07-16 17:28:40 UTC (rev 359998)
@@ -0,0 +1,17 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

Copied: python-html5lib/repos/community-staging-any/PKGBUILD (from rev 359997, python-html5lib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-16 17:28:40 UTC (rev 359998)
@@ -0,0 +1,63 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+# Contributor: Erol V. Aktay <e.aktay at gmail.com>
+
+pkgbase=python-html5lib
+pkgname=('python2-html5lib' 'python-html5lib')
+pkgver=1.0.1
+pkgrel=3
+arch=('any')
+url="https://github.com/html5lib"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-webencodings' 'python2-webencodings')
+checkdepends=('python-six' 'python2-six' 'python-pytest-expect' 'python2-pytest-expect'
+              'python-lxml' 'python2-lxml' 'python-mock' 'python2-mock')
+_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=('python' 'python-six' 'python-webencodings')
+    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 -Dm755 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-html5lib() {
+    pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec"
+    depends=('python2' 'python2-six' 'python2-webencodings')
+    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 -Dm755 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list