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

Felix Yan felixonmars at archlinux.org
Sat Dec 24 10:46:46 UTC 2016


    Date: Saturday, December 24, 2016 @ 10:46:46
  Author: felixonmars
Revision: 201348

archrelease: copy trunk to community-staging-any

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

----------+
 LICENSE  |   17 +++++++++++++++++
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

Copied: python-html5lib/repos/community-staging-any/LICENSE (from rev 201347, python-html5lib/trunk/LICENSE)
===================================================================
--- community-staging-any/LICENSE	                        (rev 0)
+++ community-staging-any/LICENSE	2016-12-24 10:46:46 UTC (rev 201348)
@@ -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 201347, python-html5lib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 10:46:46 UTC (rev 201348)
@@ -0,0 +1,42 @@
+# Contributor: Erol V. Aktay <e.aktay at gmail.com>
+# Maintainer: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgbase=python-html5lib
+pkgname=('python2-html5lib' 'python-html5lib')
+pkgver=0.999999999
+pkgrel=2
+arch=('any')
+url="https://github.com/html5lib"
+license=('MIT')
+makedepends=('python2' 'python' 'unzip' 'python-webencodings' 'python2-webencodings')
+checkdepends=('python-six' 'python2-six' 'python2-pytest' 'python-pytest' 'python-lxml' 'python2-lxml' 'python-mock' 'python2-mock') 
+source=($pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz
+    LICENSE)
+md5sums=('a81446ef3ce3ef18f5e8e242b7072b83'
+         '838c366f69b72c5df05c96dff79b35f2')
+
+package_python-html5lib() {
+pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec"
+depends=('python' 'python-six' 'python-webencodings')
+    cd ${srcdir}/html5lib-python-${pkgver}
+
+    python3 setup.py install --root=${pkgdir}
+    install -Dm755 $srcdir/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE  
+}
+
+package_python2-html5lib() {
+depends=('python2' 'python2-six' 'python2-webencodings')
+pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec"
+    cd ${srcdir}/html5lib-python-${pkgver}
+
+    python2 setup.py install --root=${pkgdir}
+    install -Dm755 $srcdir/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE  
+}
+
+check() {
+    cd ${srcdir}/html5lib-python-${pkgver}/html5lib/tests
+
+#    nosetests2 
+  
+#    nosetests
+}



More information about the arch-commits mailing list