pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-scrapy Scrapy 1.4 does not bring that many brea...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5818e5e43af7
branches:  trunk
changeset: 362626:5818e5e43af7
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat May 20 06:25:36 2017 +0000

description:
Scrapy 1.4 does not bring that many breathtaking new features
but quite a few handy improvements nonetheless.

Scrapy now supports anonymous FTP sessions with customizable user and
password via the new :setting:`FTP_USER` and :setting:`FTP_PASSWORD` settings.
And if you're using Twisted version 17.1.0 or above, FTP is now available
with Python 3.

There's a new :meth:`response.follow <scrapy.http.TextResponse.follow>` method
for creating requests; **it is now a recommended way to create Requests
in Scrapy spiders**. This method makes it easier to write correct
spiders; ``response.follow`` has several advantages over creating
``scrapy.Request`` objects directly:

* it handles relative URLs;
* it works properly with non-ascii URLs on non-UTF8 pages;
* in addition to absolute and relative URLs it supports Selectors;
  for ``<a>`` elements it can also extract their href values.

diffstat:

 www/py-scrapy/ALTERNATIVES |   1 +
 www/py-scrapy/Makefile     |   8 ++++++--
 www/py-scrapy/PLIST        |  10 ++++++++--
 www/py-scrapy/distinfo     |  10 +++++-----
 4 files changed, 20 insertions(+), 9 deletions(-)

diffs (73 lines):

diff -r 6076c81b5feb -r 5818e5e43af7 www/py-scrapy/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-scrapy/ALTERNATIVES        Sat May 20 06:25:36 2017 +0000
@@ -0,0 +1,1 @@
+bin/scrapy @PREFIX@/bin/scrapy@PYVERSSUFFIX@
diff -r 6076c81b5feb -r 5818e5e43af7 www/py-scrapy/Makefile
--- a/www/py-scrapy/Makefile    Sat May 20 06:11:21 2017 +0000
+++ b/www/py-scrapy/Makefile    Sat May 20 06:25:36 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2017/03/19 22:59:10 adam Exp $
+# $NetBSD: Makefile,v 1.3 2017/05/20 06:25:36 adam Exp $
 
-DISTNAME=      Scrapy-1.3.3
+DISTNAME=      Scrapy-1.4.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=S/Scrapy/}
@@ -15,5 +15,9 @@
 DEPENDS+=      ${PYPKGPREFIX}-pydispatcher>=2.0.5:../../devel/py-pydispatcher
 DEPENDS+=      ${PYPKGPREFIX}-twisted>=13.1.0:../../net/py-twisted
 
+post-install:
+       ${MV} ${DESTDIR}${PREFIX}/bin/scrapy \
+               ${DESTDIR}${PREFIX}/bin/scrapy${PYVERSSUFFIX} || ${TRUE}
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 6076c81b5feb -r 5818e5e43af7 www/py-scrapy/PLIST
--- a/www/py-scrapy/PLIST       Sat May 20 06:11:21 2017 +0000
+++ b/www/py-scrapy/PLIST       Sat May 20 06:25:36 2017 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2017/02/13 21:25:33 adam Exp $
-bin/scrapy
+@comment $NetBSD: PLIST,v 1.2 2017/05/20 06:25:36 adam Exp $
+bin/scrapy${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -11,6 +11,9 @@
 ${PYSITELIB}/scrapy/__init__.py
 ${PYSITELIB}/scrapy/__init__.pyc
 ${PYSITELIB}/scrapy/__init__.pyo
+${PYSITELIB}/scrapy/__main__.py
+${PYSITELIB}/scrapy/__main__.pyc
+${PYSITELIB}/scrapy/__main__.pyo
 ${PYSITELIB}/scrapy/_monkeypatches.py
 ${PYSITELIB}/scrapy/_monkeypatches.pyc
 ${PYSITELIB}/scrapy/_monkeypatches.pyo
@@ -254,6 +257,9 @@
 ${PYSITELIB}/scrapy/core/downloader/handlers/__init__.py
 ${PYSITELIB}/scrapy/core/downloader/handlers/__init__.pyc
 ${PYSITELIB}/scrapy/core/downloader/handlers/__init__.pyo
+${PYSITELIB}/scrapy/core/downloader/handlers/datauri.py
+${PYSITELIB}/scrapy/core/downloader/handlers/datauri.pyc
+${PYSITELIB}/scrapy/core/downloader/handlers/datauri.pyo
 ${PYSITELIB}/scrapy/core/downloader/handlers/file.py
 ${PYSITELIB}/scrapy/core/downloader/handlers/file.pyc
 ${PYSITELIB}/scrapy/core/downloader/handlers/file.pyo
diff -r 6076c81b5feb -r 5818e5e43af7 www/py-scrapy/distinfo
--- a/www/py-scrapy/distinfo    Sat May 20 06:11:21 2017 +0000
+++ b/www/py-scrapy/distinfo    Sat May 20 06:25:36 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2017/03/19 22:59:11 adam Exp $
+$NetBSD: distinfo,v 1.3 2017/05/20 06:25:36 adam Exp $
 
-SHA1 (Scrapy-1.3.3.tar.gz) = 603b258932b868ad6315e374b7b3de8c45564264
-RMD160 (Scrapy-1.3.3.tar.gz) = a23e026285640af4cf1ec29590040a67ef57326d
-SHA512 (Scrapy-1.3.3.tar.gz) = 795ac4a421be6e903e14cb9d9b242f4e6a130e3f51d43bf2a0904de0e4cadb4f54837badb63a65331ab67c4f8d6111f6fc85e6cb79acca5544db128b55ba3867
-Size (Scrapy-1.3.3.tar.gz) = 848990 bytes
+SHA1 (Scrapy-1.4.0.tar.gz) = 24222debf2e6b9220a91a56c476c208ac5ecb8e5
+RMD160 (Scrapy-1.4.0.tar.gz) = ef20b9288851962fb552c1045e297c8917a74d17
+SHA512 (Scrapy-1.4.0.tar.gz) = eedcd7003c51f45a580f160b4e5f428c01713e4ecb5b64e35570bc750fc03bef7cc991e318ef4ff9c96e12a2d21cc32d0f07ce278486ea2e65f08e53c3e4a8f1
+Size (Scrapy-1.4.0.tar.gz) = 898159 bytes



Home | Main Index | Thread Index | Old Index