[arch-commits] Commit in python-parsel/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Mar 27 11:28:00 UTC 2019


    Date: Wednesday, March 27, 2019 @ 11:27:59
  Author: felixonmars
Revision: 444199

archrelease: copy trunk to community-any

Added:
  python-parsel/repos/community-any/PKGBUILD
    (from rev 444197, python-parsel/trunk/PKGBUILD)
Deleted:
  python-parsel/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   80 ++++++++++++++++++++++---------------------------------------
 1 file changed, 29 insertions(+), 51 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-27 11:27:57 UTC (rev 444198)
+++ PKGBUILD	2019-03-27 11:27:59 UTC (rev 444199)
@@ -1,51 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-parsel
-pkgname=('python-parsel' 'python2-parsel')
-pkgver=1.5.1
-pkgrel=1
-pkgdesc="Parsel is a library to extract data from HTML and XML using XPath and CSS selectors"
-arch=('any')
-license=('BSD')
-url="https://github.com/scrapy/parsel"
-makedepends=('python-cssselect' 'python2-cssselect' 'python-lxml' 'python2-lxml'
-             'python-pytest-runner' 'python2-pytest-runner' 'python-six' 'python2-six'
-             'python-w3lib' 'python2-w3lib' 'python2-functools32')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/scrapy/parsel/archive/v$pkgver.tar.gz")
-sha512sums=('fe6de66c3f43e1ecdeae4239cacca42f3082214b698b16c7f56e4fb924cd70826fe0d7a69517174c71cd249c2b21cb9fdbf9091aafcfed6a3745a70dc37b7964')
-
-prepare() {
-  cp -a parsel-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/parsel-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/parsel-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/parsel-$pkgver
-  python setup.py pytest
-
-  cd "$srcdir"/parsel-$pkgver-py2
-  python2 setup.py pytest
-}
-
-package_python-parsel() {
-  depends=('python-cssselect' 'python-lxml' 'python-six' 'python-w3lib')
-
-  cd parsel-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-parsel() {
-  depends=('python2-cssselect' 'python2-lxml' 'python2-six' 'python2-w3lib' 'python2-functools32')
-
-  cd parsel-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-parsel/repos/community-any/PKGBUILD (from rev 444197, python-parsel/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-03-27 11:27:59 UTC (rev 444199)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-parsel
+pkgver=1.5.1
+pkgrel=2
+pkgdesc="Parsel is a library to extract data from HTML and XML using XPath and CSS selectors"
+arch=('any')
+license=('BSD')
+url="https://github.com/scrapy/parsel"
+depends=('python-cssselect' 'python-lxml' 'python-six' 'python-w3lib')
+makedepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/parsel/archive/v$pkgver.tar.gz")
+sha512sums=('fe6de66c3f43e1ecdeae4239cacca42f3082214b698b16c7f56e4fb924cd70826fe0d7a69517174c71cd249c2b21cb9fdbf9091aafcfed6a3745a70dc37b7964')
+
+build() {
+  cd parsel-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd parsel-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd parsel-$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