[arch-commits] Commit in python-w3lib/repos/community-any (PKGBUILD PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Tue May 12 21:07:46 UTC 2020
Date: Tuesday, May 12, 2020 @ 21:07:45
Author: jelle
Revision: 627233
archrelease: copy trunk to community-any
Added:
python-w3lib/repos/community-any/PKGBUILD
(from rev 627232, python-w3lib/trunk/PKGBUILD)
Deleted:
python-w3lib/repos/community-any/PKGBUILD
----------+
PKGBUILD | 82 +++++++++++++++++++++++--------------------------------------
1 file changed, 31 insertions(+), 51 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-12 21:07:37 UTC (rev 627232)
+++ PKGBUILD 2020-05-12 21:07:45 UTC (rev 627233)
@@ -1,51 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Bence Balint <balintbence1337 at gmail.com>
-
-pkgbase=python-w3lib
-pkgname=('python-w3lib' 'python2-w3lib')
-pkgver=1.21.0
-pkgrel=3
-pkgdesc="Library of web-related functions"
-arch=('any')
-license=('BSD')
-url="https://w3lib.readthedocs.org"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/scrapy/w3lib/archive/v$pkgver.tar.gz")
-sha512sums=('7b55e31e3a942ef1ba3db0ac4d325d7a547ed45764b22d91503358d65dbef6e84abe9777899b3a966882013f1d02314b990078849c68c2e249a41e32025bb92e')
-
-prepare() {
- cp -a w3lib-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/w3lib-$pkgver
- python setup.py build
-
- cd "$srcdir"/w3lib-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/w3lib-$pkgver
- py.test
-
- cd "$srcdir"/w3lib-$pkgver-py2
- py.test2
-}
-
-package_python-w3lib() {
- depends=('python-six')
-
- cd 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 w3lib-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-w3lib/repos/community-any/PKGBUILD (from rev 627232, python-w3lib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-05-12 21:07:45 UTC (rev 627233)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Bence Balint <balintbence1337 at gmail.com>
+
+pkgname=python-w3lib
+pkgver=1.21.0
+pkgrel=4
+pkgdesc="Library of web-related functions"
+arch=('any')
+license=('BSD')
+url="https://w3lib.readthedocs.org"
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/scrapy/w3lib/archive/v$pkgver.tar.gz")
+sha512sums=('7b55e31e3a942ef1ba3db0ac4d325d7a547ed45764b22d91503358d65dbef6e84abe9777899b3a966882013f1d02314b990078849c68c2e249a41e32025bb92e')
+
+build() {
+ cd "$srcdir"/w3lib-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/w3lib-$pkgver
+ py.test
+}
+
+package() {
+ cd w3lib-$pkgver
+ python 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