Date: Sunday, July 31, 2022 @ 08:28:48 Author: arojas Revision: 1259246
archrelease: copy trunk to community-any Added: scrapy/repos/community-any/PKGBUILD (from rev 1259245, scrapy/trunk/PKGBUILD) Deleted: scrapy/repos/community-any/PKGBUILD scrapy/repos/community-any/python310.patch -----------------+ PKGBUILD | 99 +++++++++++++++++++++++++----------------------------- python310.patch | 35 ------------------- 2 files changed, 47 insertions(+), 87 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-07-31 08:28:39 UTC (rev 1259245) +++ PKGBUILD 2022-07-31 08:28:48 UTC (rev 1259246) @@ -1,52 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: PyroDevil <p dot devil at gmail dot com> -# Contributor: Anibal Pacheco <apacheco...@gmail.com> - -pkgname=scrapy -pkgver=2.5.1 -pkgrel=1 -pkgdesc="A fast high-level scraping and web crawling framework." -arch=('any') -license=('BSD') -url="https://scrapy.org" -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' '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" - python310.patch - $pkgname-add-peek-method-to-queues.patch::https://github.com/scrapy/scrapy/commit/68379197986a.patch) -sha512sums=('4285272412b4c474707e864ece701990435d206b0a1ef28cb9f99cff87a02e6b0323e744e96f15878a3b433a7efe4be413d24068bb252f00f9ab1b0a980d844a' - '5a9e7567e7a62d2c7065ce95179f7f35f86d88947f3ba09d7a377318eb989b7799584389ac9223934b2807ba291454c4e1f5bcaad501590056b0c44d75297561' - 'defc36c52bc86d990e36a3de4d2e7bafc6c3183670c9dd99d659f41de9d5ce8247c5cbb0aba9a4a8713d0073498441919e8410975a65ccec8243ca4d31c63336') - -prepare() { - cd scrapy-$pkgver - patch -Np1 -i ../python310.patch - patch -Np1 -i ../$pkgname-add-peek-method-to-queues.patch - sed -i 's/,<4.0//' setup.py -} - -build() { - cd scrapy-$pkgver - python setup.py build -} - -check() { - cd scrapy-$pkgver - PYTHONPATH="$PWD/build/lib" pytest tests -} - -package() { - cd scrapy-$pkgver - 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 -} Copied: scrapy/repos/community-any/PKGBUILD (from rev 1259245, scrapy/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-07-31 08:28:48 UTC (rev 1259246) @@ -0,0 +1,47 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: PyroDevil <p dot devil at gmail dot com> +# Contributor: Anibal Pacheco <apacheco...@gmail.com> + +pkgname=scrapy +pkgver=2.6.2 +pkgrel=1 +pkgdesc="A fast high-level scraping and web crawling framework." +arch=('any') +license=('BSD') +url="https://scrapy.org" +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' 'python-h2' + 'python-priority' 'python-tldextract') +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=('4442c26a42df1c2e91ab6f8391568ba4e774b938a915f05492572d7ef196760101fc4c1ae4e17fc79cba574dd5696fee842672ec613d6fdb1167f9965972afd5') + +prepare() { + cd scrapy-$pkgver + sed -i 's/,<4.0//' setup.py +} + +build() { + cd scrapy-$pkgver + python setup.py build +} + +check() { + cd scrapy-$pkgver +# test_proxy_connect hangs with mitmproxy 8.0 https://github.com/scrapy/scrapy/issues/5454 + PYTHONPATH="$PWD/build/lib" pytest tests -k 'not test_proxy_connect' +} + +package() { + cd scrapy-$pkgver + 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 +} Deleted: python310.patch =================================================================== --- python310.patch 2022-07-31 08:28:39 UTC (rev 1259245) +++ python310.patch 2022-07-31 08:28:48 UTC (rev 1259246) @@ -1,35 +0,0 @@ -From dd8bf617c02c58270056b5e0821ccdfa682cc818 Mon Sep 17 00:00:00 2001 -From: Andrey Rakhmatullin <w...@wrar.name> -Date: Tue, 3 Aug 2021 20:16:29 +0500 -Subject: [PATCH] Fix tests for the 3.10 TypeError message change. - -(cherry picked from commit 93bf1ae7e3966d56539411c59d172c2971ee61e0) ---- - tests/test_request_cb_kwargs.py | 14 ++++++++------ - 1 file changed, 8 insertions(+), 6 deletions(-) - -diff --git a/tests/test_request_cb_kwargs.py b/tests/test_request_cb_kwargs.py -index 145a4e9b..b68184b8 100644 ---- a/tests/test_request_cb_kwargs.py -+++ b/tests/test_request_cb_kwargs.py -@@ -158,12 +158,14 @@ class CallbackKeywordArgumentsTestCase(TestCase): - if key in line.getMessage(): - exceptions[key] = line - self.assertEqual(exceptions['takes_less'].exc_info[0], TypeError) -- self.assertEqual( -- str(exceptions['takes_less'].exc_info[1]), -- "parse_takes_less() got an unexpected keyword argument 'number'" -+ self.assertTrue( -+ str(exceptions['takes_less'].exc_info[1]).endswith( -+ "parse_takes_less() got an unexpected keyword argument 'number'" -+ ) - ) - self.assertEqual(exceptions['takes_more'].exc_info[0], TypeError) -- self.assertEqual( -- str(exceptions['takes_more'].exc_info[1]), -- "parse_takes_more() missing 1 required positional argument: 'other'" -+ self.assertTrue( -+ str(exceptions['takes_more'].exc_info[1]).endswith( -+ "parse_takes_more() missing 1 required positional argument: 'other'" -+ ) - )