[arch-commits] Commit in scrapy/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Feb 23 06:37:58 UTC 2017


    Date: Thursday, February 23, 2017 @ 06:37:57
  Author: felixonmars
Revision: 213593

upgpkg: scrapy 1.3.2-1

Modified:
  scrapy/trunk/PKGBUILD

----------+
 PKGBUILD |   33 ++++++++++++++++-----------------
 1 file changed, 16 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-02-23 06:32:11 UTC (rev 213592)
+++ PKGBUILD	2017-02-23 06:37:57 UTC (rev 213593)
@@ -4,33 +4,32 @@
 # Contributor: Anibal Pacheco <apacheco.uy at gmail.com>
 
 pkgname=scrapy
-pkgver=1.0.5
+pkgver=1.3.2
 pkgrel=1
 pkgdesc="A fast high-level scraping and web crawling framework."
-arch=(any)
+arch=('any')
 license=('BSD')
 url="http://scrapy.org"
-depends=('python2-twisted' 'libxml2' 'python2-w3lib' 'python2-lxml' 'python2-six' 'python2-queuelib' 
-         'python2-setuptools' 'python2-cssselect' 'python2-pyopenssl' 'python2-service-identity')
+depends=('python-twisted' 'libxml2' 'python-w3lib' 'python-lxml' 'python-six' 'python-queuelib'
+         'python-setuptools' 'python-cssselect' 'python-pyopenssl' 'python-parsel'
+         'python-pydispatcher' 'python-service-identity')
 makedepends=('git')
-checkdepends=('python2-pytest' 'python2-mock' 'python2-boto' 'python2-pillow' 'python2-testfixtures' 'python2-jmespath' 'mitmproxy')
-optdepends=('ipython2: for enhanced support of the interactive scraping shell')
+checkdepends=('python-pytest-runner' 'python-pillow' 'python-testfixtures' 'python-botocore'
+              'python-jmespath' 'mitmproxy')
+optdepends=('ipython: for enhanced support of the interactive scraping shell')
 source=("git+https://github.com/scrapy/scrapy.git#tag=${pkgver}")
 md5sums=('SKIP')
 
 check() {
-  cd "${srcdir}/scrapy"
-  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
-
-  # https://github.com/scrapy/scrapy/pull/1757
-  PATH="$PWD/tmp_install/usr/bin:$PATH" PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH:$PWD" py.test2 scrapy tests || warning "Tests failed"
+  cd scrapy
+  python setup.py pytest --addopts tests
 }
 
 package() {
-  cd "${srcdir}/scrapy"
-  python2 setup.py install -O1 --root="${pkgdir}"
-  
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -D -m644 "README.rst" "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
-  install -D -m644 "docs/intro/install.rst" "${pkgdir}/usr/share/doc/${pkgname}/INSTALL.rst"
+  cd scrapy
+  python setup.py install -O1 --root="$pkgdir"
+
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -D -m644 README.rst "$pkgdir"/usr/share/doc/$pkgname/README.rst
+  install -D -m644 docs/intro/install.rst "$pkgdir"/usr/share/doc/$pkgname/INSTALL.rst
 }



More information about the arch-commits mailing list