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

Felix Yan fyan at archlinux.org
Thu Feb 4 06:03:13 UTC 2016


    Date: Thursday, February 4, 2016 @ 07:03:13
  Author: fyan
Revision: 160188

upgpkg: scrapy 1.0.5-1

Modified:
  scrapy/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-04 06:01:32 UTC (rev 160187)
+++ PKGBUILD	2016-02-04 06:03:13 UTC (rev 160188)
@@ -4,7 +4,7 @@
 # Contributor: Anibal Pacheco <apacheco.uy at gmail.com>
 
 pkgname=scrapy
-pkgver=1.0.4
+pkgver=1.0.5
 pkgrel=1
 pkgdesc="A fast high-level scraping and web crawling framework."
 arch=(any)
@@ -13,7 +13,7 @@
 depends=('python2-twisted' 'libxml2' 'python2-w3lib' 'python2-lxml' 'python2-six' 'python2-queuelib' 
          'python2-setuptools' 'python2-cssselect' 'python2-pyopenssl' 'python2-service-identity')
 makedepends=('git')
-checkdepends=('python2-pytest' 'python2-mock' 'python2-boto' 'python2-pillow' 'mitmproxy')
+checkdepends=('python2-pytest' 'python2-mock' 'python2-boto' 'python2-pillow' 'python2-testfixtures' 'python2-jmespath' 'mitmproxy')
 optdepends=('ipython2: for enhanced support of the interactive scraping shell')
 source=("git+https://github.com/scrapy/scrapy.git#tag=${pkgver}")
 md5sums=('SKIP')
@@ -20,8 +20,10 @@
 
 check() {
   cd "${srcdir}/scrapy"
-  py.test2 tests || warning "Tests failed"
-  # Fails horribly for now. Still need to adjust.
+  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"
 }
 
 package() {



More information about the arch-commits mailing list