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

Felix Yan felixonmars at archlinux.org
Sun Apr 25 14:46:09 UTC 2021


    Date: Sunday, April 25, 2021 @ 14:46:09
  Author: felixonmars
Revision: 924222

upgpkg: scrapy 2.5.0-1

Modified:
  scrapy/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-25 14:35:56 UTC (rev 924221)
+++ PKGBUILD	2021-04-25 14:46:09 UTC (rev 924222)
@@ -3,7 +3,7 @@
 # Contributor: Anibal Pacheco <apacheco.uy at gmail.com>
 
 pkgname=scrapy
-pkgver=2.4.1
+pkgver=2.5.0
 pkgrel=1
 pkgdesc="A fast high-level scraping and web crawling framework."
 arch=('any')
@@ -12,14 +12,20 @@
 depends=('python-twisted' 'python-cryptography' 'python-cssselect' 'python-itemloaders'
          'python-lxml' 'libxml2' 'python-parsel' 'python-pydispatcher' 'python-pyopenssl'
          'python-queuelib' 'python-service-identity' 'python-setuptools' 'python-w3lib'
-         'python-zope-interface' 'python-protego' 'python-itemadapter')
-checkdepends=('python-pytest-runner' 'python-pytest-twisted' 'python-botocore' 'bpython'
-              'python-brotlipy' 'python-jmespath' 'ipython' 'mitmproxy' 'python-pillow'
-              'python-sybil' 'python-testfixtures' 'python-pyftpdlib' 'python-uvloop')
+         'python-zope-interface' 'python-protego' 'python-itemadapter' 'python-h2'
+         'python-priority')
+checkdepends=('python-pytest' 'python-botocore' 'bpython' 'python-brotli' 'python-jmespath'
+              'ipython' 'mitmproxy' 'python-pillow' 'python-sybil' 'python-testfixtures'
+              'python-pyftpdlib' 'python-uvloop')
 optdepends=('ipython: for enhanced support of the interactive scraping shell')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/scrapy/archive/$pkgver.tar.gz")
-sha512sums=('639a281ff0f20c51ab4be20e1935a171d06c4ba4b4d4340023cc4ad583266b63ad93d8efeec8bf5ee65ddfb1a72092957c61b3444bc67da4049f6f8102a57d3c')
+sha512sums=('01a5ab605ba6783567147b7ca8c0dd963266aeb63e8eac19e962ee5d6dda85052c23a4d161ab69f130925b8a6f271ffbc28784a8f7fc0216428b5579eaad47b6')
 
+prepare() {
+  cd scrapy-$pkgver
+  sed -i 's/,<4.0//' setup.py
+}
+
 build() {
   cd scrapy-$pkgver
   python setup.py build
@@ -27,7 +33,7 @@
 
 check() {
   cd scrapy-$pkgver
-  python setup.py pytest --addopts tests
+  PYTHONPATH="$PWD/build/lib" pytest tests
 }
 
 package() {



More information about the arch-commits mailing list