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

Felix Yan fyan at archlinux.org
Sat Sep 19 13:09:54 UTC 2015


    Date: Saturday, September 19, 2015 @ 15:09:53
  Author: fyan
Revision: 140803

archrelease: copy trunk to community-staging-any

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

----------+
 LICENSE  |   27 +++++++++++++++++++++++++++
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

Copied: python-w3lib/repos/community-staging-any/LICENSE (from rev 140802, python-w3lib/trunk/LICENSE)
===================================================================
--- community-staging-any/LICENSE	                        (rev 0)
+++ community-staging-any/LICENSE	2015-09-19 13:09:53 UTC (rev 140803)
@@ -0,0 +1,27 @@
+Copyright (c) w3lib and Scrapy developers.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+    1. Redistributions of source code must retain the above copyright notice, 
+       this list of conditions and the following disclaimer.
+    
+    2. Redistributions in binary form must reproduce the above copyright 
+       notice, this list of conditions and the following disclaimer in the
+       documentation and/or other materials provided with the distribution.
+
+    3. Neither the name of Scrapy nor the names of its contributors may be used
+       to endorse or promote products derived from this software without
+       specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copied: python-w3lib/repos/community-staging-any/PKGBUILD (from rev 140802, python-w3lib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 13:09:53 UTC (rev 140803)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Bence Balint <balintbence1337 at gmail.com>
+
+pkgbase=python-w3lib
+pkgname=('python-w3lib' 'python2-w3lib')
+pkgver=1.12.0
+pkgrel=2
+pkgdesc="Library of web-related functions"
+arch=('any')
+license=('BSD')
+url="http://w3lib.readthedocs.org"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
+# checkdepends=('python-pytest' 'python2-pytest')
+source=("https://pypi.python.org/packages/source/w/w3lib/w3lib-${pkgver}.tar.gz"
+        LICENSE)
+md5sums=('c2545617229b3fc72d59afed85b18035'
+         '8a9dbf92a1904187a362d3fe098d4a1f')
+
+prepare() {
+  cp -a w3lib-$pkgver{,-py2}
+}
+
+check() {
+  # Tests not included
+
+  cd "$srcdir/w3lib-${pkgver}"
+  # py.test
+
+  cd "$srcdir/w3lib-${pkgver}-py2"
+  # py.test2
+}
+
+package_python-w3lib() {
+  depends=('python-six')
+
+  cd "${srcdir}/w3lib-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-w3lib() {
+  depends=('python2-six')
+
+  cd "${srcdir}/w3lib-${pkgver}-py2"
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list